maven-scm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vsive...@apache.org
Subject svn commit: r690993 - /maven/scm/trunk/maven-scm-providers/maven-scm-providers-cvs/maven-scm-provider-cvs-commons/src/main/java/org/apache/maven/scm/provider/cvslib/command/tag/AbstractCvsTagCommand.java
Date Mon, 01 Sep 2008 15:15:32 GMT
Author: vsiveton
Date: Mon Sep  1 08:15:31 2008
New Revision: 690993

URL: http://svn.apache.org/viewvc?rev=690993&view=rev
Log:
SCM-360: CVS Tag command doesn't use FileSet (list of files), tagging ALL files in working
directory
Submitted by: Andrei Solntsev
Reviewed by: Vincent Siveton

o applied with correct style

Modified:
    maven/scm/trunk/maven-scm-providers/maven-scm-providers-cvs/maven-scm-provider-cvs-commons/src/main/java/org/apache/maven/scm/provider/cvslib/command/tag/AbstractCvsTagCommand.java

Modified: maven/scm/trunk/maven-scm-providers/maven-scm-providers-cvs/maven-scm-provider-cvs-commons/src/main/java/org/apache/maven/scm/provider/cvslib/command/tag/AbstractCvsTagCommand.java
URL: http://svn.apache.org/viewvc/maven/scm/trunk/maven-scm-providers/maven-scm-providers-cvs/maven-scm-provider-cvs-commons/src/main/java/org/apache/maven/scm/provider/cvslib/command/tag/AbstractCvsTagCommand.java?rev=690993&r1=690992&r2=690993&view=diff
==============================================================================
--- maven/scm/trunk/maven-scm-providers/maven-scm-providers-cvs/maven-scm-provider-cvs-commons/src/main/java/org/apache/maven/scm/provider/cvslib/command/tag/AbstractCvsTagCommand.java
(original)
+++ maven/scm/trunk/maven-scm-providers/maven-scm-providers-cvs/maven-scm-provider-cvs-commons/src/main/java/org/apache/maven/scm/provider/cvslib/command/tag/AbstractCvsTagCommand.java
Mon Sep  1 08:15:31 2008
@@ -19,6 +19,9 @@
  * under the License.
  */
 
+import java.io.File;
+import java.util.Iterator;
+
 import org.apache.maven.scm.ScmException;
 import org.apache.maven.scm.ScmFileSet;
 import org.apache.maven.scm.ScmResult;
@@ -53,6 +56,15 @@
 
         cl.createArgument().setValue( tag );
 
+        if ( fileSet.getFileList() != null && !fileSet.getFileList().isEmpty() )
+        {
+            for ( Iterator it = fileSet.getFileList().iterator(); it.hasNext(); )
+            {
+                File fileName = (File) it.next();
+                cl.createArgument().setValue( fileName.toString() );
+            }
+        }
+
         getLogger().info( "Executing: " + cl );
         getLogger().info( "Working directory: " + cl.getWorkingDirectory().getAbsolutePath()
);
 



Mime
View raw message