moduleName.set(newModuleName);
CompilerOptions options = new CompilerOptionsImpl(compileDir, newModuleName);
boolean success = new Compiler(options).run(compileLogger, module);
lastBuild.set(compileDir);
if (!success) {
compileLogger.log(TreeLogger.Type.ERROR, "Compiler returned " + success);
throw new UnableToCompleteException();
}