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

View File

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