On Oct 14, 2008, at 8:45 PM, Peter Ledbrook wrote:

Cool. This is in fact what I was hoping to do, so thanks for the offer.

It's now in the repository:

http://svn.grails.codehaus.org/browse/grails/branches/GRAILS_1_1/ build.gradle

It only does compile, test, and (partial) libs at the moment. There
are a couple of oddities, such as one of the tests failing for some
reason - it doesn't with the Ant build. It may be something to do with
the test being Java but extending a Groovy class. I'll write a bit
more about that if I get the chance.

The other odd thing is that running the tests after a clean always
results in a NoClassDefFoundError for one of the Jaxen classes.
Running the tests again (without a clean) then works fine.

I can reproduce the first error (I haven't tried to reproduce the other one yet).

As Gradle uses the same groovyc under the hood as the Grails Ant build my guess is that it is some classpath issue. Checking the debug output it looks like groovyc is disregarding the includeAntRuntime property, which is set to false in both cases (ant, gradle). Ant has a kind of weird default behavior. If this property is not explicitly set to false in the ant javac task, the classpath of the context classloader is added to the compile classpath.

I will let you know when I have found out more.

- Hans

--
Hans Dockter
Gradle Project lead
http://www.gradle.org





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

   http://xircles.codehaus.org/manage_email


Reply via email to