continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r781889 - /continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/DefaultContinuumReleaseManager.java
Date Fri, 05 Jun 2009 02:10:03 GMT
Author: ctan
Date: Fri Jun  5 02:10:03 2009
New Revision: 781889

URL: http://svn.apache.org/viewvc?rev=781889&view=rev
Log:
[CONTINUUM-2257] do not override release arguments when setting local repository

Modified:
    continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/DefaultContinuumReleaseManager.java

Modified: continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/DefaultContinuumReleaseManager.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/DefaultContinuumReleaseManager.java?rev=781889&r1=781888&r2=781889&view=diff
==============================================================================
--- continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/DefaultContinuumReleaseManager.java
(original)
+++ continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/DefaultContinuumReleaseManager.java
Fri Jun  5 02:10:03 2009
@@ -41,6 +41,7 @@
 import org.codehaus.plexus.taskqueue.Task;
 import org.codehaus.plexus.taskqueue.TaskQueue;
 import org.codehaus.plexus.taskqueue.TaskQueueException;
+import org.codehaus.plexus.util.StringUtils;
 
 /**
  * @author Jason van Zyl
@@ -252,8 +253,17 @@
 
         if ( repository != null )
         {
-            descriptor.setAdditionalArguments( descriptor.getAdditionalArguments() + " \"-Dmaven.repo.local="
+ repository.getLocation() + "\"" );
-            //descriptor.setAdditionalArguments( "\"-Dmaven.repo.local=" + repository.getLocation()
+ "\"" );
+            String args = descriptor.getAdditionalArguments();
+
+            if ( StringUtils.isNotEmpty( args ) )
+            {
+                descriptor.setAdditionalArguments( args + 
+                                                   " \"-Dmaven.repo.local=" + repository.getLocation()
+ "\"" );
+            }
+            else
+            {
+                descriptor.setAdditionalArguments( "\"-Dmaven.repo.local=" + repository.getLocation()
+ "\"" );
+            }
         }
 
         //other properties



Mime
View raw message