Overview | Package | Class | Deprecated | Index | Help
| Groovy Documentation
| FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.gradle.api.tasks.ant
Class AntTarget

    java.lang.Object
      org.gradle.api.internal.ConventionTask
          org.gradle.api.tasks.ant.AntTarget

    class AntTarget
    extends ConventionTask

A task which executes an Ant target.

Constructor Summary
`AntTarget()`

Method Summary
`protected void` | `executeAntTarget()`
`File` | `getBaseDir()` Returns the Ant project base directory to use when executing the target.
`java.lang.String` | `getDescription()` {
`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(java.lang.String description)` {
`void` | `setTarget(Target target)` Sets the Ant target to execute.

Constructor Detail

### AntTarget

    public AntTarget()

Method Detail

### executeAntTarget

    @TaskAction
    protected void executeAntTarget()

### getBaseDir

    public File getBaseDir()

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

### getDescription

    @Override
    public java.lang.String getDescription()

  {@inheritDoc}

### getTarget

    public Target getTarget()

  Returns the Ant target to execute.

### setBaseDir

    public void setBaseDir(File baseDir)

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

### setDescription

    @Override
    public void setDescription(java.lang.String description)

  {@inheritDoc}

### setTarget

    public void setTarget(Target target)

  Sets the Ant target to execute.

Groovy Documentation