GP-6704: Fixed expanding env vars in launch.properties when they

contained regex chars (Closes #9061)
This commit is contained in:
Ryan Kurtz
2026-04-14 06:23:14 -04:00
parent ffac3f95d3
commit 79da29c6f6
2 changed files with 2 additions and 2 deletions

View File

@@ -124,7 +124,7 @@ public class LaunchSupport {
}
}
catch (Exception e) {
System.err.println(e.getMessage());
e.printStackTrace(System.err);
}
System.exit(exitCode);

View File

@@ -220,7 +220,7 @@ public class LaunchProperties {
String key = entry.getKey();
String value = entry.getValue();
try {
text = text.replaceAll("\\$\\{" + key + "\\}", value.replace("\\", "\\\\"));
text = text.replace("${" + key + "}", value);
}
catch (IllegalArgumentException e) {
String msg =