continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r506484 - /maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/admin/ConfigurationAction.java
Date Mon, 12 Feb 2007 15:26:28 GMT
Author: brett
Date: Mon Feb 12 07:26:28 2007
New Revision: 506484

URL: http://svn.apache.org/viewvc?view=rev&rev=506484
Log:
don't swallow exception

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

Modified: maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/admin/ConfigurationAction.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/admin/ConfigurationAction.java?view=diff&rev=506484&r1=506483&r2=506484
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/admin/ConfigurationAction.java
(original)
+++ maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/admin/ConfigurationAction.java
Mon Feb 12 07:26:28 2007
@@ -96,31 +96,24 @@
     public String save()
         throws ConfigurationStoringException, ContinuumStoreException
     {
+        ConfigurationService configuration = getContinuum().getConfiguration();
 
-        try
-        {
-            ConfigurationService configuration = getContinuum().getConfiguration();
+        configuration.setWorkingDirectory( new File( workingDirectory ) );
 
-            configuration.setWorkingDirectory( new File( workingDirectory ) );
+        configuration.setBuildOutputDirectory( new File( buildOutputDirectory ) );
 
-            configuration.setBuildOutputDirectory( new File( buildOutputDirectory ) );
+        if ( StringUtils.isNotEmpty( deploymentRepositoryDirectory ) )
+        {
+            configuration.setDeploymentRepositoryDirectory( new File( deploymentRepositoryDirectory
) );
+        }
 
-            if ( StringUtils.isNotEmpty( deploymentRepositoryDirectory ) )
-            {
-                configuration.setDeploymentRepositoryDirectory( new File( deploymentRepositoryDirectory
) );
-            }
+        configuration.setUrl( baseUrl );
 
-            configuration.setUrl( baseUrl );
+        configuration.setInitialized( true );
 
-            configuration.setInitialized( true );
-            configuration.store();
-        }
-        catch ( Exception e )
-        {
-            e.printStackTrace();
-        }
-        return SUCCESS;
+        configuration.store();
 
+        return SUCCESS;
     }
 
     public String getWorkingDirectory()



Mime
View raw message