Hi,
here is an (a bit artificial) example on how to start the hsqldb
swingmanager via the javaexec task. the jar file is resolved via maven
central repo:
-----------------
repositories{ mavenCentral() }
configurations{ hsqldb }
dependencies{ hsqldb "hsqldb:hsqldb:1.8.0.7" }
task execExample1 << {
def exit = javaexec{
classpath configurations.hsqldb.asPath
setMain "org.hsqldb.util.DatabaseManagerSwing";
}
println "return value: ${exit.exitValue}"
}
-----------------
regards,
René
--
------------------------------------
Rene Groeschke
[email protected]
http://www.breskeby.com
http://twitter.com/breskeby
------------------------------------
Am 26.06.10 18:58, schrieb asaf david:
can you give a short example on how to use the javaexec task ?
Steve Appling wrote:
If you are using the 0.9 preview, try using Project.javaexec
See
http://www.gradle.org/0.9-preview-3/docs/javadoc/org/gradle/api/Project.html#javaexec(groovy.lang.Closure)
Unfortunately, I don't think this is covered in the user guide yet.
On Jun 11, 2010, at 4:28 AM, Matthias Bohlen wrote:
Hello,
I'd like to run a code generator program that is built by Gradle inside a
subproject A of a multi-project build. The code generator should run to
generate code for another subproject B of the same multi-project build.
How do I run the generator with its own defined classpath that is
different from the compile classpath of the subproject B for which the
generator generates the code? And: How do I make the code generator run a
precondition for the compile task of the subproject B?
Cheers,
Matthias
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
--
------------------------------------
Rene Groeschke
[email protected]
http://www.breskeby.com
http://twitter.com/breskeby
------------------------------------
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email