gradle
8.6

# ant

abstract fun ant(@DelegatesTo(value = AntBuilder::class) configureClosure: Closure): AntBuilder(source)

Executes the given closure against the `AntBuilder` for this project. You can use this in your build file to execute ant tasks. The `AntBuild` is passed to the closure as the closure's delegate. See example in javadoc for getAnt

#### Return

The `AntBuilder`. Never returns null.

#### Parameters

configureClosure

The closure to execute against the `AntBuilder`.

abstract fun ant(configureAction: Action<out Any>): AntBuilder(source)

Executes the given action against the `AntBuilder` for this project. You can use this in your build file to execute ant tasks. See example in javadoc for getAnt

#### Return

The `AntBuilder`. Never returns null.

#### Parameters

configureAction

The action to execute against the `AntBuilder`.