mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
fix: don't terminate if the target directory already exists
This commit is contained in:
parent
10415b356e
commit
f57af7631b
|
@ -437,9 +437,9 @@ public class TeaVMTool {
|
|||
vm.preserveType(className);
|
||||
}
|
||||
|
||||
if (!targetDirectory.mkdirs()) {
|
||||
if (!targetDirectory.exists() && !targetDirectory.mkdirs()) {
|
||||
log.error("Target directory could not be created");
|
||||
return;
|
||||
System.exit(-1);
|
||||
}
|
||||
|
||||
BuildTarget buildTarget = new DirectoryBuildTarget(targetDirectory);
|
||||
|
|
Loading…
Reference in New Issue
Block a user