AntBuilder
is documented in the "Using Ant from Gradle" chapter of the Gradle User Guide. That said, here are some further pointers:
Gradle's
AntBuilder
is (virtually) the same as Groovy'sAntBuilder
. The syntax is a mechanical translation of the Ant XML syntax. To get started, check out the samples in the full Gradle distribution.AntBuilder
can be used with any Ant task. For information on a particular Ant task, check its documentation.Third-party Ant tasks (i.e. Ant tasks that don't ship with Ant) have to be defined beforehand exactly as in Ant. For details, see the user guide chapter.