Package: org.gradle.api.tasks.ant

## [Java] Class AntTarget

- org.gradle.api.tasks.ant.AntTarget

- A task which executes an Ant target.

- - ### Constructor Summary

    Constructors
    Constructor and description
    `AntTarget ()`

  - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `protected void` | `executeAntTarget()`
    `File` | `getBaseDir()` Returns the Ant project base directory to use when executing the target.
    `String` | `getDescription()` {@inheritDoc}
    `org.apache.tools.ant.Target` | `getTarget()` Returns the Ant target to execute.
    `void` | `setBaseDir(File baseDir)` Sets the Ant project base directory to use when executing the target.
    `void` | `setDescription(String description)` {@inheritDoc}
    `void` | `setTarget(org.apache.tools.ant.Target target)` Sets the Ant target to execute.

- - ### Constructor Detail

    - #### public AntTarget()

  - ### Method Detail

    - #### @TaskAction protected void executeAntTarget()

    - #### public File getBaseDir()

      Returns the Ant project base directory to use when executing the target.

    - #### @Override public String getDescription()

      {@inheritDoc}

    - #### public org.apache.tools.ant.Target getTarget()

      Returns the Ant target to execute.

    - #### public void setBaseDir(File baseDir)

      Sets the Ant project base directory to use when executing the target.

    - #### @Override public void setDescription(String description)

      {@inheritDoc}

    - #### public void setTarget(org.apache.tools.ant.Target target)

      Sets the Ant target to execute.