continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r480936 - /maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/project/builder/maven/MavenTwoContinuumProjectBuilder.java
Date Thu, 30 Nov 2006 14:19:39 GMT
Author: evenisse
Date: Thu Nov 30 06:19:38 2006
New Revision: 480936

URL: http://svn.apache.org/viewvc?view=rev&rev=480936
Log:
Don't try to load a module if the module name is empty

Modified:
    maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/project/builder/maven/MavenTwoContinuumProjectBuilder.java

Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/project/builder/maven/MavenTwoContinuumProjectBuilder.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/project/builder/maven/MavenTwoContinuumProjectBuilder.java?view=diff&rev=480936&r1=480935&r2=480936
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/project/builder/maven/MavenTwoContinuumProjectBuilder.java
(original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/project/builder/maven/MavenTwoContinuumProjectBuilder.java
Thu Nov 30 06:19:38 2006
@@ -250,22 +250,25 @@
         {
             String module = (String) it.next();
 
-            String urlString = prefix + "/" + module + POM_PART + suffix;
+            if ( StringUtils.isNotEmpty( module ) )
+            {
+                String urlString = prefix + "/" + module + POM_PART + suffix;
 
-            URL moduleUrl;
+                URL moduleUrl;
 
-            try
-            {
-                moduleUrl = new URL( urlString );
-            }
-            catch ( MalformedURLException e )
-            {
-                getLogger().debug( "Error adding project module: Malformed URL " + urlString,
e );
-                result.addError( ContinuumProjectBuildingResult.ERROR_MALFORMED_URL, urlString
);
-                continue;
-            }
+                try
+                {
+                    moduleUrl = new URL( urlString );
+                }
+                catch ( MalformedURLException e )
+                {
+                    getLogger().debug( "Error adding project module: Malformed URL " + urlString,
e );
+                    result.addError( ContinuumProjectBuildingResult.ERROR_MALFORMED_URL,
urlString );
+                    continue;
+                }
 
-            readModules( moduleUrl, result, false, username, password, scmUrl + "/" + module
);
+                readModules( moduleUrl, result, false, username, password, scmUrl + "/" +
module );
+            }
         }
     }
 



Mime
View raw message