sorry for responding twice - forgot to mention this.

Thomas Kinnen wrote:
<clip>
When using an ant.copy(from, to) it seems that Gradle is eager evaluating it. Therefor it will throw an error message if the file I want to copy is not yet available. This seems to be a general problem with ant tasks. If I want to copy something from or into the libsDir, ant will complain that the directory is not available (which is true at evaluation time). Therefor I would have to add an mkdir(dir: libsDir) before each of these tasks(copy, jar, etc.). Maybe I am missing something?

I don't think gradle is doing anything eager here. Are you sure that you are using ant inside the task definition and not when configuring a task? In other words:

task mycopy {
   ant.copy     // this is executed at configuration time
}

task mycopy << {
   ant.copy     // this is executed when the task is executed
}

Note the all important (and confusing) "<<"

If this doesn't solve your ant problem, please post a more detailed example.

--
Steve Appling
Automated Logic Research Team

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

   http://xircles.codehaus.org/manage_email


Reply via email to