<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.
| Modifier and Type | Field and Description |
|---|---|
| private Ant | |
| private boolean | |
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addConfiguredTarget(Ant.
Ant.TargetElement representing the target.Add a target to the list of targets to invoke. |
| public void | |
| public void | addReference(Ant.
the specified rAnt.Reference.Reference element identifying a data type to carry over to the invoked target. |
| public Property | |
| public void | execute()
Overrides org. |
| public void | handleErrorFlush(String
The string to output. output)Overrides org. |
| public void | handleErrorOutput(String
The string to output. output)Overrides org. |
| public void | handleFlush(String
The string to output. output)Overrides org. |
| public int | Returns: the number of bytes read.the buffer into which data is to be read. buffer, int the offset into the buffer at which data is stored. offset, int the amount of data to read. length)Overrides org. |
| public void | handleOutput(String
The string output to output. output)Overrides org. |
| public void | init()
Overrides org. |
| public void | |
| public void | setInheritRefs(boolean
boolean flag.If true, pass all references to the new Ant project. |
| public void |
| callee | back to summary |
|---|---|
| private Ant callee | |
| inheritAll | back to summary |
|---|---|
| private boolean inheritAll | |
| inheritRefs | back to summary |
|---|---|
| private boolean inheritRefs | |
| targetSet | back to summary |
|---|---|
| private boolean targetSet | |
| CallTarget | back to summary |
|---|---|
| public CallTarget() | |
| addConfiguredTarget | back to summary |
|---|---|
| public void addConfiguredTarget(Ant. Add a target to the list of targets to invoke.
| |
| addPropertyset | back to summary |
|---|---|
| public void addPropertyset(PropertySet ps) Set of properties to pass to the new project.
| |
| addReference | back to summary |
|---|---|
| public void addReference(Ant. Reference element identifying a data type to carry over to the invoked target. | |
| createParam | back to summary |
|---|---|
| public Property createParam() Create a new Property to pass to the invoked target(s).
| |
| execute | back to summary |
|---|---|
| public void execute() throws BuildException Overrides org. Delegate the work to the ant task instance, after setting it up.
| |
| handleErrorFlush | back to summary |
|---|---|
| public void handleErrorFlush(String output) Overrides org. Handle error output. Send it the the new project if is present, otherwise call the super class.
| |
| handleErrorOutput | back to summary |
|---|---|
| public void handleErrorOutput(String output) Overrides org. Handle error output. Send it the the new project if is present, otherwise call the super class.
| |
| handleFlush | back to summary |
|---|---|
| public void handleFlush(String output) Overrides org. Handles output. Send it the the new project if is present, otherwise call the super class.
| |
| handleInput | back to summary |
|---|---|
| public int handleInput(byte[] buffer, int offset, int length) throws IOException Overrides org. Handles input. Delegate to the created project, if present, otherwise call the super class.
| |
| handleOutput | back to summary |
|---|---|
| public void handleOutput(String output) Overrides org. Handles output. Send it the the new project if is present, otherwise call the super class.
| |
| init | back to summary |
|---|---|
| public void init() Overrides org. Initialize this task by creating new instance of the ant task and configuring it by calling its own init method. | |
| setInheritAll | back to summary |
|---|---|
| public void setInheritAll(boolean inherit) If true, pass all properties to the new Ant project. Defaults to true.
| |
| setInheritRefs | back to summary |
|---|---|
| public void setInheritRefs(boolean inheritRefs) If true, pass all references to the new Ant project. Defaults to false.
| |
| setTarget | back to summary |
|---|---|
| public void setTarget(String target) Set target to execute.
| |