concept standard Ant task in category gradle

appears as: stdard Ant tasks
Gradle in Action - corrected 9052019

This is an excerpt from Manning's book Gradle in Action - corrected 9052019.

If you’re coming from Ant, Gradle doesn’t force you to fully migrate your build infrastructure. Instead, it allows you to import existing build logic and reuse standard Ant tasks. Gradle builds are 100% compatible with Maven and Ivy repositories. You can retrieve dependencies and publish your own artifacts. Gradle provides a converter for existing Maven builds that can translate the build logic into a Gradle build script.

9.1.2. Using standard Ant tasks from Gradle

Gradle’s AntBuilder provides direct access to all standard Ant tasks within your build script—no additional configuration needed. At runtime, Gradle checks the bundled Ant JAR files available on its classpath for the respective Ant task. Figure 9.3 illustrates the interaction between the use of an Ant task within the Gradle build script, the Gradle runtime, and its included Ant tasks. Using standard Ant tasks in Gradle comes in handy if you don’t want to import an existing Ant script, or if you feel more comfortable with the Ant syntax.