continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r508369 - /maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/AddMavenTwoProjectAction.java
Date Fri, 16 Feb 2007 11:12:47 GMT
Author: evenisse
Date: Fri Feb 16 03:12:45 2007
New Revision: 508369

URL: http://svn.apache.org/viewvc?view=rev&rev=508369
Log:
[CONTINUUM-1169] Fix m2 uploads on linux

Modified:
    maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/AddMavenTwoProjectAction.java

Modified: maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/AddMavenTwoProjectAction.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/AddMavenTwoProjectAction.java?view=diff&rev=508369&r1=508368&r2=508369
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/AddMavenTwoProjectAction.java
(original)
+++ maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/AddMavenTwoProjectAction.java
Fri Feb 16 03:12:45 2007
@@ -23,6 +23,7 @@
 import org.apache.maven.continuum.project.builder.ContinuumProjectBuildingResult;
 import org.apache.maven.model.Model;
 import org.apache.maven.model.io.xpp3.MavenXpp3Reader;
+import org.codehaus.plexus.util.StringUtils;
 import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
 
 import java.io.File;
@@ -63,6 +64,13 @@
             try
             {
                 String filePath = pomUrl;
+
+                if ( !filePath.startsWith( FILE_SCHEME + "/" ) && filePath.startsWith(
FILE_SCHEME ) )
+                {
+                    //Little hack for linux (CONTINUUM-1169)
+                    filePath = StringUtils.replace( filePath, FILE_SCHEME, FILE_SCHEME +
"/" );
+                }
+
                 if ( filePath.startsWith( FILE_SCHEME ) )
                 {
                     filePath = filePath.substring( FILE_SCHEME.length() );



Mime
View raw message