-
Bug
-
Resolution: Unresolved
-
Major
-
Windows Server 2008 R2 Standard, JDK 1.7.0.51
I get the following error when trying to run the sbt plugin through a windows path that contains spaces.
[workspace] $ cmd.exe /C "C:\Program Files\Java\jdk1.7.0_51\bin\java" -Xms1024M -Xmx1024M -XX:+CMSClassUnloadingEnabled -Dsbt.log.noformat=true -jar "C:\Program Files (x86)\sbt\bin\sbt-launch.jar" runMain
'C:\Program' is not recognized as an internal or external command, operable program or batch file.
Build step 'Build using sbt' changed build result to FAILURE
I think the correct syntax is to place the whole command in extra quotes in immediately after cmd /c and at the end.
So this works for me when I run it through the command line:
cmd.exe /C " "C:\Program Files\Java\jdk1.7.0_51\bin\java" -Xms1024M -Xmx1024M -XX:+CMSClassUnloadingEnabled -Dsbt.log.noformat=true -jar "C:\Program Files (x86)\sbt\bin\sbt-launch.jar" runMain "
Code changed in jenkins
User: Spyros Kapnissis
Path:
src/main/java/org/jvnet/hudson/plugins/SbtPluginBuilder.java
http://jenkins-ci.org/commit/sbt-plugin/e9875fec697b72bd61867967f8447bce70d72fdb
Log:
JENKINS-24346: add an extra set of quotes after cmd/c to handle paths with spaces in Windows.