Hi,
I am building a server like application, with a multi module based build
using gradle. I would like, in the master root project, to run the server
based only on the compiled classes of each module and their runtime
dependencies.
My build is very similar to the gradle build configurations (sub-projects
and configuations.distLib). I am trying to do that with ant.java execution,
but I am running into problems with dependency and how to get the classpath
set for the java process.
Here is where I am at:
configurations {
dists
distLib {
visible = false
}
}
dependencies {
distLib project(':module1'), project(':module2')
}
task run(dependsOn: [configurations.distLib], description: 'Runs') {
dependsOn: configurations.distLib
ant.java(classname: "com.MyMainClass", fork: "true", classpath:
configurations.distLib.asPath)
}
But I get errors (in this case, an exception of not being able to resolve
dependencies)
Thanks,
Shay
--
View this message in context:
http://old.nabble.com/Executing-a-java-process-within-build.gradle-tp26731408p26731408.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email