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.07.2010 um 09:52 schrieb Matthias Bohlen:
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 when to run the preProc task and when to
consider it "up to date"?
Cheers
Matthias
Am 11.06.2010 um 14:41 schrieb Jim Moore:
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 the Dependency Management section (ch 32) of the
User Guide for much more on dependency configurations.
On Fri, Jun 11, 2010 at 4:28 AM, Matthias Bohlen
<[email protected]> 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