Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Constructor and description |
---|
AntBuilder
() |
AntBuilder
(Project project) |
AntBuilder
(Project project, Target owningTarget) |
AntBuilder
(Task parentTask) |
Type | Name and description |
---|---|
protected static Attributes |
buildAttributes(Map attributes) Builds an Attributes from a Map |
protected Object |
createNode(Object tagName) |
protected Object |
createNode(Object name, Object value) |
protected Object |
createNode(Object name, Map attributes, Object value) |
protected Object |
createNode(Object name, Map attributes) |
protected static Project |
createProject() @return Factory method to create new Project instances |
protected Object |
doInvokeMethod(String methodName, Object name, Object args) We don't want to return the node as created in createNode(Object, Map, Object) but the one made ready by nodeCompleted(Object, Object) |
Project |
getAntProject() |
AntXMLContext |
getAntXmlContext() Gets the xml context of Ant used while creating tasks |
Project |
getProject() # Gets the Ant project in which the tasks are executed |
boolean |
isSaveStreams() Whether stdin, stdout, stderr streams are saved. |
protected void |
nodeCompleted(Object parent, Object node) Determines, when the ANT Task that is represented by the "node" should perform. |
protected void |
setParent(Object parent, Object child) |
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. |
protected void |
setText(Object task, String text) |
Methods inherited from class | Name |
---|---|
class BuilderSupport |
createNode, createNode, createNode, createNode, doInvokeMethod, getCurrent, getName, invokeMethod, invokeMethod, nodeCompleted, postNodeCompletion, setClosureDelegate, setCurrent, setParent |
class GroovyObjectSupport |
getMetaClass, getProperty, invokeMethod, setMetaClass, setProperty |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Builds an Attributes from a Map
attributes
- the attributes to wrap
We don't want to return the node as created in createNode(Object, Map, Object) but the one made ready by nodeCompleted(Object, Object)
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.
Determines, when the ANT Task that is represented by the "node" should perform. Node must be an ANT Task or no "perform" is called. If node is an ANT Task, it performs right after complete construction. If node is nested in a TaskContainer, calling "perform" is delegated to that TaskContainer.
parent
- note: null when node is rootnode
- the node that now has all its children appliedIndicates 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-2015 The Apache Software Foundation. All rights reserved.