Exemple #1
0
  public void execute() throws BuildException {
    super.execute();

    final Environment env = apb.getEnvironment();
    env.setNonRecursive(!recurse);

    if (module == null) {
      throw new BuildException("You must specify a module name");
    }

    try {
      final File dir = defdir == null ? null : new File(defdir);
      apb.build(dir, module, command);
    } catch (Throwable throwable) {
      throw new BuildException(throwable);
    }
  }
Exemple #2
0
 protected boolean isVerbose() {
   return env.isVerbose();
 }
Exemple #3
0
 protected void logVerbose(String msg, Object... args) {
   if (isVerbose()) {
     env.logVerbose(msg, args);
   }
 }