This only works as expected if neither property1 nor foo are
defined in the project itself.
| Method from org.apache.tools.ant.taskdefs.CallTarget Detail: |
public void addConfiguredTarget(Ant.TargetElement t) {
if (callee == null) {
init();
}
callee.addConfiguredTarget(t);
targetSet = true;
}
Add a target to the list of targets to invoke. |
public void addPropertyset(PropertySet ps) {
if (callee == null) {
init();
}
callee.addPropertyset(ps);
}
Set of properties to pass to the new project. |
public void addReference(Ant.Reference r) {
if (callee == null) {
init();
}
callee.addReference(r);
}
Reference element identifying a data type to carry
over to the invoked target. |
public Property createParam() {
if (callee == null) {
init();
}
return callee.createProperty();
}
Create a new Property to pass to the invoked target(s). |
public void execute() throws BuildException {
if (callee == null) {
init();
}
if (!targetSet) {
throw new BuildException(
"Attribute target or at least one nested target is required.",
getLocation());
}
callee.setAntfile(getProject().getProperty("ant.file"));
callee.setInheritAll(inheritAll);
callee.setInheritRefs(inheritRefs);
callee.execute();
}
Delegate the work to the ant task instance, after setting it up. |
public void handleErrorFlush(String output) {
if (callee != null) {
callee.handleErrorFlush(output);
} else {
super.handleErrorFlush(output);
}
}
Handle error output.
Send it the the new project if is present, otherwise
call the super class. |
public void handleErrorOutput(String output) {
if (callee != null) {
callee.handleErrorOutput(output);
} else {
super.handleErrorOutput(output);
}
}
Handle error output.
Send it the the new project if is present, otherwise
call the super class. |
public void handleFlush(String output) {
if (callee != null) {
callee.handleFlush(output);
} else {
super.handleFlush(output);
}
}
Handles output.
Send it the the new project if is present, otherwise
call the super class. |
public int handleInput(byte[] buffer,
int offset,
int length) throws IOException {
if (callee != null) {
return callee.handleInput(buffer, offset, length);
}
return super.handleInput(buffer, offset, length);
}
Handles input.
Deleate to the created project, if present, otherwise
call the super class. |
public void handleOutput(String output) {
if (callee != null) {
callee.handleOutput(output);
} else {
super.handleOutput(output);
}
}
Handles output.
Send it the the new project if is present, otherwise
call the super class. |
public void init() {
callee = new Ant(this);
callee.init();
}
Initialize this task by creating new instance of the ant task and
configuring it by calling its own init method. |
public void setInheritAll(boolean inherit) {
inheritAll = inherit;
}
If true, pass all properties to the new Ant project.
Defaults to true. |
public void setInheritRefs(boolean inheritRefs) {
this.inheritRefs = inheritRefs;
}
If true, pass all references to the new Ant project.
Defaults to false. |
public void setTarget(String target) {
if (callee == null) {
init();
}
callee.setTarget(target);
targetSet = true;
}
|