public void init() { callee = (Ant) project.createTask("ant"); callee.setOwningTarget(target); callee.setTaskName(getTaskName()); callee.setLocation(location); callee.init(); initialized = true; }
public void execute() { if (!initialized) { init(); } if (subTarget == null) { throw new BuildException("Attribute target is required.", location); } callee.setDir(project.getBaseDir()); callee.setAntfile(project.getProperty("ant.file")); callee.setTarget(subTarget); callee.setInheritAll(inheritAll); callee.execute(); }
protected void handleErrorOutput(String line) { if (callee != null) { callee.handleErrorOutput(line); } else { super.handleErrorOutput(line); } }
public Property createParam() { return callee.createProperty(); }