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
[Java] Class AntTarget

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

    public class AntTarget
    extends ConventionTask

A task which executes an Ant target.

Constructor Summary
`AntTarget()`

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

Constructor Detail

### AntTarget

    public AntTarget()

Method Detail

### executeAntTarget

    @TaskAction
    protected void executeAntTarget()

### getBaseDir

    public java.io.File getBaseDir()

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

### getDescription

    @Override
    public java.lang.String getDescription()

  {@inheritDoc}

### getTarget

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

  Returns the Ant target to execute.

### setBaseDir

    public void setBaseDir(java.io.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(org.apache.tools.ant.Target target)

  Sets the Ant target to execute.

Groovy Documentation