org.apache.tools.ant.taskdefs
Class CallTarget
Call another target in the same project.
<target name="foo">
<antcall target="bar">
<param name="property1" value="aaaaa" />
<param name="foo" value="baz" />
</antcall>
</target>
<target name="bar" depends="init">
<echo message="prop is ${property1} ${foo}" />
</target>
This only works as expected if neither property1 nor foo are
defined in the project itself.
- Ant 1.2
void | addPropertyset(PropertySet ps) - Set of properties to pass to the new project.
|
void | addReference(Ant.Reference r) - Reference element identifying a data type to carry
over to the invoked target.
|
Property | createParam() - Property to pass to the invoked target.
|
void | execute() - hand off the work to the ant task of ours, after setting it up
|
void | handleErrorFlush(String output) - Pass output sent to System.err to the new project and flush stream.
|
void | handleErrorOutput(String output) - Pass output sent to System.err to the new project.
|
void | handleFlush(String output) - Pass output sent to System.out to the new project.
|
int | handleInput(byte[] buffer, int offset, int length)
|
void | handleOutput(String output) - Pass output sent to System.out to the new project.
|
void | init() - init this task by creating new instance of the ant task and
configuring it's by calling its own init method.
|
void | setInheritAll(boolean inherit) - If true, pass all properties to the new Ant project.
|
void | setInheritRefs(boolean inheritRefs) - If true, pass all references to the new Ant project.
|
void | setTarget(String target) - Target to execute, required.
|
execute , getDescription , getLocation , getOwningTarget , getRuntimeConfigurableWrapper , getTaskName , getTaskType , getWrapper , handleErrorFlush , handleErrorOutput , handleFlush , handleInput , handleOutput , init , isInvalid , log , log , maybeConfigure , perform , reconfigure , setDescription , setLocation , setOwningTarget , setRuntimeConfigurableWrapper , setTaskName , setTaskType |
addPropertyset
public void addPropertyset(PropertySet ps)
Set of properties to pass to the new project.
- Ant 1.6
addReference
public void addReference(Ant.Reference r)
Reference element identifying a data type to carry
over to the invoked target.
- Ant 1.5
createParam
public Property createParam()
Property to pass to the invoked target.
execute
public void execute()
throws BuildException
hand off the work to the ant task of ours, after setting it up
- execute in interface Task
BuildException
- on validation failure or if the target didn't
execute
handleErrorFlush
public void handleErrorFlush(String output)
Pass output sent to System.err to the new project and flush stream.
- handleErrorFlush in interface Task
- Ant 1.5.2
handleErrorOutput
public void handleErrorOutput(String output)
Pass output sent to System.err to the new project.
- handleErrorOutput in interface Task
- Ant 1.5
handleFlush
public void handleFlush(String output)
Pass output sent to System.out to the new project.
- handleFlush in interface Task
- Ant 1.5.2
handleOutput
public void handleOutput(String output)
Pass output sent to System.out to the new project.
- handleOutput in interface Task
- Ant 1.5
init
public void init()
init this task by creating new instance of the ant task and
configuring it's by calling its own init method.
- init in interface Task
setInheritAll
public void setInheritAll(boolean inherit)
If true, pass all properties to the new Ant project.
Defaults to true.
setInheritRefs
public void setInheritRefs(boolean inheritRefs)
If true, pass all references to the new Ant project.
Defaults to false
inheritRefs
- new value
setTarget
public void setTarget(String target)
Target to execute, required.
Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.