Hi Peter,

On Oct 13, 2008, at 8:49 AM, Peter Ledbrook wrote:

Hi,

The Grails build generates several JAR files one of which contains the
Gant scripts. At the moment we have a separate Ant target for
compiling the scripts to a special target directory, i.e. not the
usual "target/classes" bu "target/compiled-scripts". This means we
just need to jar up everything in that directory.

I'm after a way to achieve the same effect with Gradle. Two options
spring to mind: treat the scripts as a separate project/sub-project,
or do a manual compile. I tried the second option, but I'm not sure
how to get the normal compile classpath to "ant.groovyc()". Any ideas?

For making your approach work you can use the method:

dependencies.antpath('<configurationName')

Here is an example here: http://gradle.org/userguide/latest/ masterch15.html#x51-13400015.3

See Javadoc: http://gradle.org/api/0.4/org/gradle/api/ DependencyManager.html#antpath(java.lang.String)

For your refactoring it probably makes sense first to stick to the ant script way of doing things until things are working. Then it might be interesting to think about having more modularization in the Gradle build by introducing subprojects. I'm more than happy to have a look at the Grails build and share my opinion on how I would do things.

- 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