Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix JENKINS-12222
  • Loading branch information
gboissinot committed Dec 25, 2011
1 parent cd03248 commit a9d5634
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main/java/hudson/plugins/msbuild/MsBuildBuilder.java
Expand Up @@ -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());
Expand Down

0 comments on commit a9d5634

Please sign in to comment.