a small code simplification

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19451 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2009-07-07 16:56:09 +00:00
1 parent 1bdbdbb398
commit f6e9363491
3 files changed
+9 -4

No files matched your search

@@ -360,8 +360,7 @@ public final class MavenModuleSetBuild extends AbstractBuild<MavenModuleSet,Mave
ProcessCache.MavenProcess process = MavenBuild.mavenProcessCache.get(launcher.getChannel(), slistener,
new MavenProcessFactory(project,launcher,envVars,pom.getParent()));
ArgumentListBuilder margs = new ArgumentListBuilder();
margs.add("-B").add("-f", pom.getRemote());
ArgumentListBuilder margs = new ArgumentListBuilder().add("-B").add("-f", pom.getRemote());
if(project.usesPrivateRepository())
margs.add("-Dmaven.repo.local="+project.getWorkspace().child(".repository"));
margs.addTokenized(envVars.expand(project.getGoals()));