Author: brett
Date: Tue May  2 01:31:50 2006
New Revision: 398853

URL: http://svn.apache.org/viewcvs?rev=398853&view=rev
Log:
[MRELEASE-98] commit phase and tests

Added:
    
maven/plugins/trunk/maven-release-plugin/src/test/java/org/apache/maven/plugins/release/phase/ScmCommitPhaseTest.java
   (with props)
    
maven/plugins/trunk/maven-release-plugin/src/test/resources/org/apache/maven/plugins/release/phase/ScmCommitPhaseTest.xml
   (with props)
    
maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/scm-commit/
    
maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/scm-commit/single-pom/
    
maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/scm-commit/single-pom/pom.xml
   (with props)
Modified:
    
maven/plugins/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/phase/ScmCheckModificationsPhase.java
    
maven/plugins/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/phase/ScmCommitPhase.java
    
maven/plugins/trunk/maven-release-plugin/src/main/resources/META-INF/plexus/components.xml
    
maven/plugins/trunk/maven-release-plugin/src/test/java/org/apache/maven/plugins/release/phase/ScmCheckModificationsPhaseTest.java

Modified: 
maven/plugins/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/phase/ScmCheckModificationsPhase.java
URL: 
http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/phase/ScmCheckModificationsPhase.java?rev=398853&r1=398852&r2=398853&view=diff
==============================================================================
--- 
maven/plugins/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/phase/ScmCheckModificationsPhase.java
 (original)
+++ 
maven/plugins/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/phase/ScmCheckModificationsPhase.java
 Tue May  2 01:31:50 2006
@@ -57,7 +57,7 @@
      * @todo proper construction of filenames, especially release properties
      */
     private Set excludedFiles = new HashSet( Arrays.asList(
-        new String[]{"pom.xml", "pom.xml.backup", "pom.xml.tag", 
"pom.xml.release", "release.properties"} ) );
+        new String[]{"pom.xml", "pom.xml.backup", "pom.xml.tag", 
"pom.xml.next", "release.properties"} ) );
 
     public void execute( ReleaseConfiguration releaseConfiguration )
         throws ReleaseExecutionException

Modified: 
maven/plugins/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/phase/ScmCommitPhase.java
URL: 
http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/phase/ScmCommitPhase.java?rev=398853&r1=398852&r2=398853&view=diff
==============================================================================
--- 
maven/plugins/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/phase/ScmCommitPhase.java
 (original)
+++ 
maven/plugins/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/phase/ScmCommitPhase.java
 Tue May  2 01:31:50 2006
@@ -16,25 +16,122 @@
  * limitations under the License.
  */
 
+import org.apache.maven.plugins.release.ReleaseExecutionException;
 import org.apache.maven.plugins.release.config.ReleaseConfiguration;
+import org.apache.maven.plugins.release.scm.ReleaseScmCommandException;
+import org.apache.maven.plugins.release.scm.ReleaseScmRepositoryException;
+import org.apache.maven.plugins.release.scm.ScmRepositoryConfigurator;
+import org.apache.maven.project.MavenProject;
+import org.apache.maven.scm.ScmException;
+import org.apache.maven.scm.ScmFileSet;
+import org.apache.maven.scm.command.checkin.CheckInScmResult;
+import org.apache.maven.scm.manager.NoSuchScmProviderException;
+import org.apache.maven.scm.provider.ScmProvider;
+import org.apache.maven.scm.repository.ScmRepository;
+import org.apache.maven.scm.repository.ScmRepositoryException;
+import org.codehaus.plexus.logging.AbstractLogEnabled;
+
+import java.io.File;
+import java.text.MessageFormat;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Iterator;
+import java.util.List;
 
 /**
- * TODO [!]: Description.
+ * Commit the project to the SCM.
  *
  * @author <a href="mailto:[EMAIL PROTECTED]">Brett Porter</a>
  */
 public class ScmCommitPhase
