File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
apache-maven/src/assembly/maven/bin Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -69,8 +69,13 @@ public static void main(String[] args) {
6969 line = line .replace ("${MAVEN_PROJECTBASEDIR}" , mavenProjectBasedir );
7070 line = line .replace ("$MAVEN_PROJECTBASEDIR" , mavenProjectBasedir );
7171
72- // Quote the argument to protect special characters
73- // Escape any existing quotes by doubling them
72+ // Strip outer quotes if present (they're just for grouping in jvm.config)
73+ if (line .startsWith ("\" " ) && line .endsWith ("\" " ) && line .length () > 1 ) {
74+ line = line .substring (1 , line .length () - 1 );
75+ }
76+
77+ // Quote the argument to protect special characters for batch script
78+ // Escape any quotes by doubling them (batch script convention)
7479 line = line .replace ("\" " , "\" \" " );
7580
7681 // Append quoted argument with space separator
You can’t perform that action at this time.
0 commit comments