Someone was asking for an example of running a Java application from
Gradle, having figured it out I thought I'd share:
task run <<{
javaexec { JavaExecSpec spec ->
spec.setMain("myapp.Main");
spec.classpath(sourceSets.main.classes,
sourceSets.demo.classes, sourceSets.demo.compileClasspath);
}
}
where main and demo are defined sourcesets in myapp. Hope this helps.
- Peace
Dave
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email