| package org.apache.maven.continuum.it; |
| |
| /* |
| * Copyright 2004-2005 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. |
| * 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. |
| */ |
| |
| /** |
| * @author <a href="mailto:trygvis@inamo.no">Trygve Laugstøl</a> |
| * @version $Id$ |
| */ |
| public class ContinuumIt |
| { |
| public static void main( String[] args ) |
| throws Exception |
| { |
| AbstractIntegrationTest.progress( "############################################################" ); |
| AbstractIntegrationTest.progress( "Running integration tests" ); |
| AbstractIntegrationTest.progress( "" ); |
| AbstractIntegrationTest.progress( "NOTE:" ); |
| AbstractIntegrationTest.progress( "When running these integration tests you will get some" ); |
| AbstractIntegrationTest.progress( "stacktraces. This is normal and expected." ); |
| AbstractIntegrationTest.progress( "############################################################" ); |
| /* |
| // ---------------------------------------------------------------------- |
| // Set up the enviroment |
| // ---------------------------------------------------------------------- |
| |
| File basedir = new File( new File( "" ).getAbsolutePath() ); |
| |
| File plexusHome = new File( basedir, "../continuum-plexus-application/target/plexus-test-runtime" ); |
| |
| System.setProperty( "plexus.home", plexusHome.getAbsolutePath() ); |
| |
| // ---------------------------------------------------------------------- |
| // Start the application host |
| // ---------------------------------------------------------------------- |
| |
| PlexusApplicationHost applicationHost = new PlexusApplicationHost(); |
| |
| ClassWorld classWorld = new ClassWorld(); |
| |
| // String configurationResource = new File( basedir, "../continuum-plexus-application/src/conf/application.xml" ).getAbsolutePath(); |
| |
| String configurationResource = new File( basedir, "src/main/resources/server.xml" ).getAbsolutePath(); |
| |
| applicationHost.start( classWorld, configurationResource ); |
| |
| ApplicationServer server = applicationHost.getApplicationServer(); |
| |
| ApplicationRuntimeProfile profile = server.getApplicationRuntimeProfile( "continuum" ); |
| |
| PlexusContainer container = profile.getContainer(); |
| |
| applicationHost.shutdown(); |
| */ |
| } |
| } |