Skip to content

Commit

Permalink
fix: msbuild can now be in a path containing spaces (fix provided via…
Browse files Browse the repository at this point in the history
… comment on JENKINS-22461 by Thorsten Bojer)
  • Loading branch information
Christopher Gross committed Jul 29, 2014
1 parent 635691a commit f72edcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/hudson/plugins/msbuild/MsBuildBuilder.java
Expand Up @@ -168,8 +168,8 @@ public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListen
}

if (!launcher.isUnix()) {
args.prepend("cmd.exe", "/C");
args.add("&&", "exit", "%%ERRORLEVEL%%");
args.prepend("cmd.exe", "/C", "\"");
args.add("\"", "&&", "exit", "%%ERRORLEVEL%%");
}

try {
Expand Down

0 comments on commit f72edcd

Please sign in to comment.