continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From epunza...@apache.org
Subject svn commit: r745134 - /continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/project/builder/maven/MavenTwoContinuumProjectBuilder.java
Date Tue, 17 Feb 2009 16:23:54 GMT
Author: epunzalan
Date: Tue Feb 17 16:23:54 2009
New Revision: 745134

URL: http://svn.apache.org/viewvc?rev=745134&view=rev
Log:
cleaning up, to use the method where the exceptions are already handled and put in the result
object... same with maven1 builder

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

Modified: continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/project/builder/maven/MavenTwoContinuumProjectBuilder.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/project/builder/maven/MavenTwoContinuumProjectBuilder.java?rev=745134&r1=745133&r2=745134&view=diff
==============================================================================
--- continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/project/builder/maven/MavenTwoContinuumProjectBuilder.java
(original)
+++ continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/project/builder/maven/MavenTwoContinuumProjectBuilder.java
Tue Feb 17 16:23:54 2009
@@ -152,7 +152,7 @@
 
         try
         {
-            pomFile = createMetadataFile( url, username, password, result );
+            pomFile = createMetadataFile( result, url, username, password );
             
             if ( result.hasErrors() )
             {
@@ -166,42 +166,6 @@
                 return;
             }
         }
-        catch ( MalformedURLException e )
-        {
-            log.debug( "Error adding project: Malformed URL " + url, e );
-            result.addError( ContinuumProjectBuildingResult.ERROR_MALFORMED_URL );
-            return;
-        }
-        catch ( URISyntaxException e )
-        {
-            log.debug( "Error adding project: Malformed URL " + url, e );
-            result.addError( ContinuumProjectBuildingResult.ERROR_MALFORMED_URL );
-            return;
-        }        
-        catch ( FileNotFoundException e )
-        {
-            log.debug( "Error adding project: File not found " + url, e );
-            result.addError( ContinuumProjectBuildingResult.ERROR_POM_NOT_FOUND );
-            return;
-        }
-        catch ( ConnectException e )
-        {
-            log.debug( "Error adding project: Unable to connect " + url, e );
-            result.addError( ContinuumProjectBuildingResult.ERROR_CONNECT );
-            return;
-        }
-        catch ( IOException e )
-        {
-            log.info( "Error adding project: Unknown error downloading from " + url, e );
-            result.addError( ContinuumProjectBuildingResult.ERROR_UNKNOWN );
-            return;
-        }
-        catch ( HttpException e )
-        {
-            log.info( "Error adding project: Unknown error downloading from " + url, e );
-            result.addError( ContinuumProjectBuildingResult.ERROR_UNKNOWN );
-            return;
-        }        
         finally
         {
             if ( pomFile != null && pomFile.exists() )



Mime
View raw message