We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35493f4 commit f29f71dCopy full SHA for f29f71d
src/main/java/net/neoforged/moddevgradle/internal/RunUtils.java
@@ -58,7 +58,8 @@ private RunUtils() {
58
59
public static String escapeJvmArg(String arg) {
60
var escaped = arg.replace("\\", "\\\\").replace("\"", "\\\"");
61
- if (escaped.contains(" ")) {
+ // # is used for line comments in arg files and should be quoted to avoid misinterpretation
62
+ if (escaped.contains(" ") || escaped.contains("#")) {
63
return "\"" + escaped + "\"";
64
}
65
return escaped;
0 commit comments