maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdca...@apache.org
Subject svn commit: r675444 - /maven/components/branches/maven-2.0.x/maven-project/src/main/java/org/apache/maven/project/path/DefaultPathTranslator.java
Date Thu, 10 Jul 2008 05:25:03 GMT
Author: jdcasey
Date: Wed Jul  9 22:25:03 2008
New Revision: 675444

URL: http://svn.apache.org/viewvc?rev=675444&view=rev
Log:
Normalizing the file separators.

Modified:
    maven/components/branches/maven-2.0.x/maven-project/src/main/java/org/apache/maven/project/path/DefaultPathTranslator.java

Modified: maven/components/branches/maven-2.0.x/maven-project/src/main/java/org/apache/maven/project/path/DefaultPathTranslator.java
URL: http://svn.apache.org/viewvc/maven/components/branches/maven-2.0.x/maven-project/src/main/java/org/apache/maven/project/path/DefaultPathTranslator.java?rev=675444&r1=675443&r2=675444&view=diff
==============================================================================
--- maven/components/branches/maven-2.0.x/maven-project/src/main/java/org/apache/maven/project/path/DefaultPathTranslator.java
(original)
+++ maven/components/branches/maven-2.0.x/maven-project/src/main/java/org/apache/maven/project/path/DefaultPathTranslator.java
Wed Jul  9 22:25:03 2008
@@ -120,6 +120,8 @@
         if ( requiresBaseDirectoryAlignment( s ) )
         {
             s = new File( new File( basedir, s ).toURI().normalize() ).getAbsolutePath();
+            s = s.replace( '/', File.separatorChar );
+            s = s.replace( '\\', File.separatorChar );
         }
 
         return s;



Mime
View raw message