mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
TeaVMTool: handle target directory creation error
This commit is contained in:
parent
b3727191b4
commit
51603695f4
|
@ -436,7 +436,11 @@ public class TeaVMTool {
|
||||||
for (String className : classesToPreserve) {
|
for (String className : classesToPreserve) {
|
||||||
vm.preserveType(className);
|
vm.preserveType(className);
|
||||||
}
|
}
|
||||||
targetDirectory.mkdirs();
|
|
||||||
|
if (!targetDirectory.mkdirs()) {
|
||||||
|
log.error("Target directory could not be created");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
BuildTarget buildTarget = new DirectoryBuildTarget(targetDirectory);
|
BuildTarget buildTarget = new DirectoryBuildTarget(targetDirectory);
|
||||||
String outputName = getResolvedTargetFileName();
|
String outputName = getResolvedTargetFileName();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user