continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r764682 - /continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/phase/GenerateReactorProjectsPhase.java
Date Tue, 14 Apr 2009 06:08:16 GMT
Author: ctan
Date: Tue Apr 14 06:08:15 2009
New Revision: 764682

URL: http://svn.apache.org/viewvc?rev=764682&view=rev
Log:
[CONTINUUM-1728] fixed parsing local repository path with spaces

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

Modified: continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/phase/GenerateReactorProjectsPhase.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/phase/GenerateReactorProjectsPhase.java?rev=764682&r1=764681&r2=764682&view=diff
==============================================================================
--- continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/phase/GenerateReactorProjectsPhase.java
(original)
+++ continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/phase/GenerateReactorProjectsPhase.java
Tue Apr 14 06:08:15 2009
@@ -211,13 +211,32 @@
         if ( arguments != null )
         {
             String[] args = arguments.split( " " );
+            boolean shouldContinue = false;
             
             for ( int i = 0; i < args.length; i++ )
             {
                 if ( args[i].contains( "-Dmaven.repo.local=" ) )
                 {
                     localRepository = args[i].substring( args[i].indexOf( "=" ) + 1 );
-                    break;
+
+                    if ( !localRepository.endsWith( "\"" ) )
+                    {
+                        shouldContinue = true;
+                        continue;
+                    }
+                    else
+                    {
+                        break;
+                    }
+                }
+                else if ( shouldContinue )
+                {
+                    localRepository += " " + args[i];
+
+                    if ( args[i].endsWith( "\"" ) )
+                    {
+                        break;
+                    }
                 }
             }
         }



Mime
View raw message