mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-07-30 07:18:37 -09:00
GP-0: JAVA_HOME_OVERRIDE now works if it's surrounded by double quotes
This commit is contained in:
@@ -91,7 +91,11 @@ public class LaunchProperties {
|
||||
public File getJavaHomeOverride() {
|
||||
List<String> javaHome = propertyMap.get(JAVA_HOME_OVERRIDE);
|
||||
if (javaHome != null && !javaHome.isEmpty()) {
|
||||
return new File(javaHome.get(0));
|
||||
String path = javaHome.get(0).trim();
|
||||
if (path.length() > 2 && path.startsWith("\"") && path.endsWith("\"")) {
|
||||
path = path.substring(1, path.length() - 1);
|
||||
}
|
||||
return new File(path);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user