On 12/03/10 10:25 AM, phil swenson wrote:
I have a dependency set up for compile and runtime.  1) does runtime
extend compile automatically?

Yes. Have a look at http://gradle.org/0.8/docs/userguide/java_plugin.html#sec:java_plugin_and_dependency_management

  2) how do I use the runtime
dependencies to set up a classpath and execute a java process?  In
other words, how do I set up a "runMyApp" gradle task?


You could use the Ant java task. For example:

task runMyApp {
    dependsOn sourceSets.main.runtimeClasspath
    doFirst {
ant.java(classname: 'MyMainClass', classpath: sourceSets.main.runtimeClasspath.asPath, fork: true)
    }
}


--
Adam Murdoch
Gradle Developer
http://www.gradle.org


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

   http://xircles.codehaus.org/manage_email


Reply via email to