mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Fixes incremental build when running through CLI
This commit is contained in:
parent
df49ead369
commit
5fc3574aad
|
@ -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) {
|
||||
|
|
|
@ -279,7 +279,6 @@ public class TeaVMTool {
|
|||
cachedClassSource.flush();
|
||||
symbolTable.flush();
|
||||
fileTable.flush();
|
||||
log.info(mainClass);
|
||||
log.info("Cache updated");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user