Skip to content
Permalink
Browse files
Fix JENKINS-12222
  • Loading branch information
gboissinot committed Dec 25, 2011
1 parent cd03248 commit a9d5634b60914a4292bcd001075adf6254b7a3a1
Showing with 3 additions and 4 deletions.
  1. +3 −4 src/main/java/hudson/plugins/msbuild/MsBuildBuilder.java
@@ -89,14 +89,13 @@ public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListen
}
listener.getLogger().println("Path To MSBuild.exe: " + pathToMsBuild);
args.add(pathToMsBuild);
}

if (ai.getDefaultArgs() != null) {
args.addTokenized(ai.getDefaultArgs());
if (ai.getDefaultArgs() != null) {
args.addTokenized(ai.getDefaultArgs());
}
}

EnvVars env = build.getEnvironment(listener);

String normalizedArgs = cmdLineArgs.replaceAll("[\t\r\n]+", " ");
normalizedArgs = Util.replaceMacro(normalizedArgs, env);
normalizedArgs = Util.replaceMacro(normalizedArgs, build.getBuildVariables());

0 comments on commit a9d5634

Please sign in to comment.