Fix bug on mac when regenerating classes.jsa when path has spaces
This commit is contained in:
@@ -525,9 +525,10 @@ public abstract class Getdown extends Thread
|
|||||||
|
|
||||||
// lastly regenerate the .jsa dump file that helps Java to start up faster
|
// lastly regenerate the .jsa dump file that helps Java to start up faster
|
||||||
String vmpath = LaunchUtil.getJVMBinaryPath(javaLocalDir, false);
|
String vmpath = LaunchUtil.getJVMBinaryPath(javaLocalDir, false);
|
||||||
|
String[] command = new String[]{vmpath, "-Xshare:dump"};
|
||||||
try {
|
try {
|
||||||
log.info("Regenerating classes.jsa for " + vmpath + "...");
|
log.info("Regenerating classes.jsa for " + vmpath + "...");
|
||||||
Runtime.getRuntime().exec(vmpath + " -Xshare:dump");
|
Runtime.getRuntime().exec(command);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.warning("Failed to regenerate .jsa dump file", "error", e);
|
log.warning("Failed to regenerate .jsa dump file", "error", e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user