public class AntBuilder extends BuilderSupport
Allows Ant tasks to be used with a Groovy builder-style markup. Requires that {{ant.jar}} is on your classpath which will happen automatically if you are using the Groovy distribution but will be up to you to organize if you are embedding Groovy. If you wish to use the optional tasks you will need to add one or more additional jars from the ant distribution to your classpath - see the library dependencies for more details.
Constructor and description |
---|
AntBuilder() |
AntBuilder(Project project) |
AntBuilder(Project project, Target owningTarget) |
AntBuilder(Task parentTask) |
Type Params | Return Type | Name and description |
---|---|---|
|
public Project |
getAntProject() |
|
public AntXMLContext |
getAntXmlContext() Gets the xml context of Ant used while creating tasks |
|
public Project |
getProject() # Gets the Ant project in which the tasks are executed |
|
public boolean |
isSaveStreams() Whether stdin, stdout, stderr streams are saved. |
|
public void |
setSaveStreams(boolean saveStreams) Indicates that we save stdin, stdout, stderr and replace them while AntBuilder is executing tasks with streams that funnel the normal streams into Ant's logs. |
Methods inherited from class | Name |
---|---|
class BuilderSupport |
invokeMethod, invokeMethod |
class GroovyObjectSupport |
getMetaClass, setMetaClass |
Gets the xml context of Ant used while creating tasks
# Gets the Ant project in which the tasks are executed
Whether stdin, stdout, stderr streams are saved.
Indicates that we save stdin, stdout, stderr and replace them while AntBuilder is executing tasks with streams that funnel the normal streams into Ant's logs.
saveStreams
- set to false to disable this behaviorCopyright © 2003-2022 The Apache Software Foundation. All rights reserved.