maven-scm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pschnei...@apache.org
Subject svn commit: r533231 - /maven/scm/trunk/maven-scm-providers/maven-scm-provider-perforce/src/main/java/org/apache/maven/scm/provider/perforce/PerforceScmProvider.java
Date Fri, 27 Apr 2007 21:33:30 GMT
Author: pschneider
Date: Fri Apr 27 14:33:29 2007
New Revision: 533231

URL: http://svn.apache.org/viewvc?view=rev&rev=533231
Log:
PR: SCM-305
Fixes release:perform on linux by ensuring generated clientspec name contains no slashes.

Modified:
    maven/scm/trunk/maven-scm-providers/maven-scm-provider-perforce/src/main/java/org/apache/maven/scm/provider/perforce/PerforceScmProvider.java

Modified: maven/scm/trunk/maven-scm-providers/maven-scm-provider-perforce/src/main/java/org/apache/maven/scm/provider/perforce/PerforceScmProvider.java
URL: http://svn.apache.org/viewvc/maven/scm/trunk/maven-scm-providers/maven-scm-provider-perforce/src/main/java/org/apache/maven/scm/provider/perforce/PerforceScmProvider.java?view=diff&rev=533231&r1=533230&r2=533231
==============================================================================
--- maven/scm/trunk/maven-scm-providers/maven-scm-provider-perforce/src/main/java/org/apache/maven/scm/provider/perforce/PerforceScmProvider.java
(original)
+++ maven/scm/trunk/maven-scm-providers/maven-scm-provider-perforce/src/main/java/org/apache/maven/scm/provider/perforce/PerforceScmProvider.java
Fri Apr 27 14:33:29 2007
@@ -390,7 +390,8 @@
         try
         {
             hostname = InetAddress.getLocalHost().getHostName();
-            path = workDir.getCanonicalPath();
+            // client specs cannot contain forward slashes; backslash is okay
+            path = workDir.getCanonicalPath().replace( '/', '\\' );
         }
         catch ( UnknownHostException e )
         {



Mime
View raw message