buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Odelya Holiday <ode...@alicanto.com>
Subject Tests are not being compiled to target folder
Date Mon, 20 Aug 2012 14:20:34 GMT
Hi!

Something weird is happening.

My project structure is as follows (for Engine only)

Engine
   src
        --main
               --java
               --resources
        --test
               --java
               --resources

However, when running buildr clean build package, the created target
folder looks like this:

target
      classes
      resources
      Engine.jar

The tests are not being compiled! and therefore they are not being tested.

The call to buildr is:

buildr clean build package integration test:Suite junit:report
test=all --verbose

My buildr file is:

define "Project" do
	test.using :integration
        test.using :fail_on_failure=>true
        project.version = VERSION_NUMBER
	project.group = GROUP
	manifest['Copyright'] = COPYRIGHT

        desc 'Building common project for engine and API'
	define 'Common' do
		compile.with SPRING_CORE,COMMONS_CODEC, COMMONS_IO
		package(:jar, :id=>"Common")
	end
	
	desc 'Building API (Grroo) project'
	define 'Grroo' do
		# specify the artifact for plimus, twilio and floristone since I
created it locally
		plimus = artifact('plimus.com:plimus:jar:1.0').from('/var/lib/selfdep/wsintegration.jar')
		floristone = artifact('floristone.com:floristone:jar:1.0').from('/var/lib/selfdep/floristone.jar')
		twilio =  artifact('twilio.com:twilio:jar:1.0').from('/var/lib/selfdep/twilio.jar')
		# install the artifact locally
		install plimus
		install floristone
		install twilio
		libs = projects('Common'),plimus, twilio, floristone,AMAZON,ACTIVATION,ANTLR
		compile.with libs,TOMCAT_COYOTE, TOMCAT_SERVLET
		war = package(:war, :id=>"Grroo")
		war.with :libs => libs
		test.using :integration
                test.exclude('*')
	end
	

	desc 'Building the engine project based on common'
	define 'Engine' do	
		libs = projects('Common'),SPRING_CORE
		compile.with libs
		test.with CGLIB,COMMONS_HIBRENATE,LIB_PHONE_NUMBER,HTML_CLEANER,COMMONS_CODEC
		puts "package engine jar" if verbose
		# package the engine jar with dependencies inside
		engine = package(:jar, :id=>"Engine").include libs
		engine.with :manifest=>{ 'Main-Class'=>'com.main.EngineMain' }
		test.using :integration
	end
end
-- 
Odelya

Mime
View raw message