+    extends AbstractLogEnabled
     implements ReleasePhase
 {
+    /**
+     * Tool that gets a configured SCM repository from release configuration.
+     */
+    private ScmRepositoryConfigurator scmRepositoryConfigurator;
+
+    /**
+     * The format for the commit message.
+     */
+    private String messageFormat;
+
     public void execute( ReleaseConfiguration releaseConfiguration )
+        throws ReleaseExecutionException
     {
-        // TODO [!]: implement
+        validateConfiguration( releaseConfiguration );
+
+        getLogger().info( "Checking in modified POMs" );
 
+        ScmRepository repository;
+        ScmProvider provider;
+        try
+        {
+            repository = scmRepositoryConfigurator.getConfiguredRepository( 
releaseConfiguration );
+
+            provider = scmRepositoryConfigurator.getRepositoryProvider( 
repository );
+        }
+        catch ( ScmRepositoryException e )
+        {
+            throw new ReleaseScmRepositoryException( e.getMessage(), 
e.getValidationMessages() );
+        }
+        catch ( NoSuchScmProviderException e )
+        {
+            throw new ReleaseExecutionException( "Unable to configure SCM 
repository: " + e.getMessage(), e );
+        }
+
+        Collection pomFiles = createPomFiles( 
releaseConfiguration.getReactorProjects() );
+        File[] files = (File[]) pomFiles.toArray( new File[pomFiles.size()] );
+
+        CheckInScmResult result;
+        try
+        {
+            ScmFileSet fileSet = new ScmFileSet( 
releaseConfiguration.getWorkingDirectory(), files );
+            result = provider.checkIn( repository, fileSet, null, 
createMessage( releaseConfiguration ) );
+        }
+        catch ( ScmException e )
+        {
+            throw new ReleaseExecutionException( "An error is occurred in the 
checkin process.", e );
+        }
+        if ( !result.isSuccess() )
+        {
+            throw new ReleaseScmCommandException( "Unable to check for local 
modifications", result );
+        }
     }
 
     public void simulate( ReleaseConfiguration releaseConfiguration )
+        throws ReleaseExecutionException
+    {
+        validateConfiguration( releaseConfiguration );
+
+        Collection pomFiles = createPomFiles( 
releaseConfiguration.getReactorProjects() );
+        getLogger().info( "Expected to be checking in " + pomFiles.size() + " 
files with message: '" +
+            createMessage( releaseConfiguration ) + "'" );
+    }
+
+    private static void validateConfiguration( ReleaseConfiguration 
releaseConfiguration )
+        throws ReleaseExecutionException
+    {
+        if ( releaseConfiguration.getReleaseLabel() == null )
+        {
+            throw new ReleaseExecutionException( "A release label is required 
for committing" );
+        }
+    }
+
+    private String createMessage( ReleaseConfiguration releaseConfiguration )
     {
-        // TODO [!]: implement
+        return MessageFormat.format( messageFormat, new 
Object[]{releaseConfiguration.getReleaseLabel()} );
+    }
 
+    private static Collection createPomFiles( List reactorProjects )
+    {
+        List pomFiles = new ArrayList( reactorProjects.size() );
+        for ( Iterator i = reactorProjects.iterator(); i.hasNext(); )
+        {
+            MavenProject project = (MavenProject) i.next();
+            pomFiles.add( project.getFile() );
+        }
+        return pomFiles;
     }
 }

Modified: 
maven/plugins/trunk/maven-release-plugin/src/main/resources/META-INF/plexus/components.xml
URL: 
http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-release-plugin/src/main/resources/META-INF/plexus/components.xml?rev=398853&r1=398852&r2=398853&view=diff
==============================================================================
--- 
maven/plugins/trunk/maven-release-plugin/src/main/resources/META-INF/plexus/components.xml
 (original)
+++ 
maven/plugins/trunk/maven-release-plugin/src/main/resources/META-INF/plexus/components.xml
 Tue May  2 01:31:50 2006
@@ -43,11 +43,11 @@
           <phase>generate-release-poms</phase>
           <phase>run-tests</phase>
           <phase>run-preparation-goals</phase>
-          <phase>scm-commit</phase>
+          <phase>scm-commit-release</phase>
           <phase>scm-tag</phase>
           <phase>rewrite-poms-for-development</phase>
           <phase>remove-release-poms</phase>
-          <phase>scm-commit</phase>
+          <phase>scm-commit-development</phase>
         </phases>
       </configuration>
     </component>
@@ -159,8 +159,29 @@
     </component>
     <component>
       <role>org.apache.maven.plugins.release.phase.ReleasePhase</role>
-      <role-hint>scm-commit</role-hint>
+      <role-hint>scm-commit-release</role-hint>
       
<implementation>org.apache.maven.plugins.release.phase.ScmCommitPhase</implementation>
+      <requirements>
+        <requirement>
+          
<role>org.apache.maven.plugins.release.scm.ScmRepositoryConfigurator</role>
+        </requirement>
+      </requirements>
+      <configuration>
+        <messageFormat>[maven-release-plugin] prepare release 
{0}</messageFormat>
+      </configuration>
+    </component>
+    <component>
+      <role>org.apache.maven.plugins.release.phase.ReleasePhase</role>
+      <role-hint>scm-commit-development</role-hint>
+      
<implementation>org.apache.maven.plugins.release.phase.ScmCommitPhase</implementation>
+      <requirements>
+        <requirement>
+          
<role>org.apache.maven.plugins.release.scm.ScmRepositoryConfigurator</role>
+        </requirement>
+      </requirements>
+      <configuration>
+        <messageFormat>[maven-release-plugin] prepare for next development 
iteration</messageFormat>
+      </configuration>
     </component>
     <component>
       <role>org.apache.maven.plugins.release.phase.ReleasePhase</role>

Modified: 
maven/plugins/trunk/maven-release-plugin/src/test/java/org/apache/maven/plugins/release/phase/ScmCheckModificationsPhaseTest.java
URL: 
http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-release-plugin/src/test/java/org/apache/maven/plugins/release/phase/ScmCheckModificationsPhaseTest.java?rev=398853&r1=398852&r2=398853&view=diff
==============================================================================
--- 
maven/plugins/trunk/maven-release-plugin/src/test/java/org/apache/maven/plugins/release/phase/ScmCheckModificationsPhaseTest.java
 (original)
+++ 
maven/plugins/trunk/maven-release-plugin/src/test/java/org/apache/maven/plugins/release/phase/ScmCheckModificationsPhaseTest.java
 Tue May  2 01:31:50 2006
@@ -231,7 +231,7 @@
         ReleaseConfiguration releaseConfiguration = 
createReleaseConfiguration();
 
         setChangedFiles( releaseConfiguration, Arrays.asList( new 
String[]{"release.properties", "pom.xml",
-            "pom.xml.backup", "module/pom.xml", "pom.xml.tag", 
"pom.xml.release"} ) );
+            "pom.xml.backup", "module/pom.xml", "pom.xml.tag", "pom.xml.next"} 
) );
 
         phase.execute( releaseConfiguration );
 

Added: 
maven/plugins/trunk/maven-release-plugin/src/test/java/org/apache/maven/plugins/release/phase/ScmCommitPhaseTest.java
URL: 
http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-release-plugin/src/test/java/org/apache/maven/plugins/release/phase/ScmCommitPhaseTest.java?rev=398853&view=auto
==============================================================================
--- 
maven/plugins/trunk/maven-release-plugin/src/test/java/org/apache/maven/plugins/release/phase/ScmCommitPhaseTest.java
 (added)
+++ 
maven/plugins/trunk/maven-release-plugin/src/test/java/org/apache/maven/plugins/release/phase/ScmCommitPhaseTest.java
 Tue May  2 01:31:50 2006
@@ -0,0 +1,302 @@
+package org.apache.maven.plugins.release.phase;
+
+/*
+ * Copyright 2005-2006 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import org.apache.maven.plugins.release.ReleaseExecutionException;
+import org.apache.maven.plugins.release.config.ReleaseConfiguration;
+import org.apache.maven.plugins.release.scm.DefaultScmRepositoryConfigurator;
+import org.apache.maven.plugins.release.scm.ReleaseScmCommandException;
+import org.apache.maven.plugins.release.scm.ReleaseScmRepositoryException;
+import org.apache.maven.plugins.release.scm.ScmRepositoryConfigurator;
+import org.apache.maven.project.MavenProject;
+import org.apache.maven.scm.ScmException;
+import org.apache.maven.scm.ScmFileSet;
+import org.apache.maven.scm.command.checkin.CheckInScmResult;
+import org.apache.maven.scm.manager.NoSuchScmProviderException;
+import org.apache.maven.scm.manager.ScmManager;
+import org.apache.maven.scm.manager.ScmManagerStub;
+import org.apache.maven.scm.provider.ScmProvider;
+import org.apache.maven.scm.provider.ScmProviderStub;
+import org.apache.maven.scm.repository.ScmRepositoryException;
+import org.jmock.cglib.Mock;
+import org.jmock.core.Constraint;
+import org.jmock.core.constraint.IsAnything;
+import org.jmock.core.constraint.IsEqual;
+import org.jmock.core.constraint.IsNull;
+import org.jmock.core.matcher.InvokeAtLeastOnceMatcher;
+import org.jmock.core.matcher.TestFailureMatcher;
+import org.jmock.core.stub.ReturnStub;
+import org.jmock.core.stub.ThrowStub;
+
+import java.util.Arrays;
+import java.util.Collections;
+
+/**
+ * Test the SCM commit phase.
+ *
+ * @author <a href="mailto:[EMAIL PROTECTED]">Brett Porter</a>
+ * @todo [!] multiple projects
+ */
+public class ScmCommitPhaseTest
+    extends AbstractReleaseTestCase
+{
+    private static final String PREFIX = "[maven-release-plugin] prepare 
release ";
+
+    protected void setUp()
+        throws Exception
+    {
+        super.setUp();
+
+        phase = (ReleasePhase) lookup( ReleasePhase.ROLE, "scm-commit-release" 
);
+    }
+
+    public void testCommit()
+        throws Exception
+    {
+        ReleaseConfiguration config = createConfigurationFromProjects( 
"scm-commit/", "single-pom", true );
+        config.setUrl( "scm-url" );
+        MavenProject rootProject = (MavenProject) 
config.getReactorProjects().get( 0 );
+        config.setWorkingDirectory( rootProject.getFile().getParentFile() );
+        config.setReleaseLabel( "release-label" );
+
+        ScmFileSet fileSet = new ScmFileSet( 
rootProject.getFile().getParentFile(), rootProject.getFile() );
+
+        Mock scmProviderMock = new Mock( ScmProvider.class );
+        Constraint[] arguments = new Constraint[]{new IsAnything(), new 
IsScmFileSetEquals( fileSet ), new IsNull(),
+            new IsEqual( PREFIX + "release-label" )};
+        scmProviderMock.expects( new InvokeAtLeastOnceMatcher() ).method( 
"checkIn" ).with( arguments ).will(
+            new ReturnStub( new CheckInScmResult( "...", 
Collections.singletonList( rootProject.getFile() ) ) ) );
+
+        ScmManagerStub stub = (ScmManagerStub) lookup( ScmManager.ROLE );
+        stub.setScmProvider( (ScmProvider) scmProviderMock.proxy() );
+
+        phase.execute( config );
+
+        assertTrue( true );
+    }
+
+    public void testCommitDevelopment()
+        throws Exception
+    {
+        phase = (ReleasePhase) lookup( ReleasePhase.ROLE, 
"scm-commit-development" );
+
+        ReleaseConfiguration config = createConfigurationFromProjects( 
"scm-commit/", "single-pom", true );
+        config.setUrl( "scm-url" );
+        MavenProject rootProject = (MavenProject) 
config.getReactorProjects().get( 0 );
+        config.setWorkingDirectory( rootProject.getFile().getParentFile() );
+        config.setReleaseLabel( "release-label" );
+
+        ScmFileSet fileSet = new ScmFileSet( 
rootProject.getFile().getParentFile(), rootProject.getFile() );
+
+        Mock scmProviderMock = new Mock( ScmProvider.class );
+        Constraint[] arguments = new Constraint[]{new IsAnything(), new 
IsScmFileSetEquals( fileSet ), new IsNull(),
+            new IsEqual( "[maven-release-plugin] prepare for next development 
iteration" )};
+        scmProviderMock.expects( new InvokeAtLeastOnceMatcher() ).method( 
"checkIn" ).with( arguments ).will(
+            new ReturnStub( new CheckInScmResult( "...", 
Collections.singletonList( rootProject.getFile() ) ) ) );
+
+        ScmManagerStub stub = (ScmManagerStub) lookup( ScmManager.ROLE );
+        stub.setScmProvider( (ScmProvider) scmProviderMock.proxy() );
+
+        phase.execute( config );
+
+        assertTrue( true );
+    }
+
+    public void testCommitNoReleaseLabel()
+        throws Exception
+    {
+        ReleaseConfiguration config = createConfigurationFromProjects( 
"scm-commit/", "single-pom", true );
+
+        try
+        {
+            phase.execute( config );
+            fail( "Should have thrown an exception" );
+        }
+        catch ( ReleaseExecutionException e )
+        {
+            assertNull( "Check no other cause", e.getCause() );
+        }
+    }
+
+    public void testSimulateCommit()
+        throws Exception
+    {
+        ReleaseConfiguration config = createConfigurationFromProjects( 
"scm-commit/", "single-pom", true );
+        config.setUrl( "scm-url" );
+        MavenProject rootProject = (MavenProject) 
config.getReactorProjects().get( 0 );
+        config.setWorkingDirectory( rootProject.getFile().getParentFile() );
+        config.setReleaseLabel( "release-label" );
+
+        Mock scmProviderMock = new Mock( ScmProvider.class );
+        scmProviderMock.expects( new TestFailureMatcher( "Shouldn't have 
called checkIn" ) ).method( "checkIn" );
+
+        ScmManagerStub stub = (ScmManagerStub) lookup( ScmManager.ROLE );
+        stub.setScmProvider( (ScmProvider) scmProviderMock.proxy() );
+
+        phase.simulate( config );
+
+        assertTrue( true );
+    }
+
+    public void testSimulateCommitNoReleaseLabel()
+        throws Exception
+    {
+        ReleaseConfiguration config = createConfigurationFromProjects( 
"scm-commit/", "single-pom", true );
+
+        try
+        {
+            phase.simulate( config );
+            fail( "Should have thrown an exception" );
+        }
+        catch ( ReleaseExecutionException e )
+        {
+            assertNull( "Check no other cause", e.getCause() );
+        }
+    }
+
+    public void testNoSuchScmProviderExceptionThrown()
+        throws Exception
+    {
+        ReleaseConfiguration releaseConfiguration = 
createReleaseConfiguration();
+
+        Mock scmManagerMock = new Mock( ScmManager.class );
+        scmManagerMock.expects( new InvokeAtLeastOnceMatcher() ).method( 
"makeScmRepository" ).with(
+            new IsEqual( "scm-url" ) ).will( new ThrowStub( new 
NoSuchScmProviderException( "..." ) ) );
+
+        ScmManager scmManager = (ScmManager) scmManagerMock.proxy();
+        DefaultScmRepositoryConfigurator configurator =
+            (DefaultScmRepositoryConfigurator) lookup( 
ScmRepositoryConfigurator.ROLE );
+        configurator.setScmManager( scmManager );
+
+        try
+        {
+            phase.execute( releaseConfiguration );
+
+            fail( "Status check should have failed" );
+        }
+        catch ( ReleaseExecutionException e )
+        {
+            assertEquals( "check cause", NoSuchScmProviderException.class, 
e.getCause().getClass() );
+        }
+    }
+
+    public void testScmRepositoryExceptionThrown()
+        throws Exception
+    {
+        ReleaseConfiguration releaseConfiguration = 
createReleaseConfiguration();
+
+        Mock scmManagerMock = new Mock( ScmManager.class );
+        scmManagerMock.expects( new InvokeAtLeastOnceMatcher() ).method( 
"makeScmRepository" ).with(
+            new IsEqual( "scm-url" ) ).will( new ThrowStub( new 
ScmRepositoryException( "..." ) ) );
+
+        ScmManager scmManager = (ScmManager) scmManagerMock.proxy();
+        DefaultScmRepositoryConfigurator configurator =
+            (DefaultScmRepositoryConfigurator) lookup( 
ScmRepositoryConfigurator.ROLE );
+        configurator.setScmManager( scmManager );
+
+        try
+        {
+            phase.execute( releaseConfiguration );
+
+            fail( "Status check should have failed" );
+        }
+        catch ( ReleaseScmRepositoryException e )
+        {
+            assertNull( "Check no additional cause", e.getCause() );
+        }
+    }
+
+    public void testScmExceptionThrown()
+        throws Exception
+    {
+        ReleaseConfiguration releaseConfiguration = 
createReleaseConfiguration();
+
+        Mock scmProviderMock = new Mock( ScmProvider.class );
+        scmProviderMock.expects( new InvokeAtLeastOnceMatcher() ).method( 
"checkIn" ).will(
+            new ThrowStub( new ScmException( "..." ) ) );
+
+        ScmManagerStub stub = (ScmManagerStub) lookup( ScmManager.ROLE );
+        stub.setScmProvider( (ScmProvider) scmProviderMock.proxy() );
+
+        try
+        {
+            phase.execute( releaseConfiguration );
+
+            fail( "Status check should have failed" );
+        }
+        catch ( ReleaseExecutionException e )
+        {
+            assertEquals( "check cause", ScmException.class, 
e.getCause().getClass() );
+        }
+    }
+
+    private ReleaseConfiguration createReleaseConfiguration()
+        throws Exception
+    {
+        ReleaseConfiguration config = createConfigurationFromProjects( 
"scm-commit/", "single-pom", false );
+        config.setUrl( "scm-url" );
+        config.setReleaseLabel( "release-label" );
+        config.setWorkingDirectory( getTestFile( "target/test/checkout" ) );
+        return config;
+    }
+
+    public void testScmResultFailure()
+        throws Exception
+    {
+        ReleaseConfiguration releaseConfiguration = 
createReleaseConfiguration();
+
+        ScmManager scmManager = (ScmManager) lookup( ScmManager.ROLE );
+        ScmProviderStub providerStub = (ScmProviderStub) 
scmManager.getProviderByUrl( releaseConfiguration.getUrl() );
+
+        providerStub.setCheckInScmResult( new CheckInScmResult( "", "", "", 
false ) );
+
+        try
+        {
+            phase.execute( releaseConfiguration );
+
+            fail( "Commit should have failed" );
+        }
+        catch ( ReleaseScmCommandException e )
+        {
+            assertNull( "check no other cause", e.getCause() );
+        }
+    }
+
+    private static class IsScmFileSetEquals
+        implements Constraint
+    {
+        private final ScmFileSet fileSet;
+
+        IsScmFileSetEquals( ScmFileSet fileSet )
+        {
+            this.fileSet = fileSet;
+        }
+
+        public boolean eval( Object object )
+        {
+            ScmFileSet fs = (ScmFileSet) object;
+
+            return fs.getBasedir().equals( fileSet.getBasedir() ) &&
+                Arrays.asList( fs.getFiles() ).equals( Arrays.asList( 
fileSet.getFiles() ) );
+        }
+
+        public StringBuffer describeTo( StringBuffer stringBuffer )
+        {
+            return stringBuffer.append( fileSet.toString() );
+        }
+    }
+}

Propchange: 
maven/plugins/trunk/maven-release-plugin/src/test/java/org/apache/maven/plugins/release/phase/ScmCommitPhaseTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
maven/plugins/trunk/maven-release-plugin/src/test/java/org/apache/maven/plugins/release/phase/ScmCommitPhaseTest.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: 
maven/plugins/trunk/maven-release-plugin/src/test/resources/org/apache/maven/plugins/release/phase/ScmCommitPhaseTest.xml
URL: 
http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-release-plugin/src/test/resources/org/apache/maven/plugins/release/phase/ScmCommitPhaseTest.xml?rev=398853&view=auto
==============================================================================
--- 
maven/plugins/trunk/maven-release-plugin/src/test/resources/org/apache/maven/plugins/release/phase/ScmCommitPhaseTest.xml
 (added)
+++ 
maven/plugins/trunk/maven-release-plugin/src/test/resources/org/apache/maven/plugins/release/phase/ScmCommitPhaseTest.xml
 Tue May  2 01:31:50 2006
@@ -0,0 +1,33 @@
+<!--
+  ~ Copyright 2005-2006 The Apache Software Foundation.
+  ~
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~
+  ~      http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<component-set>
+  <components>
+    <component>
+      <role>org.apache.maven.scm.manager.ScmManager</role>
+      
<implementation>org.apache.maven.scm.manager.ScmManagerStub</implementation>
+    </component>
+    <!-- Turn off info messages -->
+    <component>
+      <role>org.codehaus.plexus.logging.LoggerManager</role>
+      
<implementation>org.codehaus.plexus.logging.console.ConsoleLoggerManager</implementation>
+      <lifecycle-handler>basic</lifecycle-handler>
+      <configuration>
+        <threshold>ERROR</threshold>
+      </configuration>
+    </component>
+  </components>
+</component-set>

Propchange: 
maven/plugins/trunk/maven-release-plugin/src/test/resources/org/apache/maven/plugins/release/phase/ScmCommitPhaseTest.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
maven/plugins/trunk/maven-release-plugin/src/test/resources/org/apache/maven/plugins/release/phase/ScmCommitPhaseTest.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: 
maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/scm-commit/single-pom/pom.xml
URL: 
http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/scm-commit/single-pom/pom.xml?rev=398853&view=auto
==============================================================================
--- 
maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/scm-commit/single-pom/pom.xml
 (added)
+++ 
maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/scm-commit/single-pom/pom.xml
 Tue May  2 01:31:50 2006
@@ -0,0 +1,22 @@
+<!--
+  ~ Copyright 2005-2006 The Apache Software Foundation.
+  ~
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~
+  ~      http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<project>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>groupId</groupId>
+  <artifactId>artifactId</artifactId>
+  <version>1.0-SNAPSHOT</version>
+</project>

Propchange: 
maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/scm-commit/single-pom/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/scm-commit/single-pom/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision


Reply via email to