You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@buildr.apache.org by Odelya Holiday <od...@alicanto.com> on 2012/08/20 16:20:34 UTC

Tests are not being compiled to target folder

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

Re: Tests are not being compiled to target folder

Posted by Odelya <od...@alicanto.com>.
I have no idea why - but it started working again.

I may sound foolish but it's not the case 

I really don't know why it stopped!



--
View this message in context: http://buildr-users.1056619.n5.nabble.com/Tests-are-not-being-compiled-to-target-folder-tp5706573p5706574.html
Sent from the Buildr Users mailing list archive at Nabble.com.