Beispiel #1
0
 public void init() {
   callee = (Ant) project.createTask("ant");
   callee.setOwningTarget(target);
   callee.setTaskName(getTaskName());
   callee.setLocation(location);
   callee.init();
   initialized = true;
 }
Beispiel #2
0
  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();
  }
Beispiel #3
0
 protected void handleErrorOutput(String line) {
   if (callee != null) {
     callee.handleErrorOutput(line);
   } else {
     super.handleErrorOutput(line);
   }
 }
Beispiel #4
0
 public Property createParam() {
   return callee.createProperty();
 }