> You'll need to tell the javac task the classpath where it can find the
> implementation. For example:
> ant.javac(...) {
>     compilerClasspath(location:
> '/Users/andrew/libs/my-compiler-adapter.jar')
>     ...
> }
>

Thanks, Adam.  This gets me one step closer.  Now, the compiler
adapter jar is being found and added to the classpath of the compiler,
but gradle still prefers to use its groovy classes to compile rather
than the ones supplied by the compiler adapter.

So, the compiler adapter contains a patched version of groovy that
provides hooks for a java compiler.  This means that when the java
compiler wants to call into groovy, it must use the supplied version
of groovy coming from the compiler adapter, not the version from
gradle.

I guess the question is now: how do I force my compiler adapter jar to
be in front of any other jar on the java compiler classpath?  Or,
alternatively, how to I remove all unwanted jars from the
compilerClasspath?

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

    http://xircles.codehaus.org/manage_email


Reply via email to