>The problem is that the war task in the build.xml file has a compile time
>dependency on a few jars.

Does it mean that build.xml does not work when you run using plain ant? If
that's the case it might make sense to fix it in ant so that it works ok
with vanilla ant.

Given that your build.xml is written using references & properties you
should be able to modify them before running compile tasks. Please refer to
the chapter 17 of the docs:
http://gradle.org/1.0-milestone-1/docs/userguide/ant.html#N113E5 - it shows
how to modify ant's classpath references from gradle.

Hope that helps!
Szczepan

On Wed, Mar 2, 2011 at 5:58 PM, littleman <[email protected]>wrote:

> I'm working on a sub-project that has an automatically generated ant
> build.xml file.  I'm trying to integrate this build with the rest of my
> project in Gradle.  I have a simple Gradle file that looks like:
>
> defaultTasks "war"
> ant.importBuild 'build.xml'
>
> The problem is that the war task in the build.xml file has a compile time
> dependency on a few jars.  I've added the jars to my Maven respository, but
> I can't figure out a way to add the jars to the classpath for compilation.
> Is there a way to do this?
>
> I know if you are using the Java plugin you can do something like
>
> dependencies {
>  compile 'com.company.blah:name:0.1.1'
> }
>
> --
> View this message in context:
> http://gradle.1045684.n5.nabble.com/Add-jar-dependency-to-ant-task-tp3406812p3406812.html
> Sent from the gradle-user mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

Reply via email to