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