Cleans content of each found directory when unpacking a new java_vm.
Fixes the problem when java_wm was build using standard jar. 
For pack200 this remains unresolved.
This commit is contained in:
Guenther Demetz
2018-11-29 10:24:20 +01:00
parent ac876a36ef
commit dd9c83a347
3 changed files with 35 additions and 9 deletions
@@ -116,7 +116,7 @@ public abstract class Getdown extends Thread
} else if (_readyToInstall) {
log.info("Installing " + _toInstallResources.size() + " downloaded resources:");
for (Resource resource : _toInstallResources) {
resource.install();
resource.install(false);
}
_toInstallResources.clear();
_readyToInstall = false;
@@ -589,7 +589,7 @@ public abstract class Getdown extends Thread
reportTrackingEvent("jvm_unpack", -1);
updateStatus("m.unpacking_java");
vmjar.install();
vmjar.install(true);
// these only run on non-Windows platforms, so we use Unix file separators
String localJavaDir = LaunchUtil.LOCAL_JAVA_DIR + "/";