[email protected] wrote:
Hi all,

I'm currently porting and old build system to gradle and have encountered a
bit of a problem.


One of the projects contains two source directories and produces two jar
files (one for each source
directory). I can compile both source directories to a single ouput
location. But is it possible to use the Java Plugin to compile
each source directory to its own location and jar it up (without having to
drop down to the ant compiler or fiddle around with filters
and manual jaring). I know that ideally these would be two projects (or
subprojects) but I would like to avoid that option at the moment.



Does each source directory contain a separate package hierarchy? If so, you can compile them together, and jar them up separately using an include pattern. If not, you're going to have to manually add a compile task. You could use Gradle's compile task instead of the Ant one.

Can I ask, is there a reason why you don't want to use separate projects for these 2 source directories?


Adam


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to