/** * Reference element identifying a data type to carry * over to the invoked target. * @param r the specified <code>Ant.Reference</code>. * @since Ant 1.5 */ public void addReference(Ant.Reference r) { if (callee == null) { init(); } callee.addReference(r); }
/** * Set target to execute. * @param target the name of the target to execute. */ public void setTarget(String target) { if (callee == null) { init(); } callee.setTarget(target); targetSet = true; }
/** * Add a target to the list of targets to invoke. * @param t <code>Ant.TargetElement</code> representing the target. * @since Ant 1.6.3 */ public void addConfiguredTarget(Ant.TargetElement t) { if (callee == null) { init(); } callee.addConfiguredTarget(t); targetSet = true; }
/** * Create a new Property to pass to the invoked target(s). * @return a <code>Property</code> object. */ public Property createParam() { if (callee == null) { init(); } return callee.createProperty(); }
/** * Set of properties to pass to the new project. * @param ps the <code>PropertySet</code> to pass. * @since Ant 1.6 */ public void addPropertyset(PropertySet ps) { if (callee == null) { init(); } callee.addPropertyset(ps); }
/** * Delegate the work to the ant task instance, after setting it up. * @throws BuildException on validation failure or if the target didn't * execute. */ 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(); }
/** * Call the selected ant task. */ private void antcall (String taskName) { CallTarget callee; callee = (CallTarget) getProject().createTask("antcall"); callee.setOwningTarget(getOwningTarget()); callee.setTaskName(getTaskName()); callee.setLocation(getLocation()); callee.init(); callee.setTarget(taskName); callee.execute(); }
ct.init(); ct.setTarget(deliverTarget); ct.setInheritAll(true);