Package: org.gradle.api

## [Java] Class AntBuilder

- org.gradle.api.AntBuilder

- An `AntBuilder` allows you to use Ant from your build script.

- - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `AntBuilder` | `getAnt()` Returns this AntBuilder.
    `Map<String, Object>` | `getProperties()` Returns the properties of the Ant project.
    `Map<String, Object>` | `getReferences()` Returns the references of the Ant project.
    `void` | `importBuild(Object antBuildFile)` Imports an Ant build into the associated Gradle project.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class AntBuilder` | `getProject, getAntProject, getAntXmlContext, isSaveStreams, setSaveStreams, invokeMethod, invokeMethod, setProperty, getProperty, getMetaClass, setMetaClass, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll`
    `class BuilderSupport` | `invokeMethod, invokeMethod, setProperty, getProperty, getMetaClass, setMetaClass, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll`

- - ### Method Detail

    - #### public AntBuilder getAnt()

      Returns this AntBuilder. Useful when you need to pass this builder to methods from within closures.

      Returns:
        this

    - #### public Map<String, Object> getProperties()

      Returns the properties of the Ant project. This is a live map, you that you can make changes to the map and these changes are reflected in the Ant project.

      Returns:
        The properties. Never returns null.

    - #### public Map<String, Object> getReferences()

      Returns the references of the Ant project. This is a live map, you that you can make changes to the map and these changes are reflected in the Ant project.

      Returns:
        The references. Never returns null.

    - #### public void importBuild(Object antBuildFile)

      Imports an Ant build into the associated Gradle project.

      Parameters:
        `antBuildFile` - The build file. This is resolved as per Project.file.