Skip to content

Commit 28c4128

Browse files
zulkarintellij-monorepo-bot
authored andcommitted
[maven][IDEA-378115] fix maven arguments splitting for windows
(cherry picked from commit 971377c6d62d845fe2fc1ef579218fd7de368c6d) IJ-CR-173735 GitOrigin-RevId: ee1e6cb62e11111f20108fcc38a30b7bac02447e
1 parent 4034d99 commit 28c4128

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/maven/src/main/java/org/jetbrains/idea/maven/execution/run/MavenShCommandLineState.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ class MavenShCommandLineState(val environment: ExecutionEnvironment, private val
154154
tmpData.append("\r\n")
155155
}
156156

157-
tmpData.append(commandPrefix).append(batParams.list.joinToString("^\r\n ") { CommandLineUtil.escapeParameterOnWindows(it, true) })
157+
tmpData.append(commandPrefix).append(batParams.list.joinToString(" ") { CommandLineUtil.escapeParameterOnWindows(it, true) })
158158

159159
val tempDirectory = FileUtilRt.getTempDirectory()
160160
val tmpBat = FileUtil.createTempFile(File(tempDirectory), "mvn-idea-exec", ".bat", false, true)

0 commit comments

Comments
 (0)