maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject [1/2] maven-scm git commit: [SCM-864] fix module name not passed to cvs rls
Date Sat, 03 Mar 2018 10:06:01 GMT
Repository: maven-scm
Updated Branches:
  refs/heads/master 9282d0ed1 -> 558d49694


[SCM-864] fix module name not passed to cvs rls


Project: http://git-wip-us.apache.org/repos/asf/maven-scm/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-scm/commit/83b9c548
Tree: http://git-wip-us.apache.org/repos/asf/maven-scm/tree/83b9c548
Diff: http://git-wip-us.apache.org/repos/asf/maven-scm/diff/83b9c548

Branch: refs/heads/master
Commit: 83b9c548d99b361da800b2da1204f4f182bd6483
Parents: 6f7dd0c
Author: Ilya Basin <basinilya@gmail.com>
Authored: Sun Feb 18 11:10:48 2018 +0300
Committer: Ilya Basin <basinilya@gmail.com>
Committed: Sun Feb 18 13:26:36 2018 +0300

----------------------------------------------------------------------
 .../cvslib/command/list/AbstractCvsListCommand.java      | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-scm/blob/83b9c548/maven-scm-providers/maven-scm-providers-cvs/maven-scm-provider-cvs-commons/src/main/java/org/apache/maven/scm/provider/cvslib/command/list/AbstractCvsListCommand.java
----------------------------------------------------------------------
diff --git a/maven-scm-providers/maven-scm-providers-cvs/maven-scm-provider-cvs-commons/src/main/java/org/apache/maven/scm/provider/cvslib/command/list/AbstractCvsListCommand.java
b/maven-scm-providers/maven-scm-providers-cvs/maven-scm-provider-cvs-commons/src/main/java/org/apache/maven/scm/provider/cvslib/command/list/AbstractCvsListCommand.java
index 5c7d1d0..58a00b4 100644
--- a/maven-scm-providers/maven-scm-providers-cvs/maven-scm-provider-cvs-commons/src/main/java/org/apache/maven/scm/provider/cvslib/command/list/AbstractCvsListCommand.java
+++ b/maven-scm-providers/maven-scm-providers-cvs/maven-scm-provider-cvs-commons/src/main/java/org/apache/maven/scm/provider/cvslib/command/list/AbstractCvsListCommand.java
@@ -65,6 +65,16 @@ public abstract class AbstractCvsListCommand
             cl.createArg().setValue( "-R" );
         }
 
+        String modulePref = repository.getModule();
+        if ( !StringUtils.isEmpty( modulePref ) )
+        {
+            modulePref += File.separatorChar;
+        }
+        else
+        {
+            modulePref = "";
+        }
+
         for ( Iterator<File> it = fileSet.getFileList().iterator(); it.hasNext(); )
         {
             File target = (File) it.next();
@@ -73,6 +83,7 @@ public abstract class AbstractCvsListCommand
             {
                 path = path.substring( 1 );
             }
+            path = modulePref + path;
             cl.createArg().setValue( path );
         }
 


Mime
View raw message