continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@apache.org
Subject svn commit: r432423 - /maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ContinuumActionSupport.java
Date Thu, 17 Aug 2006 22:55:57 GMT
Author: carlos
Date: Thu Aug 17 15:55:56 2006
New Revision: 432423

URL: http://svn.apache.org/viewvc?rev=432423&view=rev
Log:
Reverted part of 432420, wrong branch

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=432423&r1=432422&r2=432423&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:55:56 2006
@@ -14,10 +14,10 @@
  * 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.apache.maven.continuum.initialization.ContinuumInitializationException;
 import org.codehaus.plexus.xwork.action.PlexusActionSupport;
 
 import com.opensymphony.xwork.Preparable;
@@ -28,7 +28,7 @@
  * @author Jesse McConnell <jesse@codehaus.org>
  * @version $Id$
  */
-public abstract class ContinuumActionSupport
+public class ContinuumActionSupport
     extends PlexusActionSupport
     implements Preparable
 {
@@ -41,6 +41,13 @@
     public void prepare()
         throws Exception
     {
+        getLogger().info("checking the continuum configuration");
+        
+        if ( !continuum.getConfiguration().isInitialized() )
+        {
+            throw new ContinuumInitializationException( "continuum not initialized" );
+        }
+
     }
 
     public Continuum getContinuum()



Mime
View raw message