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