Fixes incremental build when running through CLI

This commit is contained in:
konsoletyper 2014-09-10 21:23:22 +04:00
parent df49ead369
commit 5fc3574aad
2 changed files with 2 additions and 5 deletions

View File

@ -78,10 +78,6 @@ public final class TeaVMRunner {
.withDescription("Incremental build cache directory")
.withLongOpt("cachedir")
.create('c'));
options.addOption(OptionBuilder
.withDescription("Generate source maps")
.withLongOpt("sourcemaps")
.create());
if (args.length == 0) {
printUsage(options);
@ -140,6 +136,8 @@ public final class TeaVMRunner {
}
if (commandLine.hasOption('c')) {
tool.setCacheDirectory(new File(commandLine.getOptionValue('c')));
} else {
tool.setCacheDirectory(new File(tool.getTargetDirectory(), "teavm-cache"));
}
args = commandLine.getArgs();
if (args.length > 1) {

View File

@ -279,7 +279,6 @@ public class TeaVMTool {
cachedClassSource.flush();
symbolTable.flush();
fileTable.flush();
log.info(mainClass);
log.info("Cache updated");
}
}