mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -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")
|
.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) {
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user