Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #15 from XitasoChris/master
Fix: MSBuild can now be in a path containing spaces (JENKINS-22461)
  • Loading branch information
gboissinot committed Jul 29, 2014
2 parents 635691a + f72edcd commit da904ff
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 da904ff

Please sign in to comment.