maven-scm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r691064 - in /maven/scm/trunk/maven-scm-providers/maven-scm-providers-svn/maven-scm-provider-svnexe/src: main/java/org/apache/maven/scm/provider/svn/svnexe/command/checkout/ test/java/org/apache/maven/scm/provider/svn/svnexe/command/checkout/
Date Mon, 01 Sep 2008 21:25:04 GMT
Author: olamy
Date: Mon Sep  1 14:25:04 2008
New Revision: 691064

URL: http://svn.apache.org/viewvc?rev=691064&view=rev
Log:
[SCM-409] Windows path length limitations can be overcome by feeding an absolute path to SVN
(checkout command)


Modified:
    maven/scm/trunk/maven-scm-providers/maven-scm-providers-svn/maven-scm-provider-svnexe/src/main/java/org/apache/maven/scm/provider/svn/svnexe/command/checkout/SvnCheckOutCommand.java
    maven/scm/trunk/maven-scm-providers/maven-scm-providers-svn/maven-scm-provider-svnexe/src/test/java/org/apache/maven/scm/provider/svn/svnexe/command/checkout/SvnCheckOutCommandTest.java

Modified: maven/scm/trunk/maven-scm-providers/maven-scm-providers-svn/maven-scm-provider-svnexe/src/main/java/org/apache/maven/scm/provider/svn/svnexe/command/checkout/SvnCheckOutCommand.java
URL: http://svn.apache.org/viewvc/maven/scm/trunk/maven-scm-providers/maven-scm-providers-svn/maven-scm-provider-svnexe/src/main/java/org/apache/maven/scm/provider/svn/svnexe/command/checkout/SvnCheckOutCommand.java?rev=691064&r1=691063&r2=691064&view=diff
==============================================================================
--- maven/scm/trunk/maven-scm-providers/maven-scm-providers-svn/maven-scm-provider-svnexe/src/main/java/org/apache/maven/scm/provider/svn/svnexe/command/checkout/SvnCheckOutCommand.java
(original)
+++ maven/scm/trunk/maven-scm-providers/maven-scm-providers-svn/maven-scm-provider-svnexe/src/main/java/org/apache/maven/scm/provider/svn/svnexe/command/checkout/SvnCheckOutCommand.java
Mon Sep  1 14:25:04 2008
@@ -155,7 +155,7 @@
 
         cl.createArg().setValue( url );
 
-        cl.createArg().setValue( workingDirectory.getName() );
+        cl.createArg().setValue( workingDirectory.getAbsolutePath() );
 
         return cl;
     }

Modified: maven/scm/trunk/maven-scm-providers/maven-scm-providers-svn/maven-scm-provider-svnexe/src/test/java/org/apache/maven/scm/provider/svn/svnexe/command/checkout/SvnCheckOutCommandTest.java
URL: http://svn.apache.org/viewvc/maven/scm/trunk/maven-scm-providers/maven-scm-providers-svn/maven-scm-provider-svnexe/src/test/java/org/apache/maven/scm/provider/svn/svnexe/command/checkout/SvnCheckOutCommandTest.java?rev=691064&r1=691063&r2=691064&view=diff
==============================================================================
--- maven/scm/trunk/maven-scm-providers/maven-scm-providers-svn/maven-scm-provider-svnexe/src/test/java/org/apache/maven/scm/provider/svn/svnexe/command/checkout/SvnCheckOutCommandTest.java
(original)
+++ maven/scm/trunk/maven-scm-providers/maven-scm-providers-svn/maven-scm-provider-svnexe/src/test/java/org/apache/maven/scm/provider/svn/svnexe/command/checkout/SvnCheckOutCommandTest.java
Mon Sep  1 14:25:04 2008
@@ -65,14 +65,16 @@
         throws Exception
     {
         testCommandLine( getScmManager(), "scm:svn:http://foo.com/svn/trunk", null,
-                         "svn --non-interactive checkout http://foo.com/svn/trunk " + workingDirectory.getName()
);
+                         "svn --non-interactive checkout http://foo.com/svn/trunk "
+                             + workingDirectory.getAbsolutePath() );
     }
 
     public void testCommandLineWithEmptyRevision()
         throws Exception
     {
         testCommandLine( getScmManager(), "scm:svn:http://foo.com/svn/trunk", "",
-                         "svn --non-interactive checkout http://foo.com/svn/trunk " + workingDirectory.getName()
);
+                         "svn --non-interactive checkout http://foo.com/svn/trunk "
+                             + workingDirectory.getAbsolutePath() );
     }
 
     public void testCommandLineWithRevision()
@@ -80,7 +82,7 @@
     {
         testCommandLine( getScmManager(), "scm:svn:http://foo.com/svn/trunk", "10",
                          "svn --non-interactive checkout -r 10 http://foo.com/svn/trunk "
-                             + workingDirectory.getName() );
+                             + workingDirectory.getAbsolutePath() );
     }
 
     public void testRecursiveCheckOutCommandLine()
@@ -89,7 +91,7 @@
         recursive = false;
         testCommandLine( getScmManager(), "scm:svn:http://foo.com/svn/trunk", "10",
                          "svn --non-interactive checkout -N -r 10 http://foo.com/svn/trunk
"
-                             + workingDirectory.getName() );
+                             + workingDirectory.getAbsolutePath() );
     }
 
     // ----------------------------------------------------------------------



Mime
View raw message