You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix Windows batch file handling of pipe symbols in JVM config
The previous approach of escaping pipe symbols with ^ was insufficient
because Windows batch files interpret pipe symbols as command separators
even when escaped, causing commands like '*.de' to be executed.
This change implements a safer approach:
1. JvmConfigParser.java now outputs each JVM argument on a separate line
instead of trying to escape pipe symbols on a single line
2. mvn.cmd creates a temporary batch file that includes the JVM config
arguments line by line, avoiding command line parsing issues with
pipe symbols
3. The temporary batch file is executed with the Maven arguments,
ensuring pipe symbols in JVM config are passed correctly to the
Java process
This approach completely avoids Windows command line parsing issues
with pipe symbols while maintaining compatibility with Linux systems.
0 commit comments