Hi,

I'm new to using Gradle, and have a question about configuring the
compileJava task.

I've set the compiler to use with
compileJava.options.define(compiler: "org.eclipse.jdt.core.JDTCompilerAdapter")

but I need to include the ecj.jar in the compiler classpath.

I created a special configuration but I can't seem to make it
available for finding the compiler in the compileJava task.

configurations { jdt {} }
dependencies {
        jdt "org.eclipse.jdt:ecj:3.5"
}
compileJava.options.define(bootClasspath: configurations.jdt.files)

It looks like the ant javac property I need to set is
compilerClasspath, which doesn't seem to be settable in the
CompileJava Groovy class (it isn't listed in the Groovy
documentation).

Is there anyway to do this apart from putting the ecj jar file inside
my gradle dist lib folder?

BTW: great build tool! I love the flexibility and terseness.

Thanks,
David

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

    http://xircles.codehaus.org/manage_email


Reply via email to