On Fri, Jun 11, 2010 at 10: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.
>
The
Another problem:
Gradle does not build the code generator subproject before it runs the
preProc task. This results in a "class not found" message when I do a
"gradle clean build".
How do I tell gradle that it should build the code generator before it
runs it?
Cheers
Matthias
---
Am 09
Hi Jim,
thanks for the info. The code generator invocation works: The preProc
task is executed, then compileJava, etc., that's fine. However, when I
run "gradle build" again, the preProc task is invoked once again -
gradle does not know that it is still up to date.
How can I tell gradle w
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
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
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:
>
In project B's bruild.gradle:
configurations {
preProcCP
}
dependencies {
preProcCP "log4j:log4j:1.2.18"
}
task preProc << {
ant.java(classname: 'com.my.classname', fork: true,
classpath: "${sourceSets.main.preProcCP.asPath}")
}
compile.dependsOn preproc
Be sure to look at
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 i