You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@continuum.apache.org by ca...@apache.org on 2006/08/18 00:51:10 UTC

svn commit: r432420 - /maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ContinuumActionSupport.java

Author: carlos
Date: Thu Aug 17 15:51:10 2006
New Revision: 432420

URL: http://svn.apache.org/viewvc?rev=432420&view=rev
Log:
Remove continuum initialization from action, need another way to do it

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

Modified: maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ContinuumActionSupport.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ContinuumActionSupport.java?rev=432420&r1=432419&r2=432420&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ContinuumActionSupport.java (original)
+++ maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ContinuumActionSupport.java Thu Aug 17 15:51:10 2006
@@ -1,11 +1,7 @@
 package org.apache.maven.continuum.web.action;
 
-import org.codehaus.plexus.xwork.action.PlexusActionSupport;
-import org.apache.maven.continuum.Continuum;
-import org.apache.maven.continuum.initialization.ContinuumInitializationException;
-import com.opensymphony.xwork.Preparable;
 /*
- * Copyright 2005 The Codehaus.
+ * Copyright 2005-2006 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -18,15 +14,21 @@
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
+ *
  */
 
+import org.apache.maven.continuum.Continuum;
+import org.codehaus.plexus.xwork.action.PlexusActionSupport;
+
+import com.opensymphony.xwork.Preparable;
+
 /**
- * ContinuumActionSupport:
+ * ContinuumActionSupport
  *
- * @author: Jesse McConnell <je...@codehaus.org>
- * @version: $ID:$
+ * @author Jesse McConnell <je...@codehaus.org>
+ * @version $Id$
  */
-public class ContinuumActionSupport
+public abstract class ContinuumActionSupport
     extends PlexusActionSupport
     implements Preparable
 {
@@ -39,13 +41,6 @@
     public void prepare()
         throws Exception
     {
-        getLogger().info("checking the continuum configuration");
-        
-        if ( !continuum.getConfiguration().isInitialized() )
-        {
-            throw new ContinuumInitializationException( "continuum not initialized" );
-        }
-
     }
 
     public Continuum getContinuum()