Return-Path: Delivered-To: apmail-continuum-commits-archive@www.apache.org Received: (qmail 83529 invoked from network); 14 Apr 2009 06:08:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Apr 2009 06:08:37 -0000 Received: (qmail 52532 invoked by uid 500); 14 Apr 2009 06:08:37 -0000 Delivered-To: apmail-continuum-commits-archive@continuum.apache.org Received: (qmail 52476 invoked by uid 500); 14 Apr 2009 06:08:37 -0000 Mailing-List: contact commits-help@continuum.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@continuum.apache.org Delivered-To: mailing list commits@continuum.apache.org Received: (qmail 52467 invoked by uid 99); 14 Apr 2009 06:08:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Apr 2009 06:08:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Apr 2009 06:08:36 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 93A5B2388975; Tue, 14 Apr 2009 06:08:16 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@continuum.apache.org From: ctan@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090414060816.93A5B2388975@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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; + } } } }