Groovy Documentation

org.gradle.api
[Java] Class AntBuilder

java.lang.Object
  org.gradle.api.AntBuilder

public abstract class AntBuilder

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


Method Summary
java.util.Map getProperties()

Returns the properties of the Ant project.

java.util.Map getReferences()

Returns the references of the Ant project.

void importBuild(java.lang.Object antBuildFile)

Imports an Ant build into the associated Gradle project.

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Method Detail

getProperties

public java.util.Map 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.


getReferences

public java.util.Map 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.


importBuild

public void importBuild(java.lang.Object antBuildFile)
Imports an Ant build into the associated Gradle project.
Parameters:
antBuildFile - The build file. This is resolved as per Project#file(Object)#file(Object).


 

Groovy Documentation