phoet / buildr-examples

:wrench: :nut_and_bolt: examples for using buildr
http://blog.nofail.de/2010/01/buildr-the-build-system-that-doesnt-suck/
Apache License 2.0
13 stars 4 forks source link

Building multiple jars #2

Closed ilbonte closed 7 years ago

ilbonte commented 7 years ago

First of all thanks for these examples, you helped me a lot so far

I'm following your example for building multiple JARs (https://github.com/phoet/buildr-examples/blob/5ce199aa77cc78da477f8bf85bada81068973640/examples/packaging/multiple/buildfile)

Do you know if it's possible to build multiple jars but with different content all in the same project? For example I'd like to build a jar with the src and a jar with the test, all with the project (I mean in the same define)

Something like (it's "pseudo code")

define "multiple", :version=>"1.0.0" do
   test.with JMOCK
   compile.with XSTREAM
   package(:jar) #<--- jar for src code

  compile.with JMOCK
  package(:file => _(:target, 'my_tests.jar'))  #j<-- jar for tests
end
phoet commented 7 years ago

sorry, I haven't used buildr for years. if you find out something about that topic, feel free to provide an example.

Davide Bontempelli notifications@github.com schrieb am Fr., 21. Apr. 2017, 18:03:

First of all thanks for these examples, you helped me a lot so far

I'm following your example for building multiple JARs ( https://github.com/phoet/buildr-examples/blob/5ce199aa77cc78da477f8bf85bada81068973640/examples/packaging/multiple/buildfile )

Do you know if it's possible to build multiple jars but with different content? For example I'd like to build a jar with the src and a jar with the test, all with the project (I mean in the same define)

Something like

define "multiple", :version=>"1.0.0" do test.with JMOCK compile.with XSTREAM package(:jar) #<--- jar for src code

compile.with JMOCK package(:file => _(:target, 'my_tests.jar')) #j<-- jar for tests end

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/phoet/buildr-examples/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/AAC-aY7vjlk5pfeROPzAAudE2mSttG6jks5ryNNhgaJpZM4NEfdf .