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.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * 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.
 */

/**
 * ContinuumActionSupport:
 *
 * @author: Jesse McConnell <jesse@codehaus.org>
 * @version: $ID:$
 */
public class ContinuumActionSupport
    extends PlexusActionSupport
    implements Preparable
{

    /**
     * @plexus.requirement
     */
    protected Continuum continuum;
    
    public void prepare()
        throws Exception
    {
        getLogger().info("checking the continuum configuration");
        
        if ( !continuum.getConfiguration().isInitialized() )
        {
            throw new ContinuumInitializationException( "continuum not initialized" );
        }

    }

    public Continuum getContinuum()
    {
        return continuum;
    }

    public void setContinuum( Continuum continuum )
    {
        this.continuum = continuum;
    }
}

@@ -45,272 +45,64 @@
 n;%0A%0A
-import org.codehaus.plexus.xwork.action.PlexusActionSupport;%0Aimport org.apache.maven.continuum.Continuum;%0Aimport org.apache.maven.continuum.initialization.ContinuumInitializationException;%0Aimport com.opensymphony.xwork.Preparable;%0A/*%0A * Copyright 2005 The Codehaus
+/*%0A * Copyright 2005-2006 The Apache Software Foundation
 .%0A *
@@ -662,13 +662,166 @@
 se.%0A
+ *%0A
  */%0A%0A
+import org.apache.maven.continuum.Continuum;%0Aimport org.codehaus.plexus.xwork.action.PlexusActionSupport;%0A%0Aimport com.opensymphony.xwork.Preparable;%0A%0A
 /**%0A
@@ -845,17 +845,16 @@
 nSupport
-:
 %0A *%0A * @
@@ -859,17 +859,16 @@
  @author
-:
  Jesse M
@@ -912,14 +912,12 @@
 sion
-:
  $I
-D:
+d
 $%0A *
@@ -925,16 +925,25 @@
 %0Apublic 
+abstract 
 class Co
@@ -1168,252 +1168,8 @@
   %7B%0A
-        getLogger().info(%22checking the continuum configuration%22);%0A        %0A        if ( !continuum.getConfiguration().isInitialized() )%0A        %7B%0A            throw new ContinuumInitializationException( %22continuum not initialized%22 );%0A        %7D%0A%0A
     

Remove continuum initialization from action, need another way to do it