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); } }
protected boolean isVerbose() { return env.isVerbose(); }
protected void logVerbose(String msg, Object... args) { if (isVerbose()) { env.logVerbose(msg, args); } }