diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs
new file mode 100644
index 000000000..c9364f124
--- /dev/null
+++ b/.git-blame-ignore-revs
@@ -0,0 +1,2 @@
+# code reformat after spotless enabled
+bacaf1cc15b1dc5e13b52c7d82c0058464d9e676
\ No newline at end of file
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 000000000..b76b89570
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,10 @@
+version: 2
+updates:
+ - package-ecosystem: "maven"
+ directory: "/"
+ schedule:
+ interval: "daily"
+ - package-ecosystem: "github-actions"
+ directory: "/"
+ schedule:
+ interval: "daily"
diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml
new file mode 100644
index 000000000..652bd55d1
--- /dev/null
+++ b/.github/release-drafter.yml
@@ -0,0 +1,5 @@
+_extends: .github
+# plexus-pom uses a single version number
+version-template: '$MAJOR'
+name-template: '$NEXT_MAJOR_VERSION'
+tag-template: 'plexus-$NEXT_MAJOR_VERSION'
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
new file mode 100644
index 000000000..09feae474
--- /dev/null
+++ b/.github/workflows/maven.yml
@@ -0,0 +1,31 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+
+name: GitHub CI
+
+on: [push, pull_request]
+
+jobs:
+ build:
+ name: Build it
+ uses: codehaus-plexus/.github/.github/workflows/maven.yml@master
+
+ deploy:
+ name: Deploy
+ needs: build
+ uses: codehaus-plexus/.github/.github/workflows/maven-deploy.yml@master
+ secrets: inherit
diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml
new file mode 100644
index 000000000..4c09c8a70
--- /dev/null
+++ b/.github/workflows/release-drafter.yml
@@ -0,0 +1,12 @@
+name: Release Drafter
+on:
+ push:
+ branches:
+ - master
+jobs:
+ update_release_draft:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: release-drafter/release-drafter@v6
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000..50281e7c7
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,8 @@
+target/
+.project
+.classpath
+.settings/
+bin
+*.iml
+.idea
+.DS_Store
diff --git a/README.md b/README.md
new file mode 100644
index 000000000..fe3c96bdc
--- /dev/null
+++ b/README.md
@@ -0,0 +1,6 @@
+Plexus Parent POM
+=================
+
+[](https://search.maven.org/artifact/org.codehaus.plexus/plexus)
+
+The current master is now at https://github.com/codehaus-plexus/plexus-pom
diff --git a/plexus-appserver/plexus-appserver-host/pom.xml b/plexus-appserver/plexus-appserver-host/pom.xml
deleted file mode 100644
index 431cbff2b..000000000
--- a/plexus-appserver/plexus-appserver-host/pom.xml
+++ /dev/null
@@ -1,58 +0,0 @@
-
-
- org.codehaus.plexus
- plexus-appserver
- 2.0-alpha-4-SNAPSHOT
-
- 4.0.0
- plexus-appserver-host
- Plexus Application Server Host
-
-
-
- mx4j
- mx4j
- 3.0.1
-
-
- mx4j
- mx4j-remote
- 3.0.1
-
-
- org.livetribe
- livetribe-slp
- 1.0.2
-
-
-
-
-
-
- org.codehaus.plexus
- plexus-maven-plugin
-
-
- generate
-
- descriptor
-
-
-
- merge
-
-
-
- ${project.build.directory}/generated-resources/plexus/META-INF/plexus/components.xml
- src/main/plexus/components.xml
-
-
-
- merge-descriptors
-
-
-
-
-
-
-
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/AppDescriptor.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/AppDescriptor.java
deleted file mode 100644
index 90b1e53ce..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/AppDescriptor.java
+++ /dev/null
@@ -1,57 +0,0 @@
-package org.codehaus.plexus.appserver;
-
-import java.io.File;
-
-/**
- * @author Jason van Zyl
- */
-public class AppDescriptor
-{
- /**
- * Application id
- */
- private String id;
-
- /**
- * Application name
- */
- private String name;
-
- /**
- * Plexus Application Archive
- */
- private File par;
-
- /**
- * Application deployment directory
- */
- private File appDirectory;
-
- public AppDescriptor( String id, String name, File par, File appDirectory )
- {
- this.id = id;
- this.name = name;
- this.par = par;
- this.appDirectory = appDirectory;
- }
-
- public String getId()
- {
- return id;
- }
-
- public String getName()
- {
- return name;
- }
-
- public File getPar()
- {
- return par;
- }
-
- public File getAppDirectory()
- {
- return appDirectory;
- }
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/AppServerObject.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/AppServerObject.java
deleted file mode 100644
index 014413904..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/AppServerObject.java
+++ /dev/null
@@ -1,35 +0,0 @@
-package org.codehaus.plexus.appserver;
-
-import org.codehaus.plexus.appserver.deploy.DeploymentException;
-import org.codehaus.plexus.logging.AbstractLogEnabled;
-import org.codehaus.plexus.util.Expand;
-
-import java.io.File;
-
-/**
- * @author Jason van Zyl
- */
-public abstract class AppServerObject
- extends AbstractLogEnabled
-{
- protected void expand( File source, File outputDirectory, boolean overwrite )
- throws DeploymentException
- {
- Expand expander = new Expand();
-
- expander.setDest( outputDirectory );
-
- expander.setOverwrite( overwrite );
-
- expander.setSrc( source );
-
- try
- {
- expander.execute();
- }
- catch ( Exception e )
- {
- throw new DeploymentException( "Unable to extract " + source + " to " + outputDirectory + ".", e );
- }
- }
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/ApplicationServer.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/ApplicationServer.java
deleted file mode 100644
index d95d6cd18..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/ApplicationServer.java
+++ /dev/null
@@ -1,55 +0,0 @@
-package org.codehaus.plexus.appserver;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.codehaus.plexus.appserver.application.profile.AppRuntimeProfile;
-
-import java.io.File;
-
-/**
- * @author Trygve Laugstøl
- * @author Jason van Zyl
- * @version $Id$
- */
-public interface ApplicationServer
-{
- String ROLE = ApplicationServer.class.getName();
-
- AppRuntimeProfile getApplicationRuntimeProfile( String applicationId )
- throws ApplicationServerException;
-
- void deploy( String id, File location )
- throws ApplicationServerException;
-
- void redeploy( String id )
- throws ApplicationServerException;
-
- void undeploy( String id )
- throws ApplicationServerException;
-
- void addAppDescriptor( AppDescriptor appDescriptor );
-
- AppDescriptor getAppDescriptor( String appName );
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/ApplicationServerException.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/ApplicationServerException.java
deleted file mode 100644
index 54c06632f..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/ApplicationServerException.java
+++ /dev/null
@@ -1,35 +0,0 @@
-package org.codehaus.plexus.appserver;
-
-/*
- * 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 Trygve Laugstøl
- * @version $Id$
- */
-public class ApplicationServerException
- extends Exception
-{
- public ApplicationServerException( String message )
- {
- super( message );
- }
-
- public ApplicationServerException( String message, Throwable cause )
- {
- super( message, cause );
- }
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/DefaultApplicationServer.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/DefaultApplicationServer.java
deleted file mode 100644
index 93391a36a..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/DefaultApplicationServer.java
+++ /dev/null
@@ -1,185 +0,0 @@
-package org.codehaus.plexus.appserver;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.codehaus.plexus.PlexusConstants;
-import org.codehaus.plexus.PlexusContainer;
-import org.codehaus.plexus.appserver.application.deploy.ApplicationDeployer;
-import org.codehaus.plexus.appserver.application.profile.AppRuntimeProfile;
-import org.codehaus.plexus.appserver.lifecycle.AppServerContext;
-import org.codehaus.plexus.appserver.lifecycle.AppServerLifecycleException;
-import org.codehaus.plexus.appserver.lifecycle.phase.AppServerPhase;
-import org.codehaus.plexus.appserver.service.deploy.ServiceDeployer;
-import org.codehaus.plexus.component.repository.exception.ComponentLookupException;
-import org.codehaus.plexus.context.Context;
-import org.codehaus.plexus.context.ContextException;
-import org.codehaus.plexus.logging.AbstractLogEnabled;
-import org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable;
-import org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable;
-import org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException;
-import org.codehaus.plexus.personality.plexus.lifecycle.phase.Startable;
-import org.codehaus.plexus.personality.plexus.lifecycle.phase.StartingException;
-import org.codehaus.plexus.util.FileUtils;
-
-import java.io.File;
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.Map;
-
-/**
- * @author Jason van Zyl
- * @author bob mcwhirter
- * @author Trygve Laugstøl
- * @version $Id$
- */
-
-//- the containers aren't quite right. the appserver container is in the service which might not be correct
-//- the container is not initialized
-
-public class DefaultApplicationServer
- extends AbstractLogEnabled
- implements ApplicationServer, Initializable, Contextualizable, Startable
-{
- private PlexusContainer container;
-
- private ApplicationDeployer applicationDeployer;
-
- private ServiceDeployer serviceDeployer;
-
- //todo: cdc doing configurations
- private List phases;
-
- private Map appDescriptors;
-
- // ----------------------------------------------------------------------
- // Application Facade
- // ----------------------------------------------------------------------
-
- public AppRuntimeProfile getApplicationRuntimeProfile( String applicationId )
- throws ApplicationServerException
- {
- return applicationDeployer.getApplicationRuntimeProfile( applicationId );
- }
-
- // ----------------------------------------------------------------------------
- // Delegation to the appserver deploy
- // ----------------------------------------------------------------------------
-
- public void deploy( String id, File location )
- throws ApplicationServerException
- {
- applicationDeployer.deploy( id, location );
- }
-
- public void redeploy( String id )
- throws ApplicationServerException
- {
- applicationDeployer.redeploy( id );
- }
-
- public void undeploy( String id )
- throws ApplicationServerException
- {
- applicationDeployer.undeploy( id );
- }
-
- public void addAppDescriptor( AppDescriptor appDescriptor )
- {
- appDescriptors.put( appDescriptor.getId(), appDescriptor );
- }
-
- public AppDescriptor getAppDescriptor( String appId )
- {
- return (AppDescriptor) appDescriptors.get( appId );
- }
-
- public Collection getAppDescriptors()
- {
- return appDescriptors.values();
- }
-
- // ----------------------------------------------------------------------
- // Component Lifecycle
- // ----------------------------------------------------------------------
-
- public void contextualize( Context context )
- throws ContextException
- {
- container = (PlexusContainer) context.get( PlexusConstants.PLEXUS_KEY );
-
- container.addContextValue( "plexus.appserver", this );
- }
-
- public void initialize()
- throws InitializationException
- {
- appDescriptors = new LinkedHashMap();
- }
-
- public void start()
- throws StartingException
- {
- // ----------------------------------------------------------------------
- // Register the deployers inside the directory supervisor so applications
- // and services will be deployed.
- // ----------------------------------------------------------------------
-
- File appServerHome = FileUtils.resolveFile( new File( "." ), System.getProperty( "plexus.home" ) );
-
- AppServerContext appServerContext = new AppServerContext( this, appServerHome );
-
- for ( Iterator i = phases.iterator(); i.hasNext(); )
- {
- String appServerPhaseId = (String) i.next();
-
- try
- {
- AppServerPhase appServerPhase =
- (AppServerPhase) container.lookup( AppServerPhase.ROLE, appServerPhaseId );
-
- appServerPhase.execute( appServerContext );
- }
- catch ( ComponentLookupException e )
- {
- throw new StartingException(
- "The requested app server lifecycle phase cannot be found: " + appServerPhaseId, e );
- }
- catch ( AppServerLifecycleException e )
- {
- throw new StartingException( "Error in the app server lifecycle " + appServerPhaseId + " phase.", e );
- }
- }
-
- getLogger().info( "The appserver server has been initialized." );
- }
-
- public void stop()
- {
- // 1. should shut down all the apps and services properly
- // 2. serialize any configurations
- }
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/PlexusApplicationConstants.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/PlexusApplicationConstants.java
deleted file mode 100644
index 1bfbc9207..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/PlexusApplicationConstants.java
+++ /dev/null
@@ -1,40 +0,0 @@
-package org.codehaus.plexus.appserver;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-/**
- * @author Trygve Laugstøl
- * @version $Id$
- */
-public class PlexusApplicationConstants
-{
- public static final String CONF_DIRECTORY = "conf";
-
- public static final String CONFIGURATION_FILE = "application.xml";
-
- public static final String LIB_DIRECTORY = "lib";
-
- public static final String METADATA_FILE = "META-INF/plexus/application.xml";
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/PlexusApplicationHost.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/PlexusApplicationHost.java
deleted file mode 100644
index 182c98dff..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/PlexusApplicationHost.java
+++ /dev/null
@@ -1,285 +0,0 @@
-package org.codehaus.plexus.appserver;
-
-/*
- * Copyright (c) 2004, Codehaus.org
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.codehaus.classworlds.ClassWorld;
-import org.codehaus.plexus.DefaultPlexusContainer;
-import org.codehaus.plexus.PlexusContainer;
-import org.codehaus.plexus.logging.Logger;
-import org.codehaus.plexus.logging.LoggerManager;
-import org.codehaus.plexus.util.FileUtils;
-
-import java.io.File;
-import java.io.FileReader;
-
-// Container host plexus container is configured and initialized
-// The appserver component is looked up
-
-/**
- * A ContainerHost.
- *
- * @author Jason van Zyl
- * @author bob mcwhirter
- * @author Trygve Laugstøl
- * @version $Id$
- */
-public class PlexusApplicationHost
- implements Runnable
-{
- private DefaultPlexusContainer container;
-
- private boolean shouldStop;
-
- private boolean isStopped;
-
- private static final Object waitObj = new Object();
-
- private ApplicationServer applicationServer;
-
- private ClassWorld classWorld;
-
- private String configurationResource;
-
- // ----------------------------------------------------------------------
- //
- // ----------------------------------------------------------------------
-
- public PlexusContainer getContainer()
- {
- return container;
- }
-
- public ApplicationServer getApplicationServer()
- {
- return applicationServer;
- }
-
- // ----------------------------------------------------------------------
- //
- // ----------------------------------------------------------------------
-
- public void start( ClassWorld classWorld, String configurationResource )
- throws Exception
- {
- this.classWorld = classWorld;
-
- this.configurationResource = configurationResource;
-
- container = new DefaultPlexusContainer();
-
- container.setClassWorld( classWorld );
-
- container.setConfigurationResource( new FileReader( configurationResource ) );
-
- container.addContextValue( "plexus.home", System.getProperty( "plexus.home" ) );
-
- container.addContextValue( "plexus.work",
- System.getProperty( "plexus.home" ) + "/" + PlexusRuntimeConstants.WORK_DIRECTORY );
-
- container.addContextValue( "plexus.temp",
- System.getProperty( "plexus.home" ) + "/" + PlexusRuntimeConstants.TEMP_DIRECTORY );
-
- container.addContextValue( "plexus.logs",
- System.getProperty( "plexus.home" ) + "/" + PlexusRuntimeConstants.LOGS_DIRECTORY );
-
- File plexusLogs = FileUtils.resolveFile( new File( "." ), System.getProperty( "plexus.home" ) + "/" +
- PlexusRuntimeConstants.LOGS_DIRECTORY );
-
- if ( !plexusLogs.exists() )
- {
- plexusLogs.mkdirs();
- }
-
- container.initialize();
-
- container.start();
-
- LoggerManager loggerManager = (LoggerManager) container.lookup( LoggerManager.ROLE );
-
- loggerManager.setThreshold( Logger.LEVEL_DEBUG );
-
- final Logger logger = loggerManager.getLoggerForComponent( this.getClass().getName() );
-
- // ----------------------------------------------------------------------
- // This lookup will start the appserver server
- // ----------------------------------------------------------------------
-
- applicationServer = (ApplicationServer) container.lookup( ApplicationServer.ROLE );
-
- // ----------------------------------------------------------------------
- //
- // ----------------------------------------------------------------------
-
- // TODO: Add timing.
- logger.info( "The appserver server has started." );
-
- Thread thread = new Thread( this );
-
- thread.setDaemon( false );
-
- Runtime.getRuntime().addShutdownHook( new Thread( new Runnable()
- {
- public void run()
- {
- try
- {
- logger.info( "Shutting down the appserver container." );
-
- shutdown();
- }
- catch ( Exception e )
- {
- // do nothing.
- }
- }
- } ) );
-
- thread.start();
- }
-
- /**
- * Asynchronous hosting component loop.
- */
- public void run()
- {
- synchronized ( this )
- {
- while ( !shouldStop )
- {
- try
- {
- wait();
- }
- catch ( InterruptedException e )
- {
- //ignore
- }
- }
- }
-
- synchronized ( this )
- {
- isStopped = true;
-
- notifyAll();
- }
- }
-
- public void restart()
- throws Exception
- {
- shutdown();
-
- start( classWorld, configurationResource );
- }
-
- // ----------------------------------------------------------------------
- // Startup
- // ----------------------------------------------------------------------
-
- /**
- * Shutdown this container.
- *
- * @throws java.lang.Exception If an error occurs while shutting down the container.
- */
- public void shutdown()
- throws Exception
- {
- synchronized ( this )
- {
- shouldStop = true;
-
- container.release( applicationServer );
-
- container.dispose();
-
- notifyAll();
- }
-
- synchronized ( this )
- {
- while ( !isStopped )
- {
- try
- {
- wait();
- }
- catch ( InterruptedException e )
- {
- //ignore
- }
- }
-
- synchronized ( waitObj )
- {
- waitObj.notifyAll();
- }
- }
- }
-
- private boolean isStopped()
- {
- return isStopped;
- }
-
- // ----------------------------------------------------------------------
- // Main: used by org.codehaus.classworlds.Launcher
- // ----------------------------------------------------------------------
-
- public static void main( String[] args, ClassWorld classWorld )
- {
- if ( args.length != 1 )
- {
- System.err.println( "usage: plexus " );
-
- System.exit( 1 );
- }
-
- try
- {
- PlexusApplicationHost host = new PlexusApplicationHost();
-
- host.start( classWorld, args[0] );
-
- while ( !host.isStopped() )
- {
- try
- {
- synchronized ( waitObj )
- {
- waitObj.wait();
- }
- }
- catch ( InterruptedException e )
- {
- }
- }
- }
- catch ( Exception e )
- {
- e.printStackTrace();
-
- System.exit( 2 );
- }
- }
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/PlexusRuntimeConstants.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/PlexusRuntimeConstants.java
deleted file mode 100644
index 590acd92c..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/PlexusRuntimeConstants.java
+++ /dev/null
@@ -1,54 +0,0 @@
-package org.codehaus.plexus.appserver;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-/**
- * @author Trygve Laugstøl
- * @version $Id$
- */
-public class PlexusRuntimeConstants
-{
- public final static String APPLICATIONS_DIRECTORY = "apps";
-
- public final static String BIN_DIRECTORY = "bin";
-
- public final static String BOOT_DIRECTORY = "core/boot";
-
- public final static String CONF_DIRECTORY = "conf";
-
- public final static String CORE_DIRECTORY = "core";
-
- public final static String LOGS_DIRECTORY = "logs";
-
- public final static String LIB_DIRECTORY = "lib";
-
- public final static String TEMP_DIRECTORY = "temp";
-
- public final static String WORK_DIRECTORY = "work";
-
- public final static String SERVICES_DIRECTORY = "services";
-
- public static final String CONFIGURATION_FILE = "plexus.xml";
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/PlexusServiceConstants.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/PlexusServiceConstants.java
deleted file mode 100644
index 4680c93b2..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/PlexusServiceConstants.java
+++ /dev/null
@@ -1,64 +0,0 @@
-package org.codehaus.plexus.appserver;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-/**
- * @author Trygve Laugstøl
- * @version $Id$
- */
-public class PlexusServiceConstants
-{
- public static final String CONF_DIRECTORY = "conf";
-
- public static final String CONFIGURATION_FILE = "service.xml";
-
- public static final String LIB_DIRECTORY = "lib";
-
- public static final String CLASSES_DIRECTORY = "classes";
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/ApplicationDeployer.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/ApplicationDeployer.java
deleted file mode 100644
index 4b173a582..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/ApplicationDeployer.java
+++ /dev/null
@@ -1,45 +0,0 @@
-package org.codehaus.plexus.appserver.application.deploy;
-
-/*
- * Copyright (c) 2004, Codehaus.org
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.codehaus.plexus.appserver.ApplicationServerException;
-import org.codehaus.plexus.appserver.application.event.ApplicationListener;
-import org.codehaus.plexus.appserver.application.profile.AppRuntimeProfile;
-import org.codehaus.plexus.appserver.deploy.Deployer;
-
-/**
- * @author Peter Donald
- * @author Jason van Zyl
- */
-public interface ApplicationDeployer
- extends Deployer
-{
- String ROLE = ApplicationDeployer.class.getName();
-
- void addApplicationListener( ApplicationListener listener );
-
- void removeApplicationListener( ApplicationListener listener );
-
- AppRuntimeProfile getApplicationRuntimeProfile( String applicationName )
- throws ApplicationServerException;
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/DefaultApplicationDeployer.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/DefaultApplicationDeployer.java
deleted file mode 100644
index d9d124a5e..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/DefaultApplicationDeployer.java
+++ /dev/null
@@ -1,288 +0,0 @@
-package org.codehaus.plexus.appserver.application.deploy;
-
-/*
- * Copyright (c) 2004, Codehausv.org
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.codehaus.classworlds.ClassRealm;
-import org.codehaus.classworlds.NoSuchRealmException;
-import org.codehaus.plexus.DefaultPlexusContainer;
-import org.codehaus.plexus.PlexusConstants;
-import org.codehaus.plexus.appserver.ApplicationServer;
-import org.codehaus.plexus.appserver.ApplicationServerException;
-import org.codehaus.plexus.appserver.application.deploy.lifecycle.AppDeploymentContext;
-import org.codehaus.plexus.appserver.application.deploy.lifecycle.AppDeploymentException;
-import org.codehaus.plexus.appserver.application.deploy.lifecycle.phase.AppDeploymentPhase;
-import org.codehaus.plexus.appserver.application.event.ApplicationListener;
-import org.codehaus.plexus.appserver.application.event.DefaultDeployEvent;
-import org.codehaus.plexus.appserver.application.profile.AppRuntimeProfile;
-import org.codehaus.plexus.appserver.deploy.AbstractDeployer;
-import org.codehaus.plexus.appserver.service.PlexusService;
-import org.codehaus.plexus.component.repository.exception.ComponentLookupException;
-import org.codehaus.plexus.context.Context;
-import org.codehaus.plexus.context.ContextException;
-import org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable;
-import org.codehaus.plexus.personality.plexus.lifecycle.phase.Disposable;
-import org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable;
-import org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException;
-
-import java.io.File;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-/**
- * @author Dan Diephouse
- * @author Jason van Zyl
- * @since Mar 19, 2004
- */
-public class DefaultApplicationDeployer
- extends AbstractDeployer
- implements ApplicationDeployer, Contextualizable, Initializable, Disposable
-{
- private Map deployments;
-
- private DefaultPlexusContainer appServerContainer;
-
- private List applicationListeners;
-
- // ----------------------------------------------------------------------
- // Configuration
- // ----------------------------------------------------------------------
-
- private File applicationsDirectory;
-
- private List phases;
-
- // ----------------------------------------------------------------------
- // Deployment
- // ----------------------------------------------------------------------
-
- public void deploy( String appId, File par )
- throws ApplicationServerException
- {
- deployJar( appId, par, true );
- }
-
- private void deployJar( String appId, File file, boolean expandPar )
- throws ApplicationServerException
- {
- AppDeploymentContext context = new AppDeploymentContext( file, applicationsDirectory, deployments,
- appServerContainer, getAppServer(), expandPar );
-
- for ( Iterator i = phases.iterator(); i.hasNext(); )
- {
- String id = (String) i.next();
-
- try
- {
- AppDeploymentPhase phase =
- (AppDeploymentPhase) appServerContainer.lookup( AppDeploymentPhase.ROLE, id );
-
- phase.execute( context );
- }
- catch ( ComponentLookupException e )
- {
- throw new ApplicationServerException( "The requested app server lifecycle phase cannot be found: " + id,
- e );
- }
- catch ( AppDeploymentException e )
- {
- throw new ApplicationServerException( "Error in the app server lifecycle " + id + " phase.", e );
- }
- }
- }
-
- // ----------------------------------------------------------------------
- // Redeploy
- // ----------------------------------------------------------------------
-
- public void redeploy( String id )
- throws ApplicationServerException
- {
- AppRuntimeProfile profile = getApplicationRuntimeProfile( id );
-
- undeploy( id );
-
- File file = getAppServer().getAppDescriptor( id ).getPar();
-
- deployJar( id, file, false );
-
- DefaultDeployEvent event = createDeployEvent( profile );
-
- for ( Iterator itr = applicationListeners.iterator(); itr.hasNext(); )
- {
- ApplicationListener listener = (ApplicationListener) itr.next();
-
- listener.redeployedApplication( event );
- }
- }
-
- // ----------------------------------------------------------------------
- // Undeploy
- // ----------------------------------------------------------------------
-
- public void undeploy( String name )
- throws ApplicationServerException
- {
- getLogger().info( "Undeploying '" + name + "'." );
-
- AppRuntimeProfile profile = getApplicationRuntimeProfile( name );
-
- deployments.remove( name );
-
- DefaultPlexusContainer app = profile.getApplicationContainer();
-
- try
- {
- stopApplicationServices( profile );
- }
- catch (Exception ex)
- {
- getLogger().info( "Can not stop services attached to application ", ex );
- }
-
- app.dispose();
-
-/* Don't dispose since the appserver container realm = the app container realm at present
- ClassRealm realm = app.getContainerRealm();
-
- try
- {
- realm.getWorld().disposeRealm( realm.getId() );
- }
- catch ( NoSuchRealmException e )
- {
- getLogger().warn( "Error while disposing appserver realm '" + realm.getId() + "'" );
- }
-*/
-
- DefaultDeployEvent event = createDeployEvent( profile );
-
- for ( Iterator itr = applicationListeners.iterator(); itr.hasNext(); )
- {
- ApplicationListener listener = (ApplicationListener) itr.next();
-
- listener.undeployedApplication( event );
- }
- }
-
- private void stopApplicationServices( AppRuntimeProfile runtimeProfile )
- throws Exception
- {
- if (runtimeProfile.getServices() != null)
- {
- PlexusService service;
-
- for (Iterator serviceIterator = runtimeProfile.getServices().iterator(); serviceIterator.hasNext();)
- {
- service = (PlexusService) serviceIterator.next();
- service.applicationStop( runtimeProfile );
- }
- }
- }
-
- // ----------------------------------------------------------------------
- // Events
- // ----------------------------------------------------------------------
-
- private DefaultDeployEvent createDeployEvent( AppRuntimeProfile runtimeProfile )
- {
- return new DefaultDeployEvent( runtimeProfile );
- }
-
- public AppRuntimeProfile getApplicationRuntimeProfile( String applicationName )
- throws ApplicationServerException
- {
- AppRuntimeProfile profile = (AppRuntimeProfile) deployments.get( applicationName );
-
- if ( profile == null )
- {
- throw new ApplicationServerException( "No such appserver: '" + applicationName + "'." );
- }
-
- return profile;
- }
-
- public void addApplicationListener( ApplicationListener listener )
- {
- applicationListeners.add( listener );
- }
-
- public void removeApplicationListener( ApplicationListener listener )
- {
- applicationListeners.remove( listener );
- }
-
- // ----------------------------------------------------------------------
- // Lifecycle
- // ----------------------------------------------------------------------
-
- public void contextualize( Context context )
- throws ContextException
- {
- appServerContainer = (DefaultPlexusContainer) context.get( PlexusConstants.PLEXUS_KEY );
- }
-
- public void initialize()
- throws InitializationException
- {
- deployments = new HashMap();
-
- applicationListeners = new ArrayList();
-
- getLogger().info( "Applications will be deployed in: '" + applicationsDirectory + "'." );
- }
-
- public void dispose()
- {
- List names = new ArrayList( deployments.keySet() );
-
- for ( Iterator it = names.iterator(); it.hasNext(); )
- {
- String name = (String) it.next();
-
- try
- {
- undeploy( name );
- }
- catch ( Exception e )
- {
- getLogger().warn( "Error while undeploying appserver '" + name + "'.", e );
- }
- }
- }
-
- private ApplicationServer getAppServer()
- throws ApplicationServerException
- {
- try
- {
- return (ApplicationServer) appServerContainer.getContext().get( "plexus.appserver" );
- }
- catch ( ContextException e )
- {
- throw new ApplicationServerException( "Cannot retrieve app server from context.", e );
- }
- }
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/AppDeploymentContext.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/AppDeploymentContext.java
deleted file mode 100644
index 21e16e439..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/AppDeploymentContext.java
+++ /dev/null
@@ -1,174 +0,0 @@
-package org.codehaus.plexus.appserver.application.deploy.lifecycle;
-
-import org.codehaus.plexus.DefaultPlexusContainer;
-import org.codehaus.plexus.appserver.ApplicationServer;
-import org.codehaus.plexus.appserver.application.profile.AppRuntimeProfile;
-import org.codehaus.plexus.configuration.PlexusConfiguration;
-
-import java.io.File;
-import java.util.Map;
-import java.util.Properties;
-
-/**
- * @author Jason van Zyl
- */
-public class AppDeploymentContext
-{
- private File par;
-
- private File applicationsDirectory;
-
- private Map deployments;
-
- private DefaultPlexusContainer appServerContainer;
-
- private Properties context;
-
- //
-
- private String applicationId;
-
- private PlexusConfiguration appConfiguration;
-
- private AppRuntimeProfile appRuntimeProfile;
-
- private DefaultPlexusContainer applicationContainer;
-
- private File appConfigurationFile;
-
- private File appDir;
-
- // app.home/lib used for populating the class realm.
- private File appLibDirectory;
-
- private ApplicationServer appServer;
-
- private boolean expandPar;
-
- public AppDeploymentContext( File par, File applicationsDirectory, Map deployments,
- DefaultPlexusContainer appServerContainer, ApplicationServer appServer,
- boolean expandPar )
- {
- this.par = par;
- this.applicationsDirectory = applicationsDirectory;
- this.deployments = deployments;
- this.appServerContainer = appServerContainer;
- this.appServer = appServer;
- this.expandPar = expandPar;
- }
-
- // Read-only
-
- public File getPar()
- {
- return par;
- }
-
- public File getApplicationsDirectory()
- {
- return applicationsDirectory;
- }
-
- public Map getDeployments()
- {
- return deployments;
- }
-
- public DefaultPlexusContainer getAppServerContainer()
- {
- return appServerContainer;
- }
-
- // Properties
-
- public Properties getContext()
- {
- return context;
- }
-
- public void setContext( Properties context )
- {
- this.context = context;
- }
-
- public String getApplicationId()
- {
- return applicationId;
- }
-
- public void setApplicationId( String applicationId )
- {
- this.applicationId = applicationId;
- }
-
- public PlexusConfiguration getAppConfiguration()
- {
- return appConfiguration;
- }
-
- public void setAppConfiguration( PlexusConfiguration appConfiguration )
- {
- this.appConfiguration = appConfiguration;
- }
-
- public AppRuntimeProfile getAppRuntimeProfile()
- {
- return appRuntimeProfile;
- }
-
- public void setAppRuntimeProfile( AppRuntimeProfile appRuntimeProfile )
- {
- this.appRuntimeProfile = appRuntimeProfile;
- }
-
- public DefaultPlexusContainer getApplicationContainer()
- {
- return applicationContainer;
- }
-
- public void setApplicationContainer( DefaultPlexusContainer applicationContainer )
- {
- this.applicationContainer = applicationContainer;
- }
-
- public File getAppConfigurationFile()
- {
- return appConfigurationFile;
- }
-
- public void setAppConfigurationFile( File appConfigurationFile )
- {
- this.appConfigurationFile = appConfigurationFile;
- }
-
- public File getAppLibDirectory()
- {
- return appLibDirectory;
- }
-
- public void setAppLibDirectory( File appLibDirectory )
- {
- this.appLibDirectory = appLibDirectory;
- }
-
- public File getAppDir()
- {
- return appDir;
- }
-
- public void setAppDir( File appDir )
- {
- this.appDir = appDir;
- }
-
- public ApplicationServer getAppServer()
- {
- return appServer;
- }
-
- public boolean isExpandPar()
- {
- return expandPar;
- }
-}
-
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/AppDeploymentException.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/AppDeploymentException.java
deleted file mode 100644
index cbf86720a..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/AppDeploymentException.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package org.codehaus.plexus.appserver.application.deploy.lifecycle;
-
-/**
- * @author Jason van Zyl
- */
-public class AppDeploymentException
- extends Exception
-{
- public AppDeploymentException( String string )
- {
- super( string );
- }
-
- public AppDeploymentException( String string, Throwable throwable )
- {
- super( string, throwable );
- }
-
- public AppDeploymentException( Throwable throwable )
- {
- super( throwable );
- }
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/phase/AbstractAppDeploymentPhase.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/phase/AbstractAppDeploymentPhase.java
deleted file mode 100644
index 86dbf9914..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/phase/AbstractAppDeploymentPhase.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package org.codehaus.plexus.appserver.application.deploy.lifecycle.phase;
-
-import org.codehaus.plexus.appserver.AppServerObject;
-
-/**
- * @author Jason van Zyl
- */
-public abstract class AbstractAppDeploymentPhase
- extends AppServerObject
- implements AppDeploymentPhase
-{
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/phase/AfterAppStartServiceSetupPhase.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/phase/AfterAppStartServiceSetupPhase.java
deleted file mode 100644
index e99d9a60b..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/phase/AfterAppStartServiceSetupPhase.java
+++ /dev/null
@@ -1,36 +0,0 @@
-package org.codehaus.plexus.appserver.application.deploy.lifecycle.phase;
-
-import org.codehaus.plexus.appserver.application.deploy.lifecycle.AppDeploymentContext;
-import org.codehaus.plexus.appserver.application.deploy.lifecycle.AppDeploymentException;
-import org.codehaus.plexus.appserver.application.profile.AppRuntimeProfile;
-import org.codehaus.plexus.appserver.service.PlexusService;
-import org.codehaus.plexus.configuration.PlexusConfiguration;
-
-/**
- * @author Jason van Zyl
- */
-public class AfterAppStartServiceSetupPhase
- extends AbstractAppDeploymentPhase
-{
- public void execute( AppDeploymentContext context )
- throws AppDeploymentException
- {
- AppRuntimeProfile profile = context.getAppRuntimeProfile();
-
- for ( int i = 0; i < profile.getServices().size(); i++ )
- {
- PlexusService service = (PlexusService) profile.getServices().get( i );
-
- PlexusConfiguration configuration = (PlexusConfiguration) profile.getServiceConfigurations().get( i );
-
- try
- {
- service.afterApplicationStart( profile, configuration );
- }
- catch ( Exception e )
- {
- throw new AppDeploymentException( "Error calling service in pre-app init phase.", e );
- }
- }
- }
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/phase/AppDeploymentPhase.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/phase/AppDeploymentPhase.java
deleted file mode 100644
index 1ffae49a1..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/phase/AppDeploymentPhase.java
+++ /dev/null
@@ -1,15 +0,0 @@
-package org.codehaus.plexus.appserver.application.deploy.lifecycle.phase;
-
-import org.codehaus.plexus.appserver.application.deploy.lifecycle.AppDeploymentContext;
-import org.codehaus.plexus.appserver.application.deploy.lifecycle.AppDeploymentException;
-
-/**
- * @author Jason van Zyl
- */
-public interface AppDeploymentPhase
-{
- String ROLE = AppDeploymentPhase.class.getName();
-
- void execute( AppDeploymentContext context )
- throws AppDeploymentException;
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/phase/AppInitializationPhase.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/phase/AppInitializationPhase.java
deleted file mode 100644
index 5ccb50858..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/phase/AppInitializationPhase.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package org.codehaus.plexus.appserver.application.deploy.lifecycle.phase;
-
-import org.codehaus.plexus.appserver.application.deploy.lifecycle.AppDeploymentContext;
-import org.codehaus.plexus.appserver.application.deploy.lifecycle.AppDeploymentException;
-
-/**
- * @author Jason van Zyl
- */
-public class AppInitializationPhase
- extends AbstractAppDeploymentPhase
-{
- public void execute( AppDeploymentContext context )
- throws AppDeploymentException
- {
- try
- {
- context.getApplicationContainer().initialize();
-
- context.getApplicationContainer().start();
- }
- catch ( Exception e )
- {
- throw new AppDeploymentException( "Error starting Plexus.", e );
- }
- }
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/phase/BeforeAppStartServiceSetupPhase.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/phase/BeforeAppStartServiceSetupPhase.java
deleted file mode 100644
index 154c0bda3..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/phase/BeforeAppStartServiceSetupPhase.java
+++ /dev/null
@@ -1,59 +0,0 @@
-package org.codehaus.plexus.appserver.application.deploy.lifecycle.phase;
-
-import org.codehaus.plexus.appserver.application.deploy.lifecycle.AppDeploymentContext;
-import org.codehaus.plexus.appserver.application.deploy.lifecycle.AppDeploymentException;
-import org.codehaus.plexus.appserver.service.PlexusService;
-import org.codehaus.plexus.component.repository.exception.ComponentLookupException;
-import org.codehaus.plexus.configuration.PlexusConfiguration;
-import org.codehaus.plexus.util.StringUtils;
-
-/**
- * @author Jason van Zyl
- */
-public class BeforeAppStartServiceSetupPhase
- extends AbstractAppDeploymentPhase
-{
- public void execute( AppDeploymentContext context )
- throws AppDeploymentException
- {
- PlexusConfiguration[] services = context.getAppConfiguration().getChild( "services" ).getChildren( "service" );
-
- for ( int i = 0; i < services.length; i++ )
- {
- PlexusConfiguration serviceConfiguration = services[i];
-
- String id = serviceConfiguration.getChild( "id" ).getValue( "" );
-
- if ( StringUtils.isEmpty( id ) )
- {
- throw new AppDeploymentException( "Missing child element 'id' in 'service'." );
- }
-
- PlexusService service;
-
- try
- {
- service = (PlexusService) context.getAppServerContainer().lookup( PlexusService.ROLE, id );
- }
- catch ( ComponentLookupException e )
- {
- throw new AppDeploymentException( "Error looking up service for pre app init call.", e );
- }
-
- PlexusConfiguration conf = serviceConfiguration.getChild( "configuration" );
-
- context.getAppRuntimeProfile().addService( id, service, conf );
-
- try
- {
- service.beforeApplicationStart( context.getAppRuntimeProfile(), conf );
- }
- catch ( Exception e )
- {
- throw new AppDeploymentException( "Error executing service.", e );
- }
- }
-
- context.getDeployments().put( context.getApplicationId(), context.getAppRuntimeProfile() );
- }
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/phase/CreateAppContainerPhase.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/phase/CreateAppContainerPhase.java
deleted file mode 100644
index 61b6bc88b..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/phase/CreateAppContainerPhase.java
+++ /dev/null
@@ -1,276 +0,0 @@
-package org.codehaus.plexus.appserver.application.deploy.lifecycle.phase;
-
-import org.codehaus.classworlds.ClassRealm;
-import org.codehaus.classworlds.ClassWorld;
-import org.codehaus.classworlds.DuplicateRealmException;
-import org.codehaus.plexus.DefaultPlexusContainer;
-import org.codehaus.plexus.PlexusContainerException;
-import org.codehaus.plexus.appserver.application.deploy.lifecycle.AppDeploymentContext;
-import org.codehaus.plexus.appserver.application.deploy.lifecycle.AppDeploymentException;
-import org.codehaus.plexus.configuration.PlexusConfiguration;
-import org.codehaus.plexus.configuration.xml.XmlPlexusConfiguration;
-import org.codehaus.plexus.context.ContextException;
-import org.codehaus.plexus.context.ContextMapAdapter;
-import org.codehaus.plexus.util.InterpolationFilterReader;
-import org.codehaus.plexus.util.xml.Xpp3Dom;
-import org.codehaus.plexus.util.xml.Xpp3DomBuilder;
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileReader;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.io.Reader;
-import java.net.URL;
-import java.net.URLClassLoader;
-import java.util.Enumeration;
-import java.util.Iterator;
-import java.util.Map;
-import java.util.Properties;
-
-/**
- * @author Jason van Zyl
- */
-public class CreateAppContainerPhase
- extends AbstractAppDeploymentPhase
-{
- public void execute( AppDeploymentContext context )
- throws AppDeploymentException
- {
- DefaultPlexusContainer appServerContainer = context.getAppServerContainer();
-
- String name = "plexus.application." + context.getApplicationId();
-
- getLogger().info( "Using appDir = " + context.getAppDir() );
-
- DefaultPlexusContainer applicationContainer = null;
-
- try
- {
- applicationContainer =
- new DefaultPlexusContainer( name, appServerContainer.getClassWorld(), appServerContainer );
- }
- catch ( PlexusContainerException e )
- {
- throw new AppDeploymentException( "Error starting container.", e );
- }
-
- try
- {
- InputStream stream = new FileInputStream( context.getAppConfigurationFile() );
-
- Reader r = new InputStreamReader( stream );
-
- applicationContainer.setConfigurationResource( r );
- }
- catch ( Exception e )
- {
- throw new AppDeploymentException( "Error processing application configurator.", e );
- }
-
- Properties contextValues = context.getContext();
-
- if ( contextValues != null )
- {
- for ( Iterator i = contextValues.keySet().iterator(); i.hasNext(); )
- {
- String contextName = (String) i.next();
-
- applicationContainer.addContextValue( contextName, contextValues.getProperty( contextName ) );
- }
- }
-
- // ----------------------------------------------------------------------
- // We want to set ${app.home} and we want to create a new realm for the
- // appserver. Need to think about how to really separate the apps
- // from the parent container.
- // ----------------------------------------------------------------------
-
- try
- {
- String plexusHome = (String) context.getAppServerContainer().getContext().get( "plexus.home" );
-
- applicationContainer.addContextValue( "appserver.home", new File( plexusHome ).getCanonicalPath() );
- }
- catch ( Exception e )
- {
- // Won't happen
- }
-
- // ----------------------------------------------------------------------------
- // Make the application's home directory available in the context
- // ----------------------------------------------------------------------------
- applicationContainer.addContextValue( "plexus.home", context.getAppDir().getAbsolutePath() );
-
- applicationContainer.addContextValue( "app.home", context.getAppDir().getAbsolutePath() );
-
- // ----------------------------------------------------------------------------
- // Make the user's home directory available in the context
- // ----------------------------------------------------------------------------
- applicationContainer.addContextValue( "user.home", System.getProperty( "user.home" ) );
-
- Object appserver = null;
-
- try
- {
- appserver = appServerContainer.getContext().get( "plexus.appserver" );
- }
- catch ( ContextException e )
- {
- // won't happen.
- }
-
- applicationContainer.addContextValue( "plexus.appserver", appserver );
-
- // ----------------------------------------------------------------------
- //
- // ----------------------------------------------------------------------
-
- Map ctx = new ContextMapAdapter( applicationContainer.getContext() );
-
- Xpp3Dom dom;
-
- try
- {
- Reader configurationReader =
- new InterpolationFilterReader( new FileReader( context.getAppConfigurationFile() ), ctx );
-
- dom = Xpp3DomBuilder.build( configurationReader );
- }
- catch ( Exception e )
- {
- throw new AppDeploymentException( "Error processing application configurator.", e );
- }
-
- PlexusConfiguration applicationConfiguration = new XmlPlexusConfiguration( dom );
-
- context.setAppConfiguration( applicationConfiguration );
-
- context.setApplicationContainer( applicationContainer );
- }
-
- // ----------------------------------------------------------------------------
- // These were specifically made so that a WAR file deploy with Jetty in a
- // standard way would work properly. The relationship that ClassWorlds sets
- // up among classloaders doesn't appear to work in standard situations
- // which is bad.
- // ----------------------------------------------------------------------------
-
- class SimpleClassLoader
- extends URLClassLoader
- {
- public SimpleClassLoader( ClassLoader classLoader )
- {
- super( new URL[0], classLoader );
- }
-
- public void addURL( URL url )
- {
- super.addURL( url );
- }
- }
-
- class SimpleClassRealm
- implements ClassRealm
- {
- private String id;
-
- private ClassWorld world;
-
- SimpleClassLoader classLoader;
-
- public SimpleClassRealm( String id, SimpleClassLoader classLoader, ClassWorld world )
- {
- this.id = id;
- this.classLoader = classLoader;
- this.world = world;
- }
-
- public String getId()
- {
- return id;
- }
-
- public void addConstituent( URL url )
- {
- classLoader.addURL( url );
- }
-
- public ClassRealm locateSourceRealm( String a )
- {
- throw new UnsupportedOperationException();
- }
-
- public ClassLoader getClassLoader()
- {
- return classLoader;
- }
-
- public URL[] getConstituents()
- {
- return classLoader.getURLs();
- }
-
- public Class loadClass( String name )
- throws ClassNotFoundException
- {
- return classLoader.loadClass( name );
- }
-
- public URL getResource( String name )
- {
- return classLoader.getResource( name );
- }
-
- public Enumeration findResources( String name )
- throws IOException
- {
- return classLoader.findResources( name );
- }
-
- // ----------------------------------------------------------------------------
- // Things we don't care about, we'll use normal classloader semantics.
- // ----------------------------------------------------------------------------
-
- public ClassWorld getWorld()
- {
- return world;
- }
-
- public void importFrom( String a, String b )
- {
- throw new UnsupportedOperationException();
- }
-
- public void setParent( ClassRealm c )
- {
- }
-
- public InputStream getResourceAsStream( String name )
- {
- return classLoader.getResourceAsStream( name );
- }
-
- public ClassRealm getParent()
- {
- throw new UnsupportedOperationException();
- }
-
- public ClassRealm createChildRealm( String id )
- throws DuplicateRealmException
- {
- throw new UnsupportedOperationException();
- }
-
- public void display()
- {
- URL[] urls = classLoader.getURLs();
-
- for ( int i = 0; i < urls.length; i++ )
- {
- System.out.println( "url = " + urls[i] );
- }
- }
- }
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/phase/CreateAppRuntimeProfilePhase.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/phase/CreateAppRuntimeProfilePhase.java
deleted file mode 100644
index 0d76167c0..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/phase/CreateAppRuntimeProfilePhase.java
+++ /dev/null
@@ -1,24 +0,0 @@
-package org.codehaus.plexus.appserver.application.deploy.lifecycle.phase;
-
-import org.codehaus.plexus.appserver.application.deploy.lifecycle.AppDeploymentContext;
-import org.codehaus.plexus.appserver.application.deploy.lifecycle.AppDeploymentException;
-import org.codehaus.plexus.appserver.application.profile.AppRuntimeProfile;
-
-/**
- * @author Jason van Zyl
- */
-public class CreateAppRuntimeProfilePhase
- extends AbstractAppDeploymentPhase
-{
- public void execute( AppDeploymentContext context )
- throws AppDeploymentException
- {
- AppRuntimeProfile profile = new AppRuntimeProfile( context.getApplicationId(),
- context.getApplicationsDirectory(), context.getPar(),
- context.getApplicationContainer(),
- context.getAppServerContainer(),
- context.getAppConfiguration() );
-
- context.setAppRuntimeProfile( profile );
- }
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/phase/CreateApplicationDescriptorPhase.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/phase/CreateApplicationDescriptorPhase.java
deleted file mode 100644
index 90e69f620..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/phase/CreateApplicationDescriptorPhase.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package org.codehaus.plexus.appserver.application.deploy.lifecycle.phase;
-
-import org.codehaus.plexus.appserver.AppDescriptor;
-import org.codehaus.plexus.appserver.AppServerObject;
-import org.codehaus.plexus.appserver.ApplicationServer;
-import org.codehaus.plexus.appserver.application.deploy.lifecycle.AppDeploymentContext;
-import org.codehaus.plexus.appserver.application.deploy.lifecycle.AppDeploymentException;
-
-/**
- * @author Jason van Zyl
- */
-public class CreateApplicationDescriptorPhase
- extends AppServerObject
- implements AppDeploymentPhase
-{
- public void execute( AppDeploymentContext context )
- throws AppDeploymentException
- {
- ApplicationServer appServer = context.getAppServer();
-
- AppDescriptor appDescriptor = new AppDescriptor( context.getApplicationId(), context.getApplicationId(),
- context.getPar(), context.getAppDir() );
-
- appServer.addAppDescriptor( appDescriptor );
- }
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/phase/ExpandAppPhase.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/phase/ExpandAppPhase.java
deleted file mode 100644
index 157b09a7f..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/phase/ExpandAppPhase.java
+++ /dev/null
@@ -1,54 +0,0 @@
-package org.codehaus.plexus.appserver.application.deploy.lifecycle.phase;
-
-import org.codehaus.plexus.appserver.application.deploy.lifecycle.AppDeploymentContext;
-import org.codehaus.plexus.appserver.application.deploy.lifecycle.AppDeploymentException;
-import org.codehaus.plexus.appserver.deploy.DeploymentException;
-import org.codehaus.plexus.util.FileUtils;
-
-import java.io.File;
-
-/**
- * @author Jason van Zyl
- */
-public class ExpandAppPhase
- extends AbstractAppDeploymentPhase
-{
- public void execute( AppDeploymentContext context )
- throws AppDeploymentException
- {
- String appId = context.getApplicationId();
-
- File directory = context.getApplicationsDirectory();
-
- File file = context.getPar();
-
- File location = FileUtils.resolveFile( directory, appId );
-
- // Don't extract if it has been extracted before.
- if ( location.exists() )
- {
- getLogger().info( "Application '" + appId + "' already extracted." );
- }
- else
- {
- getLogger().info( "Extracting " + file + " to '" + location.getAbsolutePath() + "'." );
-
- try
- {
- expand( file, location, false );
- }
- catch ( DeploymentException e )
- {
- throw new AppDeploymentException( "Could not deploy the JAR", e );
- }
- }
-
- getLogger().info( "Deploying application '" + appId + "' at '" + location.getAbsolutePath() + "'." );
-
- if ( context.getDeployments().containsKey( appId ) )
- {
- throw new AppDeploymentException(
- "A appserver with the specified appId ('" + appId + "') already exists." );
- }
- }
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/phase/ProcessAppMetadataPhase.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/phase/ProcessAppMetadataPhase.java
deleted file mode 100644
index d764c833f..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/phase/ProcessAppMetadataPhase.java
+++ /dev/null
@@ -1,79 +0,0 @@
-package org.codehaus.plexus.appserver.application.deploy.lifecycle.phase;
-
-import org.codehaus.plexus.appserver.PlexusApplicationConstants;
-import org.codehaus.plexus.appserver.application.deploy.lifecycle.AppDeploymentContext;
-import org.codehaus.plexus.appserver.application.deploy.lifecycle.AppDeploymentException;
-import org.codehaus.plexus.util.StringUtils;
-import org.codehaus.plexus.util.xml.Xpp3Dom;
-import org.codehaus.plexus.util.xml.Xpp3DomBuilder;
-import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
-
-import java.io.File;
-import java.io.IOException;
-import java.io.InputStreamReader;
-import java.io.Reader;
-import java.util.jar.JarFile;
-import java.util.zip.ZipEntry;
-
-/**
- * @author Jason van Zyl
- */
-public class ProcessAppMetadataPhase
- extends AbstractAppDeploymentPhase
-{
- public void execute( AppDeploymentContext context )
- throws AppDeploymentException
- {
- Reader reader;
-
- JarFile jarFile = null;
-
- try
- {
- jarFile = new JarFile( context.getPar() );
-
- ZipEntry entry = jarFile.getEntry( PlexusApplicationConstants.METADATA_FILE );
-
- if ( entry == null )
- {
- throw new AppDeploymentException( "The Plexus appserver jar is missing it's metadata file '" +
- PlexusApplicationConstants.METADATA_FILE + "'." );
- }
-
- reader = new InputStreamReader( jarFile.getInputStream( entry ) );
- }
- catch ( IOException e )
- {
- throw new AppDeploymentException( "Error reading application JAR file: " + jarFile, e );
- }
-
- Xpp3Dom dom;
-
- try
- {
- dom = Xpp3DomBuilder.build( reader );
- }
- catch ( XmlPullParserException e )
- {
- throw new AppDeploymentException( "Error parsing application configurator file.", e );
- }
- catch ( IOException e )
- {
- throw new AppDeploymentException( "Error reading application configurator file.", e );
- }
-
- String appId = dom.getChild( "name" ).getValue();
-
- if ( StringUtils.isEmpty( appId ) )
- {
- throw new AppDeploymentException( "Missing 'name' element in the application metadata file." );
- }
-
- File appDir = new File( context.getApplicationsDirectory(), appId );
-
- context.setAppDir( appDir );
-
- // Put the found application id into the context.
- context.setApplicationId( appId );
- }
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/phase/ValidateAppPhase.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/phase/ValidateAppPhase.java
deleted file mode 100644
index 0f019b63f..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/deploy/lifecycle/phase/ValidateAppPhase.java
+++ /dev/null
@@ -1,54 +0,0 @@
-package org.codehaus.plexus.appserver.application.deploy.lifecycle.phase;
-
-import org.codehaus.plexus.appserver.PlexusApplicationConstants;
-import org.codehaus.plexus.appserver.application.deploy.lifecycle.AppDeploymentContext;
-import org.codehaus.plexus.appserver.application.deploy.lifecycle.AppDeploymentException;
-
-import java.io.File;
-
-/**
- * @author Jason van Zyl
- */
-public class ValidateAppPhase
- extends AbstractAppDeploymentPhase
-{
- public void execute( AppDeploymentContext context )
- throws AppDeploymentException
- {
- // ----------------------------------------------------------------------
- // We need to make sure that we have the basic requirements covered
- // when deploying an appserver. The PAR may be incomplete or corrupt
- // or a directory copied over just may not be intact.
- //
- // -> ${app}/conf/plexus.conf
- // -> ${app}/lib
- // ----------------------------------------------------------------------
-
- File appDir = context.getAppDir();
-
- String appId = context.getApplicationId();
-
- File applicationConfigurationFile = new File( new File( appDir, PlexusApplicationConstants.CONF_DIRECTORY ),
- PlexusApplicationConstants.CONFIGURATION_FILE );
-
- if ( !applicationConfigurationFile.exists() )
- {
- throw new AppDeploymentException( "The application '" + appId + "' does not have a valid " +
- "configurator: " + applicationConfigurationFile + " does not exist!" );
- }
-
- context.setAppConfigurationFile( applicationConfigurationFile );
-
- getLogger().info( "Using application configurator file " + applicationConfigurationFile + "." );
-
- File applicationLibrary = new File( appDir, PlexusApplicationConstants.LIB_DIRECTORY );
-
- if ( !applicationLibrary.exists() )
- {
- throw new AppDeploymentException( "The appication '" + appId + "' does not have a valid library: " +
- applicationLibrary + " does not exist!" );
- }
-
- context.setAppLibDirectory( applicationLibrary );
- }
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/event/ApplicationListener.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/event/ApplicationListener.java
deleted file mode 100644
index 856e09941..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/event/ApplicationListener.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package org.codehaus.plexus.appserver.application.event;
-
-/*
- * Copyright (c) 2004, Codehaus.org
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-/**
- * Listens for appserver events.
- *
- * @author Dan Diephouse
- * @since Jul 17, 2004
- */
-public interface ApplicationListener
-{
- void deployedApplication( DeployEvent event );
-
- void undeployedApplication( DeployEvent event );
-
- void redeployedApplication( DeployEvent event );
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/event/DefaultDeployEvent.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/event/DefaultDeployEvent.java
deleted file mode 100644
index e4025b8bb..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/event/DefaultDeployEvent.java
+++ /dev/null
@@ -1,51 +0,0 @@
-package org.codehaus.plexus.appserver.application.event;
-
-/*
- * Copyright (c) 2004, Codehaus.org
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.codehaus.plexus.appserver.application.profile.AppRuntimeProfile;
-
-/**
- * Signals an (un/re)deployment event;
- *
- * @author Dan Diephouse
- * @since Jul 17, 2004
- */
-public class DefaultDeployEvent
- implements DeployEvent
-{
- private AppRuntimeProfile runtimeProfile;
-
- // ----------------------------------------------------------------------
- //
- // ----------------------------------------------------------------------
-
- public DefaultDeployEvent( AppRuntimeProfile runtimeProfile )
- {
- this.runtimeProfile = runtimeProfile;
- }
-
- public AppRuntimeProfile getRuntimeProfile()
- {
- return runtimeProfile;
- }
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/event/DeployEvent.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/event/DeployEvent.java
deleted file mode 100644
index 087d7e5ae..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/event/DeployEvent.java
+++ /dev/null
@@ -1,36 +0,0 @@
-package org.codehaus.plexus.appserver.application.event;
-
-/*
- * Copyright (c) 2004, Codehaus.org
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.codehaus.plexus.appserver.application.profile.AppRuntimeProfile;
-
-/**
- * Signals an (un/re)deployment event;
- *
- * @author Dan Diephouse
- * @since Jul 17, 2004
- */
-public interface DeployEvent
-{
- AppRuntimeProfile getRuntimeProfile();
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/profile/AppRuntimeProfile.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/profile/AppRuntimeProfile.java
deleted file mode 100644
index 4836723cb..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/application/profile/AppRuntimeProfile.java
+++ /dev/null
@@ -1,169 +0,0 @@
-package org.codehaus.plexus.appserver.application.profile;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.codehaus.plexus.DefaultPlexusContainer;
-import org.codehaus.plexus.PlexusContainer;
-import org.codehaus.plexus.appserver.service.PlexusService;
-import org.codehaus.plexus.configuration.PlexusConfiguration;
-
-import java.io.File;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-/**
- * @author Trygve Laugstøl
- * @version $Id$
- */
-public class AppRuntimeProfile
-{
- private String name;
-
- private File home;
-
- private File lib;
-
- private DefaultPlexusContainer applicationContainer;
-
- private PlexusContainer applicationServerContainer;
-
- private PlexusConfiguration applicationConfiguration;
-
- /**
- * @deprecated
- */
- private List services;
-
- /**
- * @deprecated
- */
- private List serviceConfigurations;
-
- private Map serviceMap;
-
- private Map plexusConfigurationMap;
-
- private Map serviceConfigurationMap;
-
- // ----------------------------------------------------------------------
- //
- // ----------------------------------------------------------------------
-
- public AppRuntimeProfile( String name, File home, File lib, DefaultPlexusContainer applicationContainer,
- PlexusContainer applicationServerContainer, PlexusConfiguration applicationConfiguration )
- {
- this.name = name;
-
- this.home = home;
-
- this.lib = lib;
-
- this.applicationContainer = applicationContainer;
-
- this.applicationServerContainer = applicationServerContainer;
-
- this.applicationConfiguration = applicationConfiguration;
-
- this.services = new ArrayList();
-
- this.serviceConfigurations = new ArrayList();
-
- serviceMap = new HashMap();
-
- plexusConfigurationMap = new HashMap();
-
- serviceConfigurationMap = new HashMap();
- }
-
- public String getName()
- {
- return name;
- }
-
- public File getHome()
- {
- return home;
- }
-
- public File getLib()
- {
- return lib;
- }
-
- public DefaultPlexusContainer getApplicationContainer()
- {
- return applicationContainer;
- }
-
- public PlexusContainer getApplicationServerContainer()
- {
- return applicationServerContainer;
- }
-
- public PlexusConfiguration getApplicationConfiguration()
- {
- return applicationConfiguration;
- }
-
- public List getServices()
- {
- return Collections.unmodifiableList( new ArrayList( plexusConfigurationMap.keySet() ) );
- }
-
- public List getServiceConfigurations()
- {
- return Collections.unmodifiableList( new ArrayList ( plexusConfigurationMap.values() ) );
- }
-
- public PlexusService getService( String id )
- {
- return (PlexusService) serviceMap.get( id );
- }
-
- public PlexusConfiguration getPlexusConfiguration( PlexusService service )
- {
- return (PlexusConfiguration) plexusConfigurationMap.get( service );
- }
-
- public void addService( String id, PlexusService service, PlexusConfiguration configuration )
- {
- plexusConfigurationMap.put( service, configuration );
-
- serviceMap.put( id, service );
- }
-
- public Object getServiceConfiguration( PlexusService service )
- {
- return serviceConfigurationMap.get( service );
- }
-
- public void addServiceConfiguration( PlexusService service, Object configuration )
- {
- serviceConfigurationMap.put( service, configuration );
- }
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/deploy/AbstractDeployer.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/deploy/AbstractDeployer.java
deleted file mode 100644
index fffd7feda..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/deploy/AbstractDeployer.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package org.codehaus.plexus.appserver.deploy;
-
-import org.codehaus.plexus.appserver.AppServerObject;
-
-/**
- * @author Jason van Zyl
- */
-public abstract class AbstractDeployer
- extends AppServerObject
- implements Deployer
-{
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/deploy/Deployer.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/deploy/Deployer.java
deleted file mode 100644
index 53e7d23d1..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/deploy/Deployer.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package org.codehaus.plexus.appserver.deploy;
-
-import org.codehaus.plexus.appserver.ApplicationServerException;
-
-import java.io.File;
-
-/**
- * @author Jason van Zyl
- */
-public interface Deployer
-{
- String ROLE = Deployer.class.getName();
-
- void deploy( String id, File location )
- throws ApplicationServerException;
-
- void redeploy( String id )
- throws ApplicationServerException;
-
- void undeploy( String id )
- throws ApplicationServerException;
-
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/deploy/DeploymentException.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/deploy/DeploymentException.java
deleted file mode 100644
index 16ea9795d..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/deploy/DeploymentException.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package org.codehaus.plexus.appserver.deploy;
-
-/**
- * @author Jason van Zyl
- */
-public class DeploymentException
- extends Exception
-{
- public DeploymentException( String string )
- {
- super( string );
- }
-
- public DeploymentException( String string, Throwable throwable )
- {
- super( string, throwable );
- }
-
- public DeploymentException( Throwable throwable )
- {
- super( throwable );
- }
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/lifecycle/AppServerContext.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/lifecycle/AppServerContext.java
deleted file mode 100644
index 032b4c821..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/lifecycle/AppServerContext.java
+++ /dev/null
@@ -1,31 +0,0 @@
-package org.codehaus.plexus.appserver.lifecycle;
-
-import org.codehaus.plexus.appserver.ApplicationServer;
-
-import java.io.File;
-
-/**
- * @author Jason van Zyl
- */
-public class AppServerContext
-{
- private ApplicationServer appServer;
-
- private File appServerHome;
-
- public AppServerContext( ApplicationServer appServer, File appServerHome )
- {
- this.appServer = appServer;
- this.appServerHome = appServerHome;
- }
-
- public ApplicationServer getAppServer()
- {
- return appServer;
- }
-
- public File getAppServerHome()
- {
- return appServerHome;
- }
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/lifecycle/AppServerLifecycleException.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/lifecycle/AppServerLifecycleException.java
deleted file mode 100644
index 1ffe1a738..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/lifecycle/AppServerLifecycleException.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package org.codehaus.plexus.appserver.lifecycle;
-
-/**
- * @author Jason van Zyl
- */
-public class AppServerLifecycleException
- extends Exception
-{
- public AppServerLifecycleException( String string )
- {
- super( string );
- }
-
- public AppServerLifecycleException( String string, Throwable throwable )
- {
- super( string, throwable );
- }
-
- public AppServerLifecycleException( Throwable throwable )
- {
- super( throwable );
- }
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/lifecycle/phase/AbstractAppServerPhase.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/lifecycle/phase/AbstractAppServerPhase.java
deleted file mode 100644
index 9c5b87865..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/lifecycle/phase/AbstractAppServerPhase.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package org.codehaus.plexus.appserver.lifecycle.phase;
-
-import org.codehaus.plexus.logging.AbstractLogEnabled;
-
-/**
- * @author Jason van Zyl
- */
-public abstract class AbstractAppServerPhase
- extends AbstractLogEnabled
- implements AppServerPhase
-{
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/lifecycle/phase/AppServerPhase.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/lifecycle/phase/AppServerPhase.java
deleted file mode 100644
index 1093292b3..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/lifecycle/phase/AppServerPhase.java
+++ /dev/null
@@ -1,15 +0,0 @@
-package org.codehaus.plexus.appserver.lifecycle.phase;
-
-import org.codehaus.plexus.appserver.lifecycle.AppServerContext;
-import org.codehaus.plexus.appserver.lifecycle.AppServerLifecycleException;
-
-/**
- * @author Jason van Zyl
- */
-public interface AppServerPhase
-{
- String ROLE = AppServerPhase.class.getName();
-
- void execute( AppServerContext context )
- throws AppServerLifecycleException;
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/lifecycle/phase/ApplicationDeploymentPhase.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/lifecycle/phase/ApplicationDeploymentPhase.java
deleted file mode 100644
index c73e87f36..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/lifecycle/phase/ApplicationDeploymentPhase.java
+++ /dev/null
@@ -1,55 +0,0 @@
-package org.codehaus.plexus.appserver.lifecycle.phase;
-
-import org.codehaus.plexus.appserver.application.deploy.ApplicationDeployer;
-import org.codehaus.plexus.appserver.lifecycle.AppServerContext;
-import org.codehaus.plexus.appserver.lifecycle.AppServerLifecycleException;
-import org.codehaus.plexus.appserver.supervisor.Supervisor;
-import org.codehaus.plexus.appserver.supervisor.SupervisorException;
-import org.codehaus.plexus.appserver.supervisor.SupervisorListener;
-
-import java.io.File;
-
-/**
- * @author Jason van Zyl
- */
-public class ApplicationDeploymentPhase
- extends AbstractAppServerPhase
-{
- private ApplicationDeployer applicationDeployer;
-
- private Supervisor applicationSupervisor;
-
- public void execute( AppServerContext context )
- throws AppServerLifecycleException
- {
- try
- {
- applicationSupervisor.addDirectory( new File( context.getAppServerHome(), "apps" ), new SupervisorListener()
- {
- public void onJarDiscovered( File jar )
- {
- String name = jar.getName();
-
- try
- {
- String appName = name.substring( 0, name.length() - 4 );
-
- getLogger().info( applicationSupervisor.getName() + " is deploying " + appName + "." );
-
- applicationDeployer.deploy( appName, jar );
- }
- catch ( Exception e )
- {
- getLogger().error( "Error while deploying appserver " + name + ".", e );
- }
- }
- } );
-
- applicationSupervisor.scan();
- }
- catch ( SupervisorException e )
- {
- throw new AppServerLifecycleException( "Error deploying applications in the app server.", e );
- }
- }
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/lifecycle/phase/ServiceDeploymentPhase.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/lifecycle/phase/ServiceDeploymentPhase.java
deleted file mode 100644
index 46f2317b4..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/lifecycle/phase/ServiceDeploymentPhase.java
+++ /dev/null
@@ -1,55 +0,0 @@
-package org.codehaus.plexus.appserver.lifecycle.phase;
-
-import org.codehaus.plexus.appserver.lifecycle.AppServerContext;
-import org.codehaus.plexus.appserver.lifecycle.AppServerLifecycleException;
-import org.codehaus.plexus.appserver.service.deploy.ServiceDeployer;
-import org.codehaus.plexus.appserver.supervisor.Supervisor;
-import org.codehaus.plexus.appserver.supervisor.SupervisorException;
-import org.codehaus.plexus.appserver.supervisor.SupervisorListener;
-
-import java.io.File;
-
-/**
- * @author Jason van Zyl
- */
-public class ServiceDeploymentPhase
- extends AbstractAppServerPhase
-{
- private ServiceDeployer serviceDeployer;
-
- private Supervisor serviceSupervisor;
-
- public void execute( AppServerContext context )
- throws AppServerLifecycleException
- {
- try
- {
- serviceSupervisor.addDirectory( new File( context.getAppServerHome(), "services" ), new SupervisorListener()
- {
- public void onJarDiscovered( File jar )
- {
- String name = jar.getName();
-
- try
- {
- String serviceName = name.substring( 0, name.length() - 4 );
-
- getLogger().info( serviceSupervisor.getName() + " is deploying " + serviceName + "." );
-
- serviceDeployer.deploy( serviceName, jar );
- }
- catch ( Exception e )
- {
- getLogger().error( "Error while deploying service " + name + ".", e );
- }
- }
- } );
-
- serviceSupervisor.scan();
- }
- catch ( SupervisorException e )
- {
- throw new AppServerLifecycleException( "Error deploying services in the app server.", e );
- }
- }
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/management/AbstractMBean.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/management/AbstractMBean.java
deleted file mode 100644
index 4008619fc..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/management/AbstractMBean.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package org.codehaus.plexus.appserver.management;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-/**
- * @author Emmanuel Venisse
- * @version $Id$
- */
-public abstract class AbstractMBean
- implements MBean
-{
- public String getDomain()
- {
- return "PlexusAppServer";
- }
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/management/Agent.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/management/Agent.java
deleted file mode 100644
index 5d143abc7..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/management/Agent.java
+++ /dev/null
@@ -1,34 +0,0 @@
-package org.codehaus.plexus.appserver.management;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-/**
- * @author Emmanuel Venisse
- * @version $Id$
- */
-public interface Agent
-{
- static final String ROLE = Agent.class.getName();
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/management/ApplicationServerMBean.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/management/ApplicationServerMBean.java
deleted file mode 100644
index f7e8380e1..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/management/ApplicationServerMBean.java
+++ /dev/null
@@ -1,68 +0,0 @@
-package org.codehaus.plexus.appserver.management;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.codehaus.plexus.appserver.ApplicationServer;
-import org.codehaus.plexus.appserver.ApplicationServerException;
-
-import java.io.File;
-
-/**
- * @author Emmanuel Venisse
- * @version $Id$
- * @plexus.component role="org.codehaus.plexus.appserver.management.MBean" role-hint="applicationServer"
- */
-public class ApplicationServerMBean
- extends AbstractMBean
- implements ApplicationServerMBeanMBean
-{
- /**
- * @plexus.requirement
- */
- ApplicationServer appserver;
-
- public String getName()
- {
- return "ApplicationServer";
- }
-
- public void deploy( String id, File location )
- throws ApplicationServerException
- {
- appserver.deploy( id, location );
- }
-
- public void redeploy( String id )
- throws ApplicationServerException
- {
- appserver.redeploy( id );
- }
-
- public void undeploy( String id )
- throws ApplicationServerException
- {
- appserver.undeploy( id );
- }
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/management/ApplicationServerMBeanMBean.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/management/ApplicationServerMBeanMBean.java
deleted file mode 100644
index e5e1d3c27..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/management/ApplicationServerMBeanMBean.java
+++ /dev/null
@@ -1,46 +0,0 @@
-package org.codehaus.plexus.appserver.management;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.codehaus.plexus.appserver.ApplicationServerException;
-
-import java.io.File;
-
-/**
- * @author Emmanuel Venisse
- * @version $Id$
- */
-public interface ApplicationServerMBeanMBean
- extends MBean
-{
- void deploy( String id, File location )
- throws ApplicationServerException;
-
- void redeploy( String id )
- throws ApplicationServerException;
-
- void undeploy( String id )
- throws ApplicationServerException;
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/management/DefaultAgent.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/management/DefaultAgent.java
deleted file mode 100644
index 72370cd0d..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/management/DefaultAgent.java
+++ /dev/null
@@ -1,148 +0,0 @@
-package org.codehaus.plexus.appserver.management;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.codehaus.plexus.context.Context;
-import org.codehaus.plexus.context.ContextException;
-import org.codehaus.plexus.logging.AbstractLogEnabled;
-import org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable;
-import org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable;
-import org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException;
-import org.codehaus.plexus.util.FileUtils;
-import org.livetribe.slp.Attributes;
-import org.livetribe.slp.Scopes;
-import org.livetribe.slp.ServiceInfo;
-import org.livetribe.slp.ServiceURL;
-import org.livetribe.slp.api.sa.StandardServiceAgent;
-
-import javax.management.MBeanServer;
-import javax.management.MBeanServerFactory;
-import javax.management.ObjectName;
-import javax.management.remote.JMXConnectorServer;
-import javax.management.remote.JMXConnectorServerFactory;
-import javax.management.remote.JMXServiceURL;
-import java.io.File;
-import java.io.FileOutputStream;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Locale;
-import java.util.Properties;
-
-/**
- * @author Emmanuel Venisse
- * @version $Id$
- */
-public class DefaultAgent
- extends AbstractLogEnabled
- implements Agent, Initializable, Contextualizable
-{
- /**
- * @plexus.requirement role="org.codehaus.plexus.appserver.management.MBean"
- */
- private List mbeans;
-
- /**
- * @plexus.configuration default-value="service:jmx:rmi:///"
- */
- private String serviceUrl;
-
- /**
- * @plexus.configuration default-value="3427"
- */
- private int slpPort;
-
- private MBeanServer mbeanServer;
-
- private JMXServiceURL jmxServiceURL;
-
- private String tempDirectory;
-
- public void initialize()
- throws InitializationException
- {
- try
- {
- mbeanServer = MBeanServerFactory.createMBeanServer();
-
- // Register mbeans
- if ( mbeans != null )
- {
- for ( Iterator i = mbeans.iterator(); i.hasNext(); )
- {
- MBean mbean = (MBean) i.next();
- mbeanServer.registerMBean( mbean,
- new ObjectName( mbean.getDomain() + ":name=" + mbean.getName() ) );
- }
- }
-
- // Attach a JMXConnectorServer to the platform MBeanServer
- jmxServiceURL = new JMXServiceURL( serviceUrl );
-
- JMXConnectorServer connectorServer =
- JMXConnectorServerFactory.newJMXConnectorServer( jmxServiceURL, null, mbeanServer );
- connectorServer.start();
-
- // Refresh the JMXServiceURL after the JMXConnectorServer has started
- jmxServiceURL = connectorServer.getAddress();
-
- // Now advertise the JMXConnectorServer service via SLP
-
- // Convert JMXServiceURL (JMX) to ServiceURL (SLP)
- ServiceURL serviceURL = new ServiceURL( jmxServiceURL.toString() );
- Scopes scopes = Scopes.DEFAULT;
- Attributes attributes = null;
- String language = Locale.ENGLISH.getLanguage();
- ServiceInfo serviceInfo = new ServiceInfo( serviceURL, scopes, attributes, language );
-
- // Create the SLP ServiceAgent that advertises the JMX service
- StandardServiceAgent serviceAgent = new StandardServiceAgent();
- // Allow this code to be run by non-root users on Linux/Unix
- serviceAgent.setPort( slpPort );
- // Register the service and start the SLP ServiceAgent
- serviceAgent.register( serviceInfo );
- serviceAgent.start();
-
- File serviceFile = new File( tempDirectory, "agent.properties" );
- Properties props = new Properties();
- props.put( "jmxServiceUrl", jmxServiceURL.toString() );
- props.put( "slpPort", String.valueOf( slpPort ) );
- props.store( new FileOutputStream( serviceFile ), null );
- FileUtils.forceDeleteOnExit( serviceFile );
-
- getLogger().info( "JMX manager agent is up and running (" + jmxServiceURL + ")." );
- getLogger().info( "JMX agent is registered in SLP service on port " + slpPort );
- }
- catch ( Exception e )
- {
- throw new InitializationException( "Can't load JMX agent.", e );
- }
- }
-
- public void contextualize( Context context )
- throws ContextException
- {
- tempDirectory = (String) context.get( "plexus.temp" );
- }
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/management/MBean.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/management/MBean.java
deleted file mode 100644
index e3f089957..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/management/MBean.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package org.codehaus.plexus.appserver.management;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-/**
- * @author Emmanuel Venisse
- * @version $Id$
- */
-public interface MBean
-{
- static final String ROLE = MBean.class.getName();
-
- String getDomain();
-
- String getName();
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/AbstractPlexusService.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/AbstractPlexusService.java
deleted file mode 100644
index e636e73f7..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/AbstractPlexusService.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package org.codehaus.plexus.appserver.service;
-
-import org.codehaus.plexus.appserver.AppServerObject;
-
-/**
- * @author Jason van Zyl
- */
-public abstract class AbstractPlexusService
- extends AppServerObject
- implements PlexusService
-{
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/PlexusService.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/PlexusService.java
deleted file mode 100644
index 29b185e53..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/PlexusService.java
+++ /dev/null
@@ -1,46 +0,0 @@
-package org.codehaus.plexus.appserver.service;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.codehaus.plexus.appserver.application.profile.AppRuntimeProfile;
-import org.codehaus.plexus.configuration.PlexusConfiguration;
-
-/**
- * @author Trygve Laugstøl
- * @version $Id$
- */
-public interface PlexusService
-{
- String ROLE = PlexusService.class.getName();
-
- void beforeApplicationStart( AppRuntimeProfile appRuntimeProfile, PlexusConfiguration serviceConfiguration )
- throws Exception;
-
- void afterApplicationStart( AppRuntimeProfile appRuntimeProfile, PlexusConfiguration serviceConfiguration )
- throws Exception;
-
- void applicationStop( AppRuntimeProfile runtimeProfile )
- throws Exception;
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/ServiceBuilder.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/ServiceBuilder.java
deleted file mode 100644
index be3a1cb49..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/ServiceBuilder.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package org.codehaus.plexus.appserver.service;
-
-/*
- * Copyright (c) 2004, Codehaus.org
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-/**
- * A bean which builds services.
- *
- * @author Dan Diephouse
- * @since Jul 17, 2004
- */
-public class ServiceBuilder
-{
- private String userConfig;
-
- private String targetDirectory;
-
- private String targetJar;
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/configurator/DefaultServiceConfigurator.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/configurator/DefaultServiceConfigurator.java
deleted file mode 100644
index 939c5342f..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/configurator/DefaultServiceConfigurator.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package org.codehaus.plexus.appserver.service.configurator;
-
-import org.codehaus.classworlds.ClassRealm;
-import org.codehaus.plexus.component.configurator.ComponentConfigurationException;
-import org.codehaus.plexus.component.configurator.ComponentConfigurator;
-import org.codehaus.plexus.configuration.PlexusConfiguration;
-import org.codehaus.plexus.logging.AbstractLogEnabled;
-
-/**
- * @author Jason van Zyl
- * @version $Id$
- */
-public class DefaultServiceConfigurator
- extends AbstractLogEnabled
- implements ServiceConfigurator
-{
- private ComponentConfigurator configurator;
-
- public Object configure( Object serviceConfiguration, PlexusConfiguration configuration, ClassRealm realm )
- throws ComponentConfigurationException
- {
- configurator.configureComponent( serviceConfiguration, configuration, realm );
-
- return serviceConfiguration;
- }
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/configurator/ServiceConfigurator.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/configurator/ServiceConfigurator.java
deleted file mode 100644
index f7989e1ce..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/configurator/ServiceConfigurator.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package org.codehaus.plexus.appserver.service.configurator;
-
-import org.codehaus.classworlds.ClassRealm;
-import org.codehaus.plexus.component.configurator.ComponentConfigurationException;
-import org.codehaus.plexus.configuration.PlexusConfiguration;
-
-/**
- * @author Jason van Zyl
- * @version $Id$
- */
-public interface ServiceConfigurator
-{
- String ROLE = ServiceConfigurator.class.getName();
-
- Object configure( Object configurationObject, PlexusConfiguration serviceConfiguration, ClassRealm realm )
- throws ComponentConfigurationException;
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/deploy/DefaultServiceDeployer.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/deploy/DefaultServiceDeployer.java
deleted file mode 100644
index 5f9c47aa3..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/deploy/DefaultServiceDeployer.java
+++ /dev/null
@@ -1,121 +0,0 @@
-package org.codehaus.plexus.appserver.service.deploy;
-
-/*
- * Copyright (c) 2004, Codehaus.org
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.codehaus.plexus.DefaultPlexusContainer;
-import org.codehaus.plexus.PlexusConstants;
-import org.codehaus.plexus.appserver.ApplicationServerException;
-import org.codehaus.plexus.appserver.deploy.AbstractDeployer;
-import org.codehaus.plexus.appserver.service.deploy.lifecycle.ServiceDeploymentContext;
-import org.codehaus.plexus.appserver.service.deploy.lifecycle.ServiceDeploymentException;
-import org.codehaus.plexus.appserver.service.deploy.lifecycle.phase.ServiceDeploymentPhase;
-import org.codehaus.plexus.component.repository.exception.ComponentLookupException;
-import org.codehaus.plexus.context.Context;
-import org.codehaus.plexus.context.ContextException;
-import org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable;
-import org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable;
-import org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException;
-
-import java.io.File;
-import java.util.Iterator;
-import java.util.List;
-
-/**
- * @author Dan Diephouse
- * @author Jason van Zyl
- * @since Jul 17, 2004
- */
-public class DefaultServiceDeployer
- extends AbstractDeployer
- implements ServiceDeployer, Initializable, Contextualizable
-{
- private File servicesDirectory;
-
- private DefaultPlexusContainer container;
-
- private List phases;
-
- // ----------------------------------------------------------------------
- // ServiceDeployer Implementation
- // ----------------------------------------------------------------------
-
- public void deploy( String serviceId, File location )
- throws ApplicationServerException
- {
- deploy( serviceId, location, true );
- }
-
- private void deploy( String id, File sar, boolean expandSar )
- throws ApplicationServerException
- {
- ServiceDeploymentContext context = new ServiceDeploymentContext( id, sar, servicesDirectory, container );
-
- for ( Iterator i = phases.iterator(); i.hasNext(); )
- {
- String phaseId = (String) i.next();
-
- try
- {
- ServiceDeploymentPhase phase =
- (ServiceDeploymentPhase) container.lookup( ServiceDeploymentPhase.ROLE, phaseId );
-
- phase.execute( context );
- }
- catch ( ComponentLookupException e )
- {
- throw new ApplicationServerException(
- "The requested app server lifecycle phase cannot be found: " + phaseId, e );
- }
- catch ( ServiceDeploymentException e )
- {
- throw new ApplicationServerException( "Error executing service deployment id.", e );
- }
- }
- }
-
- public void redeploy( String id )
- throws ApplicationServerException
- {
- }
-
- public void undeploy( String id )
- throws ApplicationServerException
- {
- }
-
- // ----------------------------------------------------------------------
- // Component Lifecycle
- // ----------------------------------------------------------------------
-
- public void initialize()
- throws InitializationException
- {
- getLogger().info( "Services will be deployed in: '" + servicesDirectory + "'." );
- }
-
- public void contextualize( Context context )
- throws ContextException
- {
- container = (DefaultPlexusContainer) context.get( PlexusConstants.PLEXUS_KEY );
- }
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/deploy/ServiceDeployer.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/deploy/ServiceDeployer.java
deleted file mode 100644
index 6d3b2128f..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/deploy/ServiceDeployer.java
+++ /dev/null
@@ -1,36 +0,0 @@
-package org.codehaus.plexus.appserver.service.deploy;
-
-import org.codehaus.plexus.appserver.deploy.Deployer;
-
-/*
- * Copyright (c) 2004, Codehaus.org
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-/**
- * @author Dan Diephouse
- * @author Jason van Zyl
- * @since Jul 17, 2004
- */
-public interface ServiceDeployer
- extends Deployer
-{
- String ROLE = ServiceDeployer.class.getName();
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/deploy/lifecycle/ServiceDeploymentContext.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/deploy/lifecycle/ServiceDeploymentContext.java
deleted file mode 100644
index 53caaff33..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/deploy/lifecycle/ServiceDeploymentContext.java
+++ /dev/null
@@ -1,68 +0,0 @@
-package org.codehaus.plexus.appserver.service.deploy.lifecycle;
-
-import org.codehaus.plexus.DefaultPlexusContainer;
-
-import java.io.File;
-
-/**
- * @author Jason van Zyl
- */
-public class ServiceDeploymentContext
-{
- String serviceId;
-
- File sar;
-
- File servicesDirectory;
-
- DefaultPlexusContainer container;
-
- // ----------------------------------------------------------------------------
- //
- // ----------------------------------------------------------------------------
-
- File serviceDirectory;
-
- public ServiceDeploymentContext( String serviceId, File sar, File servicesDirectory,
- DefaultPlexusContainer container )
- {
- this.serviceId = serviceId;
- this.sar = sar;
- this.servicesDirectory = servicesDirectory;
- this.container = container;
- }
-
- public String getServiceId()
- {
- return serviceId;
- }
-
- public File getSar()
- {
- return sar;
- }
-
- public File getServicesDirectory()
- {
- return servicesDirectory;
- }
-
- public DefaultPlexusContainer getContainer()
- {
- return container;
- }
-
- // ----------------------------------------------------------------------------
- //
- // ----------------------------------------------------------------------------
-
- public void setServiceDirectory( File serviceDirectory )
- {
- this.serviceDirectory = serviceDirectory;
- }
-
- public File getServiceDirectory()
- {
- return serviceDirectory;
- }
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/deploy/lifecycle/ServiceDeploymentException.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/deploy/lifecycle/ServiceDeploymentException.java
deleted file mode 100644
index 8f948c69e..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/deploy/lifecycle/ServiceDeploymentException.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package org.codehaus.plexus.appserver.service.deploy.lifecycle;
-
-/**
- * @author Jason van Zyl
- */
-public class ServiceDeploymentException
- extends Exception
-{
- public ServiceDeploymentException( String string )
- {
- super( string );
- }
-
- public ServiceDeploymentException( String string, Throwable throwable )
- {
- super( string, throwable );
- }
-
- public ServiceDeploymentException( Throwable throwable )
- {
- super( throwable );
- }
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/deploy/lifecycle/phase/AbstractServiceDeploymentPhase.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/deploy/lifecycle/phase/AbstractServiceDeploymentPhase.java
deleted file mode 100644
index 28fe3cd77..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/deploy/lifecycle/phase/AbstractServiceDeploymentPhase.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package org.codehaus.plexus.appserver.service.deploy.lifecycle.phase;
-
-import org.codehaus.plexus.appserver.AppServerObject;
-
-/**
- * @author Jason van Zyl
- */
-public abstract class AbstractServiceDeploymentPhase
- extends AppServerObject
- implements ServiceDeploymentPhase
-{
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/deploy/lifecycle/phase/AddServiceLibrariesPhase.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/deploy/lifecycle/phase/AddServiceLibrariesPhase.java
deleted file mode 100644
index 48ae2881c..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/deploy/lifecycle/phase/AddServiceLibrariesPhase.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package org.codehaus.plexus.appserver.service.deploy.lifecycle.phase;
-
-import org.codehaus.plexus.appserver.service.deploy.lifecycle.ServiceDeploymentContext;
-import org.codehaus.plexus.appserver.service.deploy.lifecycle.ServiceDeploymentException;
-
-import java.io.File;
-
-/**
- * @author Jason van Zyl
- */
-public class AddServiceLibrariesPhase
- extends AbstractServiceDeploymentPhase
-{
- public void execute( ServiceDeploymentContext context )
- throws ServiceDeploymentException
- {
- File libDir = new File( context.getServiceDirectory(), "lib" );
-
- if ( !libDir.exists() )
- {
- throw new ServiceDeploymentException( "The service must have a /lib directory." );
- }
-
- context.getContainer().addJarRepository( libDir );
- }
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/deploy/lifecycle/phase/DiscoverServiceComponentsPhase.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/deploy/lifecycle/phase/DiscoverServiceComponentsPhase.java
deleted file mode 100644
index a5afb8b78..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/deploy/lifecycle/phase/DiscoverServiceComponentsPhase.java
+++ /dev/null
@@ -1,30 +0,0 @@
-package org.codehaus.plexus.appserver.service.deploy.lifecycle.phase;
-
-import org.codehaus.plexus.appserver.service.deploy.lifecycle.ServiceDeploymentContext;
-import org.codehaus.plexus.appserver.service.deploy.lifecycle.ServiceDeploymentException;
-import org.codehaus.plexus.component.repository.exception.ComponentRepositoryException;
-import org.codehaus.plexus.configuration.PlexusConfigurationException;
-
-/**
- * @author Jason van Zyl
- */
-public class DiscoverServiceComponentsPhase
- extends AbstractServiceDeploymentPhase
-{
- public void execute( ServiceDeploymentContext context )
- throws ServiceDeploymentException
- {
- try
- {
- context.getContainer().discoverComponents( context.getContainer().getContainerRealm() );
- }
- catch ( PlexusConfigurationException e )
- {
- throw new ServiceDeploymentException( "Error while looking for new service components.", e );
- }
- catch ( ComponentRepositoryException e )
- {
- throw new ServiceDeploymentException( "Error discovering components.", e );
- }
- }
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/deploy/lifecycle/phase/ExpandServicePhase.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/deploy/lifecycle/phase/ExpandServicePhase.java
deleted file mode 100644
index 64b2aaf31..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/deploy/lifecycle/phase/ExpandServicePhase.java
+++ /dev/null
@@ -1,47 +0,0 @@
-package org.codehaus.plexus.appserver.service.deploy.lifecycle.phase;
-
-import org.codehaus.plexus.appserver.deploy.DeploymentException;
-import org.codehaus.plexus.appserver.service.deploy.lifecycle.ServiceDeploymentContext;
-import org.codehaus.plexus.appserver.service.deploy.lifecycle.ServiceDeploymentException;
-import org.codehaus.plexus.util.FileUtils;
-
-import java.io.File;
-import java.io.IOException;
-
-/**
- * @author Jason van Zyl
- */
-public class ExpandServicePhase
- extends AbstractServiceDeploymentPhase
-{
- public void execute( ServiceDeploymentContext context )
- throws ServiceDeploymentException
- {
- File serviceDir = new File( context.getServicesDirectory(), context.getServiceId() );
-
- context.setServiceDirectory( serviceDir );
-
- if ( serviceDir.exists() )
- {
- getLogger().info( "Removing old service." );
-
- try
- {
- FileUtils.deleteDirectory( serviceDir );
- }
- catch ( IOException e )
- {
- throw new ServiceDeploymentException( "Cannot delete old service deployment in " + serviceDir, e );
- }
- }
-
- try
- {
- expand( context.getSar(), serviceDir, false );
- }
- catch ( DeploymentException e )
- {
- throw new ServiceDeploymentException( "Error expanding service archive.", e );
- }
- }
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/deploy/lifecycle/phase/ProcessServiceConfigurationPhase.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/deploy/lifecycle/phase/ProcessServiceConfigurationPhase.java
deleted file mode 100644
index 4f6d49653..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/deploy/lifecycle/phase/ProcessServiceConfigurationPhase.java
+++ /dev/null
@@ -1,95 +0,0 @@
-package org.codehaus.plexus.appserver.service.deploy.lifecycle.phase;
-
-import org.codehaus.plexus.DefaultPlexusContainer;
-import org.codehaus.plexus.appserver.PlexusServiceConstants;
-import org.codehaus.plexus.appserver.service.deploy.lifecycle.ServiceDeploymentContext;
-import org.codehaus.plexus.appserver.service.deploy.lifecycle.ServiceDeploymentException;
-import org.codehaus.plexus.component.repository.exception.ComponentLookupException;
-import org.codehaus.plexus.component.repository.io.PlexusTools;
-import org.codehaus.plexus.configuration.PlexusConfiguration;
-import org.codehaus.plexus.configuration.PlexusConfigurationException;
-
-import java.io.File;
-import java.io.FileNotFoundException;
-import java.io.FileReader;
-import java.io.Reader;
-
-/**
- * @author Jason van Zyl
- */
-public class ProcessServiceConfigurationPhase
- extends AbstractServiceDeploymentPhase
-{
- public void execute( ServiceDeploymentContext context )
- throws ServiceDeploymentException
- {
- File config = new File( new File( context.getServiceDirectory(), PlexusServiceConstants.CONF_DIRECTORY ),
- PlexusServiceConstants.CONFIGURATION_FILE );
-
- /**
- * The first time the configurator runs, we don't care
- * what the user configurator is, so only use the components.xml
- * files. However, we still need to load on start components.
- */
-
- try
- {
- Reader reader = new FileReader( config );
-
- PlexusConfiguration serviceConfig = PlexusTools.buildConfiguration( config.getPath(), reader );
-
- startComponents( serviceConfig, context.getContainer() );
- }
- catch ( FileNotFoundException e )
- {
- throw new ServiceDeploymentException( "Cannot find configuration file.", e );
- }
- catch ( PlexusConfigurationException e )
- {
- throw new ServiceDeploymentException( "Error reading service configuration.", e );
- }
- catch ( ComponentLookupException e )
- {
- throw new ServiceDeploymentException( "Error starting service.", e );
- }
- }
-
- private void startComponents( PlexusConfiguration serviceConfig, DefaultPlexusContainer container )
- throws PlexusConfigurationException, ComponentLookupException
- {
- PlexusConfiguration[] loadOnStartComponents =
- serviceConfig.getChild( "load-on-start" ).getChildren( "component" );
-
- getLogger().debug( "Found " + loadOnStartComponents.length + " components to load on start" );
-
- for ( int i = 0; i < loadOnStartComponents.length; i++ )
- {
- String role = loadOnStartComponents[i].getChild( "role" ).getValue( null );
-
- String roleHint = loadOnStartComponents[i].getChild( "role-hint" ).getValue();
-
- if ( role == null )
- {
- throw new PlexusConfigurationException( "Missing 'role' element from load-on-start." );
- }
-
- if ( roleHint == null )
- {
- getLogger().info( "Loading on start [role]: " + "[" + role + "]" );
- }
- else
- {
- getLogger().info( "Loading on start [role,roleHint]: " + "[" + role + "," + roleHint + "]" );
- }
-
- if ( roleHint == null )
- {
- container.lookup( role );
- }
- else
- {
- container.lookup( role, roleHint );
- }
- }
- }
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/deploy/lifecycle/phase/ServiceDeploymentPhase.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/deploy/lifecycle/phase/ServiceDeploymentPhase.java
deleted file mode 100644
index e9b88f73c..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/service/deploy/lifecycle/phase/ServiceDeploymentPhase.java
+++ /dev/null
@@ -1,15 +0,0 @@
-package org.codehaus.plexus.appserver.service.deploy.lifecycle.phase;
-
-import org.codehaus.plexus.appserver.service.deploy.lifecycle.ServiceDeploymentContext;
-import org.codehaus.plexus.appserver.service.deploy.lifecycle.ServiceDeploymentException;
-
-/**
- * @author Jason van Zyl
- */
-public interface ServiceDeploymentPhase
-{
- String ROLE = ServiceDeploymentPhase.class.getName();
-
- void execute( ServiceDeploymentContext context )
- throws ServiceDeploymentException;
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/supervisor/DefaultSupervisor.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/supervisor/DefaultSupervisor.java
deleted file mode 100644
index 075d676cb..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/supervisor/DefaultSupervisor.java
+++ /dev/null
@@ -1,103 +0,0 @@
-package org.codehaus.plexus.appserver.supervisor;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import java.io.File;
-import java.io.FileFilter;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-/**
- * @author Trygve Laugstøl
- * @version $Id$
- */
-public class DefaultSupervisor
- implements Supervisor
-{
- private List directories = new ArrayList();
-
- private String name;
-
- private String extension;
-
- // ----------------------------------------------------------------------
- // Supervisor Implementation
- // ----------------------------------------------------------------------
-
- public void addDirectory( File directory, SupervisorListener listener )
- throws SupervisorException
- {
- if ( !directory.isDirectory() )
- {
- throw new SupervisorException(
- "The specified directory doesn't exists or isn't a directory: '" + directory.getAbsolutePath() + "'." );
- }
-
- directories.add( new SupervisedDirectory( directory, listener ) );
- }
-
- public void scan()
- throws SupervisorException
- {
- for ( Iterator it = directories.iterator(); it.hasNext(); )
- {
- SupervisedDirectory directory = (SupervisedDirectory) it.next();
-
- File dir = directory.getDirectory();
-
- SupervisorListener listener = directory.getListener();
-
- scanDirectory( dir, listener );
- }
- }
-
- public String getName()
- {
- return name;
- }
-
- // ----------------------------------------------------------------------
- //
- // ----------------------------------------------------------------------
-
- private void scanDirectory( File dir, SupervisorListener listener )
- {
- File[] files = dir.listFiles( new FileFilter()
- {
- public boolean accept( File file )
- {
- return file.isFile() && file.getName().endsWith( extension );
- }
- } );
-
- for ( int i = 0; i < files.length; i++ )
- {
- File file = files[i];
-
- listener.onJarDiscovered( file );
- }
- }
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/supervisor/SupervisedDirectory.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/supervisor/SupervisedDirectory.java
deleted file mode 100644
index abafce695..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/supervisor/SupervisedDirectory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.codehaus.plexus.appserver.supervisor;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import java.io.File;
-
-/**
- * @author Trygve Laugstøl
- * @version $Id$
- */
-public class SupervisedDirectory
-{
- private File directory;
-
- private SupervisorListener listener;
-
- // ----------------------------------------------------------------------
- //
- // ----------------------------------------------------------------------
-
- public SupervisedDirectory( File directory, SupervisorListener listener )
- {
- this.directory = directory;
- this.listener = listener;
- }
-
- // ----------------------------------------------------------------------
- //
- // ----------------------------------------------------------------------
-
- public File getDirectory()
- {
- return directory;
- }
-
- public SupervisorListener getListener()
- {
- return listener;
- }
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/supervisor/Supervisor.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/supervisor/Supervisor.java
deleted file mode 100644
index c2f89f367..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/supervisor/Supervisor.java
+++ /dev/null
@@ -1,44 +0,0 @@
-package org.codehaus.plexus.appserver.supervisor;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import java.io.File;
-
-/**
- * @author Trygve Laugstøl
- * @version $Id$
- */
-public interface Supervisor
-{
- String ROLE = Supervisor.class.getName();
-
- void addDirectory( File directory, SupervisorListener listener )
- throws SupervisorException;
-
- void scan()
- throws SupervisorException;
-
- String getName();
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/supervisor/SupervisorException.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/supervisor/SupervisorException.java
deleted file mode 100644
index cdf954114..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/supervisor/SupervisorException.java
+++ /dev/null
@@ -1,43 +0,0 @@
-package org.codehaus.plexus.appserver.supervisor;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-/**
- * @author Trygve Laugstøl
- * @version $Id$
- */
-public class SupervisorException
- extends Exception
-{
- public SupervisorException( String message )
- {
- super( message );
- }
-
- public SupervisorException( String message, Throwable cause )
- {
- super( message, cause );
- }
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/supervisor/SupervisorListener.java b/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/supervisor/SupervisorListener.java
deleted file mode 100644
index 4af0528ca..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/java/org/codehaus/plexus/appserver/supervisor/SupervisorListener.java
+++ /dev/null
@@ -1,36 +0,0 @@
-package org.codehaus.plexus.appserver.supervisor;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import java.io.File;
-
-/**
- * @author Trygve Laugstøl
- * @version $Id$
- */
-public interface SupervisorListener
-{
- void onJarDiscovered( File jar );
-}
diff --git a/plexus-appserver/plexus-appserver-host/src/main/plexus/components.xml b/plexus-appserver/plexus-appserver-host/src/main/plexus/components.xml
deleted file mode 100644
index 5d5e7892a..000000000
--- a/plexus-appserver/plexus-appserver-host/src/main/plexus/components.xml
+++ /dev/null
@@ -1,194 +0,0 @@
-
-
-
-
- org.codehaus.plexus.appserver.ApplicationServer
- org.codehaus.plexus.appserver.DefaultApplicationServer
-
-
- org.codehaus.plexus.appserver.service.deploy.ServiceDeployer
-
-
- org.codehaus.plexus.appserver.application.deploy.ApplicationDeployer
-
-
-
-
- deploy-services
- deploy-apps
-
-
-
-
-
-
- org.codehaus.plexus.appserver.lifecycle.phase.AppServerPhase
- deploy-apps
- org.codehaus.plexus.appserver.lifecycle.phase.ApplicationDeploymentPhase
-
-
- org.codehaus.plexus.appserver.application.deploy.ApplicationDeployer
-
-
- org.codehaus.plexus.appserver.supervisor.Supervisor
- application-supervisor
-
-
-
-
-
- org.codehaus.plexus.appserver.lifecycle.phase.AppServerPhase
- deploy-services
- org.codehaus.plexus.appserver.lifecycle.phase.ServiceDeploymentPhase
-
-
- org.codehaus.plexus.appserver.service.deploy.ServiceDeployer
-
-
- org.codehaus.plexus.appserver.supervisor.Supervisor
- service-supervisor
-
-
-
-
-
-
-
- org.codehaus.plexus.appserver.application.deploy.ApplicationDeployer
- org.codehaus.plexus.appserver.application.deploy.DefaultApplicationDeployer
-
- ${plexus.home}/apps
-
- process-app-metadata
- expand-app
- validate-app
- create-app-container
- create-app-runtime-profile
- pre-app-container-init-service-call
- app-init
- post-app-container-init-service-call
- create-app-descriptor
-
-
-
-
-
-
-
- org.codehaus.plexus.appserver.application.deploy.lifecycle.phase.AppDeploymentPhase
- process-app-metadata
- org.codehaus.plexus.appserver.application.deploy.lifecycle.phase.ProcessAppMetadataPhase
-
-
-
- org.codehaus.plexus.appserver.application.deploy.lifecycle.phase.AppDeploymentPhase
- expand-app
- org.codehaus.plexus.appserver.application.deploy.lifecycle.phase.ExpandAppPhase
-
-
-
- org.codehaus.plexus.appserver.application.deploy.lifecycle.phase.AppDeploymentPhase
- validate-app
- org.codehaus.plexus.appserver.application.deploy.lifecycle.phase.ValidateAppPhase
-
-
-
- org.codehaus.plexus.appserver.application.deploy.lifecycle.phase.AppDeploymentPhase
- create-app-container
- org.codehaus.plexus.appserver.application.deploy.lifecycle.phase.CreateAppContainerPhase
-
-
-
- org.codehaus.plexus.appserver.application.deploy.lifecycle.phase.AppDeploymentPhase
- create-app-runtime-profile
- org.codehaus.plexus.appserver.application.deploy.lifecycle.phase.CreateAppRuntimeProfilePhase
-
-
-
- org.codehaus.plexus.appserver.application.deploy.lifecycle.phase.AppDeploymentPhase
- pre-app-container-init-service-call
- org.codehaus.plexus.appserver.application.deploy.lifecycle.phase.BeforeAppStartServiceSetupPhase
-
-
-
- org.codehaus.plexus.appserver.application.deploy.lifecycle.phase.AppDeploymentPhase
- app-init
- org.codehaus.plexus.appserver.application.deploy.lifecycle.phase.AppInitializationPhase
-
-
-
- org.codehaus.plexus.appserver.application.deploy.lifecycle.phase.AppDeploymentPhase
- post-app-container-init-service-call
- org.codehaus.plexus.appserver.application.deploy.lifecycle.phase.AfterAppStartServiceSetupPhase
-
-
-
- org.codehaus.plexus.appserver.application.deploy.lifecycle.phase.AppDeploymentPhase
- create-app-descriptor
- org.codehaus.plexus.appserver.application.deploy.lifecycle.phase.CreateApplicationDescriptorPhase
-
-
-
-
-
- org.codehaus.plexus.appserver.service.deploy.ServiceDeployer
- org.codehaus.plexus.appserver.service.deploy.DefaultServiceDeployer
-
- ${plexus.home}/services
-
- expand-service
- add-service-libraries
- discover-service-components
- process-service-configuration
-
-
-
-
-
- org.codehaus.plexus.appserver.service.deploy.lifecycle.phase.ServiceDeploymentPhase
- expand-service
- org.codehaus.plexus.appserver.service.deploy.lifecycle.phase.ExpandServicePhase
-
-
-
- org.codehaus.plexus.appserver.service.deploy.lifecycle.phase.ServiceDeploymentPhase
- add-service-libraries
- org.codehaus.plexus.appserver.service.deploy.lifecycle.phase.AddServiceLibrariesPhase
-
-
-
- org.codehaus.plexus.appserver.service.deploy.lifecycle.phase.ServiceDeploymentPhase
- discover-service-components
- org.codehaus.plexus.appserver.service.deploy.lifecycle.phase.DiscoverServiceComponentsPhase
-
-
-
- org.codehaus.plexus.appserver.service.deploy.lifecycle.phase.ServiceDeploymentPhase
- process-service-configuration
- org.codehaus.plexus.appserver.service.deploy.lifecycle.phase.ProcessServiceConfigurationPhase
-
-
-
-
-
- org.codehaus.plexus.appserver.supervisor.Supervisor
- application-supervisor
- org.codehaus.plexus.appserver.supervisor.DefaultSupervisor
-
- Application Supervisor
- jar
-
-
-
-
- org.codehaus.plexus.appserver.supervisor.Supervisor
- service-supervisor
- org.codehaus.plexus.appserver.supervisor.DefaultSupervisor
-
- Service Supervisor
- sar
-
-
-
-
-
diff --git a/plexus-appserver/plexus-appserver-maven-plugin/pom.xml b/plexus-appserver/plexus-appserver-maven-plugin/pom.xml
deleted file mode 100644
index 0babb4001..000000000
--- a/plexus-appserver/plexus-appserver-maven-plugin/pom.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
- org.codehaus.plexus
- plexus-appserver
- 2.0-alpha-4-SNAPSHOT
-
- 4.0.0
- plexus-appserver-maven-plugin
- maven-plugin
- Plexus App Server Maven Plugin
-
-
- org.apache.maven
- maven-plugin-api
- 2.0
-
-
- org.codehaus.plexus
- plexus-appserver-runtime-builder
- 2.0-alpha-4-SNAPSHOT
-
-
-
diff --git a/plexus-appserver/plexus-appserver-maven-plugin/src/main/java/org/codehaus/plexus/maven/plugin/AbstractAppServerMojo.java b/plexus-appserver/plexus-appserver-maven-plugin/src/main/java/org/codehaus/plexus/maven/plugin/AbstractAppServerMojo.java
deleted file mode 100644
index 814ada479..000000000
--- a/plexus-appserver/plexus-appserver-maven-plugin/src/main/java/org/codehaus/plexus/maven/plugin/AbstractAppServerMojo.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package org.codehaus.plexus.maven.plugin;
-
-import org.apache.maven.artifact.repository.ArtifactRepository;
-import org.apache.maven.plugin.AbstractMojo;
-import org.apache.maven.project.MavenProject;
-import org.codehaus.plexus.builder.runtime.PlexusRuntimeBuilder;
-
-import java.io.File;
-import java.util.List;
-import java.util.Set;
-
-/**
- * @author Jason van Zyl
- */
-public abstract class AbstractAppServerMojo
- extends AbstractMojo
-{
- /**
- * @parameter expression="${basedir}"
- * @required
- */
- protected File basedir;
-
- /**
- * @parameter expression="${project.build.directory}"
- * @required
- */
- protected File target;
-
- /**
- * @parameter expression="${project.build.finalName}"
- * @required
- */
- protected String finalName;
-
- /**
- * @parameter expression="${project}"
- * @required
- * @readonly
- */
- protected MavenProject project;
-
- /**
- * @parameter expression="${project.remoteArtifactRepositories}"
- * @required
- */
- protected List remoteRepositories;
-
- /**
- * @parameter expression="${localRepository}"
- * @required
- */
- protected ArtifactRepository localRepository;
-
- /**
- * @parameter expression="${project.artifacts}"
- * @readonly
- * @required
- */
- protected Set projectArtifacts;
-
- /**
- * @parameter expression="${component.org.codehaus.plexus.builder.runtime.PlexusRuntimeBuilder}"
- * @required
- * @readonly
- */
- protected PlexusRuntimeBuilder runtimeBuilder;
-
- /**
- * @parameter expression="${project.build.directory}/plexus-test-runtime"
- * @required
- */
- protected File runtimePath;
-}
diff --git a/plexus-appserver/plexus-appserver-maven-plugin/src/main/java/org/codehaus/plexus/maven/plugin/application/AbstractAppServerApplicationMojo.java b/plexus-appserver/plexus-appserver-maven-plugin/src/main/java/org/codehaus/plexus/maven/plugin/application/AbstractAppServerApplicationMojo.java
deleted file mode 100644
index 23d514eb2..000000000
--- a/plexus-appserver/plexus-appserver-maven-plugin/src/main/java/org/codehaus/plexus/maven/plugin/application/AbstractAppServerApplicationMojo.java
+++ /dev/null
@@ -1,25 +0,0 @@
-package org.codehaus.plexus.maven.plugin.application;
-
-import org.codehaus.plexus.builder.application.ApplicationBuilder;
-import org.codehaus.plexus.maven.plugin.AbstractAppServerMojo;
-
-import java.io.File;
-
-/**
- * @author Jason van Zyl
- */
-public abstract class AbstractAppServerApplicationMojo
- extends AbstractAppServerMojo
-{
- /**
- * @parameter expression="${project.build.directory}/plexus-application"
- * @required
- */
- protected File applicationAssemblyDirectory;
-
- /**
- * @parameter expression="${component.org.codehaus.plexus.builder.application.ApplicationBuilder}"
- * @required
- */
- protected ApplicationBuilder applicationBuilder;
-}
diff --git a/plexus-appserver/plexus-appserver-maven-plugin/src/main/java/org/codehaus/plexus/maven/plugin/application/ApplicationAssemblerMojo.java b/plexus-appserver/plexus-appserver-maven-plugin/src/main/java/org/codehaus/plexus/maven/plugin/application/ApplicationAssemblerMojo.java
deleted file mode 100644
index 883b34ff2..000000000
--- a/plexus-appserver/plexus-appserver-maven-plugin/src/main/java/org/codehaus/plexus/maven/plugin/application/ApplicationAssemblerMojo.java
+++ /dev/null
@@ -1,133 +0,0 @@
-package org.codehaus.plexus.maven.plugin.application;
-
-/*
- * Copyright (c) 2004, Codehaus.org
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.apache.maven.artifact.Artifact;
-import org.apache.maven.plugin.MojoExecutionException;
-import org.codehaus.plexus.builder.application.ApplicationBuilderException;
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.Properties;
-import java.util.Set;
-
-/**
- * @author Trygve Laugstøl
- * @author Jason van Zyl
- * @version $Id$
- * @goal assemble-app
- * @requiresDependencyResolution
- * @description Assemble a Plexus application.
- * @phase package
- */
-public class ApplicationAssemblerMojo
- extends AbstractAppServerApplicationMojo
-{
- /**
- * @parameter expression="${applicationConfiguration}"
- * @required
- */
- private File applicationConfiguration;
-
- /**
- * @parameter expression="${configurationsDirectory}"
- */
- private File configurationsDirectory;
-
- /**
- * @parameter expression="${configurationProperties}"
- */
- private File configurationProperties;
-
- /**
- * @parameter expression="${applicationName}"
- * @required
- */
- private String applicationName;
-
- /**
- * @parameter expression="${additionalCoreArtifacts}"
- */
- private HashSet additionalCoreArtifacts;
-
- // ----------------------------------------------------------------------
- //
- // ----------------------------------------------------------------------
-
- public void execute()
- throws MojoExecutionException
- {
- // ----------------------------------------------------------------------
- // Find all services
- // ----------------------------------------------------------------------
-
- Set services = new HashSet();
-
- for ( Iterator it = projectArtifacts.iterator(); it.hasNext(); )
- {
- Artifact artifact = (Artifact) it.next();
-
- if ( artifact.getType().equals( "plexus-service" ) )
- {
- services.add( artifact );
- }
- }
-
- // ----------------------------------------------------------------------
- // Build the appserver
- // ----------------------------------------------------------------------
-
- getLog().debug( "Building the appserver '" + applicationName + "' into '" +
- applicationAssemblyDirectory.getAbsolutePath() + "'." );
-
- Properties interpolationProperties = new Properties();
-
- if ( configurationProperties != null )
- {
- try
- {
- interpolationProperties.load( new FileInputStream( configurationProperties ) );
- }
- catch ( IOException e )
- {
- throw new MojoExecutionException( "Cannot load configuration properties file.", e );
- }
- }
-
- interpolationProperties.putAll( project.getProperties() );
-
- try
- {
- applicationBuilder.assemble( applicationName, applicationAssemblyDirectory, remoteRepositories,
- localRepository, projectArtifacts, additionalCoreArtifacts, services,
- applicationConfiguration, configurationsDirectory, interpolationProperties );
- }
- catch ( ApplicationBuilderException e )
- {
- throw new MojoExecutionException( "Error while assembling the appserver.", e );
- }
- }
-}
diff --git a/plexus-appserver/plexus-appserver-maven-plugin/src/main/java/org/codehaus/plexus/maven/plugin/application/ApplicationPackagerMojo.java b/plexus-appserver/plexus-appserver-maven-plugin/src/main/java/org/codehaus/plexus/maven/plugin/application/ApplicationPackagerMojo.java
deleted file mode 100644
index 45a0960df..000000000
--- a/plexus-appserver/plexus-appserver-maven-plugin/src/main/java/org/codehaus/plexus/maven/plugin/application/ApplicationPackagerMojo.java
+++ /dev/null
@@ -1,61 +0,0 @@
-package org.codehaus.plexus.maven.plugin.application;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.apache.maven.plugin.MojoExecutionException;
-import org.codehaus.plexus.builder.application.ApplicationBuilderException;
-
-import java.io.File;
-
-/**
- * @author Trygve Laugstøl
- * @author Jason van Zyl
- * @version $Id$
- * @goal package-app
- * @requiresDependencyResolution
- * @description Packages a Plexus application into a Plexus application archive.
- * @phase package
- */
-public class ApplicationPackagerMojo
- extends AbstractAppServerApplicationMojo
-{
- public void execute()
- throws MojoExecutionException
- {
- try
- {
- File outputFile = new File( target, finalName + ".jar" );
-
- applicationBuilder.bundle( outputFile, applicationAssemblyDirectory );
-
- // TODO: m2 needs a better way to deal with this
- project.getArtifact().setFile( outputFile );
- }
- catch ( ApplicationBuilderException e )
- {
- throw new MojoExecutionException( "Error while bundling appserver.", e );
- }
- }
-}
diff --git a/plexus-appserver/plexus-appserver-maven-plugin/src/main/java/org/codehaus/plexus/maven/plugin/application/ApplicationRuntimePopulatorMojo.java b/plexus-appserver/plexus-appserver-maven-plugin/src/main/java/org/codehaus/plexus/maven/plugin/application/ApplicationRuntimePopulatorMojo.java
deleted file mode 100644
index 1b349ca1a..000000000
--- a/plexus-appserver/plexus-appserver-maven-plugin/src/main/java/org/codehaus/plexus/maven/plugin/application/ApplicationRuntimePopulatorMojo.java
+++ /dev/null
@@ -1,68 +0,0 @@
-package org.codehaus.plexus.maven.plugin.application;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.apache.maven.plugin.MojoExecutionException;
-import org.codehaus.plexus.maven.plugin.AbstractAppServerMojo;
-
-import java.io.File;
-
-/**
- * @author Trygve Laugstøl
- * @author Jason van Zyl
- * @version $Id$
- * @goal add-app
- * @requiresDependencyResolution
- * @phase package
- * @description Adds the Plexus appliction created from this build to a Plexus runtime. This is used
- * when your Plexus runtime is housing the Plexus application created from this build. You
- * typically create the Plexus runtime and the Plexus application in this build. If you are
- * creating a Plexus runtime that houses many applications then you will want to use the add-apps
- * goal.
- */
-public class ApplicationRuntimePopulatorMojo
- extends AbstractAppServerMojo
-{
- public void execute()
- throws MojoExecutionException
- {
- File applicationJarFile = new File( target, finalName + ".jar" );
-
- if ( !applicationJarFile.canRead() )
- {
- throw new MojoExecutionException(
- "Can't read Plexus application artifact '" + applicationJarFile.getAbsolutePath() + "'." );
- }
-
- try
- {
- runtimeBuilder.addPlexusApplication( applicationJarFile, runtimePath );
- }
- catch ( Exception e )
- {
- throw new MojoExecutionException( "Error while building test runtimePath.", e );
- }
- }
-}
diff --git a/plexus-appserver/plexus-appserver-maven-plugin/src/main/java/org/codehaus/plexus/maven/plugin/application/ApplicationsRuntimePopulatorMojo.java b/plexus-appserver/plexus-appserver-maven-plugin/src/main/java/org/codehaus/plexus/maven/plugin/application/ApplicationsRuntimePopulatorMojo.java
deleted file mode 100644
index c4f86ee57..000000000
--- a/plexus-appserver/plexus-appserver-maven-plugin/src/main/java/org/codehaus/plexus/maven/plugin/application/ApplicationsRuntimePopulatorMojo.java
+++ /dev/null
@@ -1,42 +0,0 @@
-package org.codehaus.plexus.maven.plugin.application;
-
-import org.apache.maven.artifact.Artifact;
-import org.apache.maven.plugin.MojoExecutionException;
-import org.codehaus.plexus.maven.plugin.AbstractAppServerMojo;
-
-import java.util.Iterator;
-
-/**
- * @author Trygve Laugstøl
- * @author Jason van Zyl
- * @version $Id$
- * @goal add-apps
- * @requiresDependencyResolution
- * @phase package
- * @description Adds all Plexus applications in the dependencies to the Plexus runtime. This is used when
- * you are generating a Plexus runtime which houses several Plexus applications.
- */
-public class ApplicationsRuntimePopulatorMojo
- extends AbstractAppServerMojo
-{
- public void execute()
- throws MojoExecutionException
- {
- try
- {
- for ( Iterator it = projectArtifacts.iterator(); it.hasNext(); )
- {
- Artifact artifact = (Artifact) it.next();
-
- if ( artifact.getType().equals( "plexus-application" ) )
- {
- runtimeBuilder.addPlexusApplication( artifact.getFile(), runtimePath );
- }
- }
- }
- catch ( Exception e )
- {
- throw new MojoExecutionException( "Error while building test runtimePath.", e );
- }
- }
-}
diff --git a/plexus-appserver/plexus-appserver-maven-plugin/src/main/java/org/codehaus/plexus/maven/plugin/runtime/RuntimeAssemblerMojo.java b/plexus-appserver/plexus-appserver-maven-plugin/src/main/java/org/codehaus/plexus/maven/plugin/runtime/RuntimeAssemblerMojo.java
deleted file mode 100644
index 31ad730ee..000000000
--- a/plexus-appserver/plexus-appserver-maven-plugin/src/main/java/org/codehaus/plexus/maven/plugin/runtime/RuntimeAssemblerMojo.java
+++ /dev/null
@@ -1,103 +0,0 @@
-package org.codehaus.plexus.maven.plugin.runtime;
-
-/*
- * Copyright (c) 2004, Codehaus.org
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.apache.maven.plugin.MojoExecutionException;
-import org.codehaus.plexus.builder.runtime.PlexusRuntimeBuilderException;
-import org.codehaus.plexus.maven.plugin.AbstractAppServerMojo;
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.util.HashSet;
-import java.util.Properties;
-
-/**
- * @author Trygve Laugstøl
- * @author Jason van Zyl
- * @version $Id$
- * @goal assemble-runtime
- * @requiresDependencyResolution
- * @phase package
- * @description Builds plexus containers.
- */
-public class RuntimeAssemblerMojo
- extends AbstractAppServerMojo
-{
- /**
- * @parameter expression="${runtimeConfiguration}"
- * @required
- */
- private File runtimeConfiguration;
-
- /**
- * @parameter expression="${runtimeConfigurationProperties}"
- * @required
- */
- private File runtimeConfigurationProperties;
-
- /**
- * @parameter expression="${additionalCoreArtifacts}"
- */
- private HashSet additionalCoreArtifacts;
-
- /**
- * @parameter expression="${addManagementAgent}"
- */
- private boolean addManagementAgent;
-
- public void execute()
- throws MojoExecutionException
- {
- // ----------------------------------------------------------------------
- //
- // ----------------------------------------------------------------------
-
- Properties interpolationProperties = new Properties();
-
- if ( runtimeConfigurationProperties != null )
- {
- try
- {
- interpolationProperties.load( new FileInputStream( runtimeConfigurationProperties ) );
- }
- catch ( IOException e )
- {
- throw new MojoExecutionException( "Cannot load configuration properties file.", e );
- }
- }
-
- interpolationProperties.putAll( project.getProperties() );
-
- try
- {
- runtimeBuilder.build( runtimePath, remoteRepositories, localRepository, projectArtifacts,
- additionalCoreArtifacts, runtimeConfiguration, interpolationProperties,
- addManagementAgent );
- }
- catch ( PlexusRuntimeBuilderException e )
- {
- throw new MojoExecutionException( "Error while building runtime.", e );
- }
- }
-}
diff --git a/plexus-appserver/plexus-appserver-maven-plugin/src/main/java/org/codehaus/plexus/maven/plugin/service/AbstractAppServerServiceMojo.java b/plexus-appserver/plexus-appserver-maven-plugin/src/main/java/org/codehaus/plexus/maven/plugin/service/AbstractAppServerServiceMojo.java
deleted file mode 100644
index a6780c90b..000000000
--- a/plexus-appserver/plexus-appserver-maven-plugin/src/main/java/org/codehaus/plexus/maven/plugin/service/AbstractAppServerServiceMojo.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package org.codehaus.plexus.maven.plugin.service;
-
-import org.codehaus.plexus.builder.service.ServiceBuilder;
-import org.codehaus.plexus.maven.plugin.AbstractAppServerMojo;
-
-import java.io.File;
-
-/**
- * @author Jason van Zyl
- */
-public abstract class AbstractAppServerServiceMojo
- extends AbstractAppServerMojo
-{
- /**
- * @parameter expression="${project.build.directory}/plexus-service"
- * @required
- */
- protected File serviceAssemblyDirectory;
-
- /**
- * @parameter expression="${component.org.codehaus.plexus.builder.service.ServiceBuilder}"
- * @required
- */
- protected ServiceBuilder builder;
-
-}
diff --git a/plexus-appserver/plexus-appserver-maven-plugin/src/main/java/org/codehaus/plexus/maven/plugin/service/ServiceAssemblerMojo.java b/plexus-appserver/plexus-appserver-maven-plugin/src/main/java/org/codehaus/plexus/maven/plugin/service/ServiceAssemblerMojo.java
deleted file mode 100644
index e9acbdf91..000000000
--- a/plexus-appserver/plexus-appserver-maven-plugin/src/main/java/org/codehaus/plexus/maven/plugin/service/ServiceAssemblerMojo.java
+++ /dev/null
@@ -1,115 +0,0 @@
-package org.codehaus.plexus.maven.plugin.service;
-
-/*
- * Copyright (c) 2004, Codehaus.org
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.apache.maven.plugin.MojoExecutionException;
-import org.codehaus.plexus.builder.service.ServiceBuilderException;
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.util.Properties;
-
-/**
- * @author Trygve Laugstøl
- * @author Jason van Zyl
- * @version $Id$
- * @goal assemble-service
- * @requiresDependencyResolution
- * @requiresProject
- * @description Assembled and bundles a Plexus service.
- * @phase package
- */
-public class ServiceAssemblerMojo
- extends AbstractAppServerServiceMojo
-{
- /**
- * @parameter expression="${serviceName}"
- * @required
- */
- private String serviceName;
-
- /**
- * @parameter expression="${serviceConfiguration}"
- * @required
- */
- private File serviceConfiguration;
-
- /**
- * @parameter expression="${configurationsDirectory}"
- */
- private File configurationsDirectory;
-
- /**
- * @parameter expression="${configurationProperties}"
- */
- private File configurationProperties;
-
- public void execute()
- throws MojoExecutionException
- {
- // ----------------------------------------------------------------------
- //
- // ----------------------------------------------------------------------
-
- File outputFile = new File( target, finalName + ".sar" );
-
- File serviceJar = new File( target, finalName + ".jar" );
-
- // ----------------------------------------------------------------------
- // Build the service
- // ----------------------------------------------------------------------
-
- Properties interpolationProperties = new Properties();
-
- if ( configurationProperties != null )
- {
- try
- {
- interpolationProperties.load( new FileInputStream( configurationProperties ) );
- }
- catch ( IOException e )
- {
- throw new MojoExecutionException( "Cannot load configuration properties file.", e );
- }
- }
-
- try
- {
- builder.build( serviceName, serviceAssemblyDirectory, serviceJar, remoteRepositories, localRepository,
- projectArtifacts, serviceConfiguration, configurationsDirectory, interpolationProperties );
-
- // ----------------------------------------------------------------------
- // Bundle the service
- // ----------------------------------------------------------------------
-
- builder.bundle( outputFile, serviceAssemblyDirectory );
- }
- catch ( ServiceBuilderException e )
- {
- throw new MojoExecutionException( "Error while making service.", e );
- }
-
- project.getArtifact().setFile( outputFile );
- }
-}
diff --git a/plexus-appserver/plexus-appserver-maven-plugin/src/main/java/org/codehaus/plexus/maven/plugin/service/ServicePackagerMojo.java b/plexus-appserver/plexus-appserver-maven-plugin/src/main/java/org/codehaus/plexus/maven/plugin/service/ServicePackagerMojo.java
deleted file mode 100644
index ced9d7f19..000000000
--- a/plexus-appserver/plexus-appserver-maven-plugin/src/main/java/org/codehaus/plexus/maven/plugin/service/ServicePackagerMojo.java
+++ /dev/null
@@ -1,37 +0,0 @@
-package org.codehaus.plexus.maven.plugin.service;
-
-import org.apache.maven.plugin.MojoExecutionException;
-import org.codehaus.plexus.builder.service.ServiceBuilderException;
-
-import java.io.File;
-
-/**
- * @author Trygve Laugstøl
- * @author Jason van Zyl
- * @version $Id$
- * @goal package-service
- * @requiresDependencyResolution
- * @requiresProject
- * @description Assembled and bundles a Plexus service.
- * @phase package
- */
-public class ServicePackagerMojo
- extends AbstractAppServerServiceMojo
-{
- public void execute()
- throws MojoExecutionException
- {
- File outputFile = new File( target, finalName + ".sar" );
-
- try
- {
- builder.bundle( outputFile, serviceAssemblyDirectory );
- }
- catch ( ServiceBuilderException e )
- {
- throw new MojoExecutionException( "Error while making service.", e );
- }
-
- project.getArtifact().setFile( outputFile );
- }
-}
diff --git a/plexus-appserver/plexus-appserver-maven-plugin/src/main/java/org/codehaus/plexus/maven/plugin/service/ServicesRuntimePopulatorMojo.java b/plexus-appserver/plexus-appserver-maven-plugin/src/main/java/org/codehaus/plexus/maven/plugin/service/ServicesRuntimePopulatorMojo.java
deleted file mode 100644
index f3739a9a5..000000000
--- a/plexus-appserver/plexus-appserver-maven-plugin/src/main/java/org/codehaus/plexus/maven/plugin/service/ServicesRuntimePopulatorMojo.java
+++ /dev/null
@@ -1,64 +0,0 @@
-package org.codehaus.plexus.maven.plugin.service;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.apache.maven.artifact.Artifact;
-import org.apache.maven.plugin.MojoExecutionException;
-
-import java.util.Iterator;
-
-/**
- * @author Trygve Laugstøl
- * @author Jason van Zyl
- * @version $Id$
- * @goal add-services
- * @requiresDependencyResolution
- * @phase package
- * @description Adds all Plexus services in the artifact list to the runtime
- */
-public class ServicesRuntimePopulatorMojo
- extends AbstractAppServerServiceMojo
-{
- public void execute()
- throws MojoExecutionException
- {
- try
- {
- for ( Iterator it = projectArtifacts.iterator(); it.hasNext(); )
- {
- Artifact artifact = (Artifact) it.next();
-
- if ( artifact.getType().equals( "plexus-service" ) )
- {
- runtimeBuilder.addPlexusService( artifact.getFile(), runtimePath );
- }
- }
- }
- catch ( Exception e )
- {
- throw new MojoExecutionException( "Error while building test runtimePath.", e );
- }
- }
-}
diff --git a/plexus-appserver/plexus-appserver-maven-plugin/src/main/resources/META-INF/plexus/components.xml b/plexus-appserver/plexus-appserver-maven-plugin/src/main/resources/META-INF/plexus/components.xml
deleted file mode 100644
index be832ab4b..000000000
--- a/plexus-appserver/plexus-appserver-maven-plugin/src/main/resources/META-INF/plexus/components.xml
+++ /dev/null
@@ -1,67 +0,0 @@
-
-
-
- org.apache.maven.lifecycle.mapping.LifecycleMapping
- plexus-application
- org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping
-
-
-
-
- org.codehaus.plexus:plexus-appserver-maven-plugin:assemble-app,
- org.codehaus.plexus:plexus-appserver-maven-plugin:package-app
- org.apache.maven.plugins:maven-install-plugin:install
- org.apache.maven.plugins:maven-deploy-plugin:deploy
-
-
-
-
-
-
- org.apache.maven.lifecycle.mapping.LifecycleMapping
- plexus-service
- org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping
-
-
-
- org.apache.maven.plugins:maven-resources-plugin:resources
- org.apache.maven.plugins:maven-compiler-plugin:compile
- org.apache.maven.plugins:maven-resources-plugin:testResources
- org.apache.maven.plugins:maven-compiler-plugin:testCompile
- org.apache.maven.plugins:maven-surefire-plugin:test
-
- org.apache.maven.plugins:maven-jar-plugin:jar,
- org.codehaus.plexus:plexus-appserver-maven-plugin:assemble-service,
- org.codehaus.plexus:plexus-appserver-maven-plugin:package-service,
-
- org.apache.maven.plugins:maven-install-plugin:install
- org.apache.maven.plugins:maven-deploy-plugin:deploy
-
-
-
-
-
-
-
- org.apache.maven.artifact.handler.ArtifactHandler
- plexus-service
- org.apache.maven.artifact.handler.DefaultArtifactHandler
-
- plexus-service
- sar
- plexus-service
-
-
-
-
- org.apache.maven.artifact.handler.ArtifactHandler
- plexus-application
- org.apache.maven.artifact.handler.DefaultArtifactHandler
-
- plexus-application
- jar
- plexus-application
-
-
-
-
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-common/pom.xml b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-common/pom.xml
deleted file mode 100644
index 4922bd05c..000000000
--- a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-common/pom.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
- org.codehaus.plexus
- plexus-appserver-runtime-booters
- 2.0-alpha-3-SNAPSHOT
-
- 4.0.0
- plexus-appserver-runtime-booter-common
- Plexus App Server Common Runtime Booter
-
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-common/src/main/java/org/codehaus/plexus/builder/runtime/AbstractPlexusRuntimeBootloaderGenerator.java b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-common/src/main/java/org/codehaus/plexus/builder/runtime/AbstractPlexusRuntimeBootloaderGenerator.java
deleted file mode 100644
index 02960517f..000000000
--- a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-common/src/main/java/org/codehaus/plexus/builder/runtime/AbstractPlexusRuntimeBootloaderGenerator.java
+++ /dev/null
@@ -1,316 +0,0 @@
-package org.codehaus.plexus.builder.runtime;
-
-/*
- * Copyright (c) 2004, Codehaus.org
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.apache.velocity.VelocityContext;
-import org.apache.velocity.exception.ResourceNotFoundException;
-import org.codehaus.plexus.logging.AbstractLogEnabled;
-import org.codehaus.plexus.util.FileUtils;
-import org.codehaus.plexus.util.IOUtil;
-import org.codehaus.plexus.util.InterpolationFilterReader;
-import org.codehaus.plexus.util.Os;
-import org.codehaus.plexus.util.StringUtils;
-import org.codehaus.plexus.util.cli.CommandLineException;
-import org.codehaus.plexus.util.cli.Commandline;
-import org.codehaus.plexus.velocity.VelocityComponent;
-
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
-import java.io.FileReader;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.io.OutputStream;
-import java.io.Reader;
-import java.io.StringReader;
-import java.io.StringWriter;
-import java.io.Writer;
-import java.io.FileNotFoundException;
-import java.util.Map;
-import java.util.Properties;
-
-/**
- * @author Jason van Zyl
- * @version $Id$
- */
-public abstract class AbstractPlexusRuntimeBootloaderGenerator
- extends AbstractLogEnabled
- implements PlexusRuntimeBootloaderGenerator
-{
- private final static String CLASSWORLDS_TEMPLATE = "org/codehaus/plexus/builder/templates/classworlds.vm";
-
- private static final String PROPERTY_APP_NAME = "app.name";
-
- private static final String PROPERTY_APP_LONG_NAME = "app.long.name";
-
- private static final String PROPERTY_APP_DESCRIPTION = "app.description";
-
- /**
- * @requirement
- */
- protected VelocityComponent velocity;
-
- protected void executable( File file )
- throws PlexusRuntimeBootloaderGeneratorException
- {
- if ( Os.isFamily( "unix" ) )
- {
- Commandline cli = new Commandline();
-
- cli.setExecutable( "chmod" );
-
- cli.createArgument().setValue( "+x" );
-
- cli.createArgument().setValue( file.getAbsolutePath() );
-
- try
- {
- cli.execute();
- }
- catch ( CommandLineException e )
- {
- throw new PlexusRuntimeBootloaderGeneratorException( "Error executing command line.", e );
- }
- }
- }
-
- protected File mkdirs( File directory )
- throws PlexusRuntimeBootloaderGeneratorException
- {
- if ( !directory.exists() )
- {
- if ( !directory.mkdirs() )
- {
- throw new PlexusRuntimeBootloaderGeneratorException(
- "Could not make directories '" + directory.getAbsolutePath() + "'." );
- }
- }
-
- return directory;
- }
-
- protected InputStream getResourceAsStream( String resource )
- throws PlexusRuntimeBootloaderGeneratorException
- {
- InputStream is = getClass().getClassLoader().getResourceAsStream( resource );
-
- if ( is == null )
- {
- throw new PlexusRuntimeBootloaderGeneratorException( "Could not find resource '" + resource + "'." );
- }
-
- return is;
- }
-
- // ----------------------------------------------------------------------
- //
- // ----------------------------------------------------------------------
-
- protected void filterCopy( File in,
- File out,
- Map map )
- throws PlexusRuntimeBootloaderGeneratorException
- {
- try
- {
- filterCopy( new FileReader( in ), out, map );
- }
- catch ( FileNotFoundException e )
- {
- throw new PlexusRuntimeBootloaderGeneratorException( "Error copying resource.", e );
- }
- }
-
- protected void filterCopy( InputStream in,
- File out,
- Map map )
- throws PlexusRuntimeBootloaderGeneratorException
- {
- filterCopy( new InputStreamReader( in ), out, map );
- }
-
- protected void filterCopy( Reader in,
- File out,
- Map map )
- throws PlexusRuntimeBootloaderGeneratorException
- {
- InterpolationFilterReader reader = new InterpolationFilterReader( in, map, "@", "@" );
-
- try
- {
- Writer writer = new FileWriter( out );
-
- IOUtil.copy( reader, writer );
-
- writer.close();
- }
- catch ( IOException e )
- {
- throw new PlexusRuntimeBootloaderGeneratorException( "Error copying resource.", e );
- }
- }
-
- protected void copyResource( String filename,
- String resource,
- boolean makeExecutable,
- File basedir )
- throws PlexusRuntimeBootloaderGeneratorException
- {
- File target = new File( basedir, filename );
-
- try
- {
- copyResourceToFile( resource, target );
-
- if ( makeExecutable )
- {
- executable( target );
- }
- }
- catch ( Exception e )
- {
- throw new PlexusRuntimeBootloaderGeneratorException( "Error copying resource.", e );
- }
- }
-
- protected void copyResourceToFile( String resource,
- File target )
- throws PlexusRuntimeBootloaderGeneratorException
- {
- try
- {
- InputStream is = getResourceAsStream( resource );
-
- mkdirs( target.getParentFile() );
-
- OutputStream os = new FileOutputStream( target );
-
- IOUtil.copy( is, os );
-
- IOUtil.close( is );
-
- IOUtil.close( os );
- }
- catch ( Exception e )
- {
- throw new PlexusRuntimeBootloaderGeneratorException( "Error copying resource.", e );
- }
- }
-
- // ----------------------------------------------------------------------
- //
- // ----------------------------------------------------------------------
-
- private Properties loadConfigurationProperties( File configurationPropertiesFile )
- throws IOException, PlexusRuntimeBootloaderGeneratorException
- {
- Properties properties = new Properties();
-
- if ( configurationPropertiesFile == null )
- {
- throw new PlexusRuntimeBootloaderGeneratorException(
- "The runtime builder requires a configurator properties file." );
- }
-
- properties.load( new FileInputStream( configurationPropertiesFile ) );
-
- // ----------------------------------------------------------------------
- // Validate that some required properties are present
- // ----------------------------------------------------------------------
-
- assertHasProperty( properties, PROPERTY_APP_NAME );
-
- assertHasProperty( properties, PROPERTY_APP_LONG_NAME );
-
- assertHasProperty( properties, PROPERTY_APP_DESCRIPTION );
-
- return properties;
- }
-
- private void assertHasProperty( Properties properties,
- String key )
- throws PlexusRuntimeBootloaderGeneratorException
- {
- if ( StringUtils.isEmpty( properties.getProperty( key ) ) )
- {
- throw new PlexusRuntimeBootloaderGeneratorException( "Missing configurator property '" + key + "'." );
- }
- }
-
- // ----------------------------------------------------------------------
- // Velocity methods
- // ----------------------------------------------------------------------
-
- protected void mergeTemplate( String templateName,
- File outputFileName,
- boolean dos )
- throws PlexusRuntimeBootloaderGeneratorException
- {
- StringWriter buffer = new StringWriter( 100 * FileUtils.ONE_KB );
-
- try
- {
- velocity.getEngine().mergeTemplate( templateName, new VelocityContext(), buffer );
- }
- catch ( ResourceNotFoundException ex )
- {
- throw new PlexusRuntimeBootloaderGeneratorException( "Missing Velocity template: '" + templateName + "'.",
- ex );
- }
- catch ( Exception ex )
- {
- throw new PlexusRuntimeBootloaderGeneratorException( "Exception merging the velocity template.", ex );
- }
-
- try
- {
-
- FileOutputStream output = new FileOutputStream( outputFileName );
-
- BufferedReader reader = new BufferedReader( new StringReader( buffer.toString() ) );
-
- String line;
-
- while ( ( line = reader.readLine() ) != null )
- {
- output.write( line.getBytes() );
-
- if ( dos )
- {
- output.write( '\r' );
- }
-
- output.write( '\n' );
- }
-
- output.close();
- }
- catch ( IOException e )
- {
- throw new PlexusRuntimeBootloaderGeneratorException( "Error merging template.", e );
- }
- }
-}
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-common/src/main/java/org/codehaus/plexus/builder/runtime/PlexusRuntimeBootloaderGenerator.java b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-common/src/main/java/org/codehaus/plexus/builder/runtime/PlexusRuntimeBootloaderGenerator.java
deleted file mode 100644
index 0fa579ab1..000000000
--- a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-common/src/main/java/org/codehaus/plexus/builder/runtime/PlexusRuntimeBootloaderGenerator.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package org.codehaus.plexus.builder.runtime;
-
-/*
- * Copyright (c) 2004, Codehaus.org
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import java.io.File;
-import java.util.Properties;
-
-/**
- * @author Jason van Zyl
- * @version $Id$
- */
-public interface PlexusRuntimeBootloaderGenerator
-{
- String ROLE = PlexusRuntimeBootloaderGenerator.class.getName();
-
- void generate( File outputDirectory, Properties configurationProperties )
- throws PlexusRuntimeBootloaderGeneratorException;
-}
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-common/src/main/java/org/codehaus/plexus/builder/runtime/PlexusRuntimeBootloaderGeneratorException.java b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-common/src/main/java/org/codehaus/plexus/builder/runtime/PlexusRuntimeBootloaderGeneratorException.java
deleted file mode 100644
index 6a3a76214..000000000
--- a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-common/src/main/java/org/codehaus/plexus/builder/runtime/PlexusRuntimeBootloaderGeneratorException.java
+++ /dev/null
@@ -1,42 +0,0 @@
-package org.codehaus.plexus.builder.runtime;
-
-/*
- * Copyright (c) 2004, Codehaus.org
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-/**
- * @author Jason van Zyl
- * @author Trygve Laugstøl
- * @version $Id$
- */
-public class PlexusRuntimeBootloaderGeneratorException
- extends Exception
-{
- public PlexusRuntimeBootloaderGeneratorException( String msg )
- {
- super( msg );
- }
-
- public PlexusRuntimeBootloaderGeneratorException( String msg, Throwable cause )
- {
- super( msg, cause );
- }
-}
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/pom.xml b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/pom.xml
deleted file mode 100644
index 9a65c6eb4..000000000
--- a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/pom.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
- org.codehaus.plexus
- plexus-appserver-runtime-booters
- 2.0-alpha-3-SNAPSHOT
-
- 4.0.0
- plexus-appserver-runtime-booter-jsw
- Plexus App Server JSW Booter
- Plexus App Server Tools for creating application bundles, services bundles and server runtimes.
-
-
-
- org.codehaus.plexus
- plexus-appserver-runtime-booter-common
-
-
-
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/java/org/codehaus/plexus/builder/runtime/JswPlexusRuntimeBootloaderGenerator.java b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/java/org/codehaus/plexus/builder/runtime/JswPlexusRuntimeBootloaderGenerator.java
deleted file mode 100644
index 851cf7a23..000000000
--- a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/java/org/codehaus/plexus/builder/runtime/JswPlexusRuntimeBootloaderGenerator.java
+++ /dev/null
@@ -1,60 +0,0 @@
-package org.codehaus.plexus.builder.runtime;
-
-/*
- * Copyright (c) 2004, Codehaus.org
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.codehaus.plexus.builder.runtime.platform.PlatformGenerator;
-
-import java.io.File;
-import java.util.Map;
-import java.util.Properties;
-
-/**
- * @author Jason van Zyl
- * @author Trygve Laugstøl
- */
-public class JswPlexusRuntimeBootloaderGenerator
- extends AbstractPlexusRuntimeBootloaderGenerator
-{
- private static String JSW = "jsw";
-
- private Map platformGenerators;
-
- public void generate( File outputDirectory, Properties configurationProperties )
- throws PlexusRuntimeBootloaderGeneratorException
- {
- // ----------------------------------------------------------------------------
- // Look up the appropriate generator
- // ----------------------------------------------------------------------------
-
- //TODO will need a generator context as i need more then properties.
-
- PlatformGenerator generator = (PlatformGenerator) platformGenerators.get( "" );
-
- // ----------------------------------------------------------------------------
- // The wrapper.jar and wrapper.conf can be dealt with here because these
- // two bits are common to all the JSW runtime booters.
- // ----------------------------------------------------------------------------
-
- copyResourceToFile( JSW + "/wrapper.jar", new File( outputDirectory, "boot/wrapper.jar" ) );
- }
-}
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/META-INF/plexus/components.xml b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/META-INF/plexus/components.xml
deleted file mode 100644
index 84e2a60a2..000000000
--- a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/META-INF/plexus/components.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
- org.codehaus.plexus.builder.runtime.PlexusRuntimeBootloaderGenerator
- jsw
- org.codehaus.plexus.builder.runtime.JswPlexusRuntimeBootloaderGenerator
-
-
-
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/README.txt b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/README.txt
deleted file mode 100644
index b93af0051..000000000
--- a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/README.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-The directory structures here are copies verbatim of the tarballs/zips
-provided by the project. I would eventually like to be able to pull them from
-the repository. The only change here is putting the common platform
-independent files in a commons directory. Eventually this will be a
-platform neutral mechanism but is specific to plexus right now.
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-common-32-3.2.0/src/bin/sh.script.in b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-common-32-3.2.0/src/bin/sh.script.in
deleted file mode 100644
index 754dab646..000000000
--- a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-common-32-3.2.0/src/bin/sh.script.in
+++ /dev/null
@@ -1,530 +0,0 @@
-#! /bin/sh
-
-#
-# Copyright (c) 1999, 2006 Tanuki Software Inc.
-#
-# Java Service Wrapper sh script. Suitable for starting and stopping
-# wrapped Java applications on UNIX platforms.
-#
-
-#-----------------------------------------------------------------------------
-# These settings can be modified to fit the needs of your application
-
-# Application
-APP_NAME="@app.name@"
-APP_LONG_NAME="@app.long.name@"
-
-# Wrapper
-WRAPPER_CMD="./wrapper"
-WRAPPER_CONF="../conf/wrapper.conf"
-
-# Priority at which to run the wrapper. See "man nice" for valid priorities.
-# nice is only used if a priority is specified.
-PRIORITY=
-
-# Location of the pid file.
-PIDDIR="."
-
-# If uncommented, causes the Wrapper to be shutdown using an anchor file.
-# When launched with the 'start' command, it will also ignore all INT and
-# TERM signals.
-#IGNORE_SIGNALS=true
-
-# If specified, the Wrapper will be run as the specified user.
-# IMPORTANT - Make sure that the user has the required privileges to write
-# the PID file and wrapper.log files. Failure to be able to write the log
-# file will cause the Wrapper to exit without any way to write out an error
-# message.
-# NOTE - This will set the user which is used to run the Wrapper as well as
-# the JVM and is not useful in situations where a privileged resource or
-# port needs to be allocated prior to the user being changed.
-#RUN_AS_USER=
-
-# The following two lines are used by the chkconfig command. Change as is
-# appropriate for your application. They should remain commented.
-# chkconfig: 2345 20 80
-# description: @app.long.name@
-
-# Do not modify anything beyond this point
-#-----------------------------------------------------------------------------
-
-# Get the fully qualified path to the script
-case $0 in
- /*)
- SCRIPT="$0"
- ;;
- *)
- PWD=`pwd`
- SCRIPT="$PWD/$0"
- ;;
-esac
-
-# Resolve the true real path without any sym links.
-CHANGED=true
-while [ "X$CHANGED" != "X" ]
-do
- # Change spaces to ":" so the tokens can be parsed.
- SCRIPT=`echo $SCRIPT | sed -e 's; ;:;g'`
- # Get the real path to this script, resolving any symbolic links
- TOKENS=`echo $SCRIPT | sed -e 's;/; ;g'`
- REALPATH=
- for C in $TOKENS; do
- REALPATH="$REALPATH/$C"
- while [ -h "$REALPATH" ] ; do
- LS="`ls -ld "$REALPATH"`"
- LINK="`expr "$LS" : '.*-> \(.*\)$'`"
- if expr "$LINK" : '/.*' > /dev/null; then
- REALPATH="$LINK"
- else
- REALPATH="`dirname "$REALPATH"`""/$LINK"
- fi
- done
- done
- # Change ":" chars back to spaces.
- REALPATH=`echo $REALPATH | sed -e 's;:; ;g'`
-
- if [ "$REALPATH" = "$SCRIPT" ]
- then
- CHANGED=""
- else
- SCRIPT="$REALPATH"
- fi
-done
-
-# Change the current directory to the location of the script
-cd "`dirname "$REALPATH"`"
-REALDIR=`pwd`
-
-# If the PIDDIR is relative, set its value relative to the full REALPATH to avoid problems if
-# the working directory is later changed.
-FIRST_CHAR=`echo $PIDDIR | cut -c1,1`
-if [ "$FIRST_CHAR" != "/" ]
-then
- PIDDIR=$REALDIR/$PIDDIR
-fi
-# Same test for WRAPPER_CMD
-FIRST_CHAR=`echo $WRAPPER_CMD | cut -c1,1`
-if [ "$FIRST_CHAR" != "/" ]
-then
- WRAPPER_CMD=$REALDIR/$WRAPPER_CMD
-fi
-# Same test for WRAPPER_CONF
-FIRST_CHAR=`echo $WRAPPER_CONF | cut -c1,1`
-if [ "$FIRST_CHAR" != "/" ]
-then
- WRAPPER_CONF=$REALDIR/$WRAPPER_CONF
-fi
-
-# Process ID
-ANCHORFILE="$PIDDIR/$APP_NAME.anchor"
-PIDFILE="$PIDDIR/$APP_NAME.pid"
-LOCKDIR="/var/lock/subsys"
-LOCKFILE="$LOCKDIR/$APP_NAME"
-pid=""
-
-# Resolve the location of the 'ps' command
-PSEXE="/usr/bin/ps"
-if [ ! -x $PSEXE ]
-then
- PSEXE="/bin/ps"
- if [ ! -x $PSEXE ]
- then
- echo "Unable to locate 'ps'."
- echo "Please report this message along with the location of the command on your system."
- exit 1
- fi
-fi
-
-# Resolve the os
-DIST_OS=`uname -s | tr [:upper:] [:lower:] | tr -d [:blank:]`
-case "$DIST_OS" in
- 'sunos')
- DIST_OS="solaris"
- ;;
- 'hp-ux' | 'hp-ux64')
- DIST_OS="hpux"
- ;;
- 'darwin')
- DIST_OS="macosx"
- ;;
- 'unix_sv')
- DIST_OS="unixware"
- ;;
-esac
-
-# Resolve the architecture
-DIST_ARCH=`uname -p | tr [:upper:] [:lower:] | tr -d [:blank:]`
-if [ "$DIST_ARCH" = "unknown" ]
-then
- DIST_ARCH=`uname -m | tr [:upper:] [:lower:] | tr -d [:blank:]`
-fi
-case "$DIST_ARCH" in
- 'amd64' | 'ia32' | 'ia64' | 'i386' | 'i486' | 'i586' | 'i686' | 'x86_64')
- DIST_ARCH="x86"
- ;;
- 'ip27')
- DIST_ARCH="mips"
- ;;
- 'power' | 'powerpc' | 'power_pc' | 'ppc64')
- DIST_ARCH="ppc"
- ;;
- 'pa_risc' | 'pa-risc')
- DIST_ARCH="parisc"
- ;;
- 'sun4u' | 'sparcv9')
- DIST_ARCH="sparc"
- ;;
- '9000/800')
- DIST_ARCH="parisc"
- ;;
-esac
-
-# Decide on the wrapper binary to use.
-# If a 32-bit wrapper binary exists then it will work on 32 or 64 bit
-# platforms, if the 64-bit binary exists then the distribution most
-# likely wants to use long names. Otherwise, look for the default.
-# For macosx, we also want to look for universal binaries.
-WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-32"
-if [ -x $WRAPPER_TEST_CMD ]
-then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
-else
- if [ "$DIST_OS" = "macosx" ]
- then
- WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-universal-32"
- if [ -x $WRAPPER_TEST_CMD ]
- then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
- else
- WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-64"
- if [ -x $WRAPPER_TEST_CMD ]
- then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
- else
- WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-universal-64"
- if [ -x $WRAPPER_TEST_CMD ]
- then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
- else
- if [ ! -x $WRAPPER_CMD ]
- then
- echo "Unable to locate any of the following binaries:"
- echo " $WRAPPER_CMD-$DIST_OS-$DIST_ARCH-32"
- echo " $WRAPPER_CMD-$DIST_OS-universal-32"
- echo " $WRAPPER_CMD-$DIST_OS-$DIST_ARCH-64"
- echo " $WRAPPER_CMD-$DIST_OS-universal-64"
- echo " $WRAPPER_CMD"
- exit 1
- fi
- fi
- fi
- fi
- else
- WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-64"
- if [ -x $WRAPPER_TEST_CMD ]
- then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
- else
- if [ ! -x $WRAPPER_CMD ]
- then
- echo "Unable to locate any of the following binaries:"
- echo " $WRAPPER_CMD-$DIST_OS-$DIST_ARCH-32"
- echo " $WRAPPER_CMD-$DIST_OS-$DIST_ARCH-64"
- echo " $WRAPPER_CMD"
- exit 1
- fi
- fi
- fi
-fi
-
-# Build the nice clause
-if [ "X$PRIORITY" = "X" ]
-then
- CMDNICE=""
-else
- CMDNICE="nice -$PRIORITY"
-fi
-
-# Build the anchor file clause.
-if [ "X$IGNORE_SIGNALS" = "X" ]
-then
- ANCHORPROP=
- IGNOREPROP=
-else
- ANCHORPROP=wrapper.anchorfile=$ANCHORFILE
- IGNOREPROP=wrapper.ignore_signals=TRUE
-fi
-
-# Build the lock file clause. Only create a lock file if the lock directory exists on this platform.
-if [ -d $LOCKDIR ]
-then
- LOCKPROP=wrapper.lockfile=$LOCKFILE
-else
- LOCKPROP=
-fi
-
-checkUser() {
- # Check the configured user. If necessary rerun this script as the desired user.
- if [ "X$RUN_AS_USER" != "X" ]
- then
- # Resolve the location of the 'id' command
- IDEXE="/usr/xpg4/bin/id"
- if [ ! -x $IDEXE ]
- then
- IDEXE="/usr/bin/id"
- if [ ! -x $IDEXE ]
- then
- echo "Unable to locate 'id'."
- echo "Please report this message along with the location of the command on your system."
- exit 1
- fi
- fi
-
- if [ "`$IDEXE -u -n`" = "$RUN_AS_USER" ]
- then
- # Already running as the configured user. Avoid password prompts by not calling su.
- RUN_AS_USER=""
- fi
- fi
- if [ "X$RUN_AS_USER" != "X" ]
- then
- # If LOCKPROP and $RUN_AS_USER are defined then the new user will most likely not be
- # able to create the lock file. The Wrapper will be able to update this file once it
- # is created but will not be able to delete it on shutdown. If $2 is defined then
- # the lock file should be created for the current command
- if [ "X$LOCKPROP" != "X" ]
- then
- if [ "X$2" != "X" ]
- then
- # Resolve the primary group
- RUN_AS_GROUP=`groups $RUN_AS_USER | awk '{print $3}' | tail -1`
- if [ "X$RUN_AS_GROUP" = "X" ]
- then
- RUN_AS_GROUP=RUN_AS_USER
- fi
- touch $LOCKFILE
- chown $RUN_AS_USER:$RUN_AS_GROUP $LOCKFILE
- fi
- fi
-
- # Still want to change users, recurse. This means that the user will only be
- # prompted for a password once.
- su -m $RUN_AS_USER -c "$REALPATH $1"
-
- # Now that we are the original user again, we may need to clean up the lock file.
- if [ "X$LOCKPROP" != "X" ]
- then
- getpid
- if [ "X$pid" = "X" ]
- then
- # Wrapper is not running so make sure the lock file is deleted.
- if [ -f $LOCKFILE ]
- then
- rm $LOCKFILE
- fi
- fi
- fi
-
- exit 0
- fi
-}
-
-getpid() {
- if [ -f $PIDFILE ]
- then
- if [ -r $PIDFILE ]
- then
- pid=`cat $PIDFILE`
- if [ "X$pid" != "X" ]
- then
- # It is possible that 'a' process with the pid exists but that it is not the
- # correct process. This can happen in a number of cases, but the most
- # common is during system startup after an unclean shutdown.
- # The ps statement below looks for the specific wrapper command running as
- # the pid. If it is not found then the pid file is considered to be stale.
- pidtest=`$PSEXE -p $pid -o args | grep $WRAPPER_CMD | tail -1`
- if [ "X$pidtest" = "X" ]
- then
- # This is a stale pid file.
- rm -f $PIDFILE
- echo "Removed stale pid file: $PIDFILE"
- pid=""
- fi
- fi
- else
- echo "Cannot read $PIDFILE."
- exit 1
- fi
- fi
-}
-
-testpid() {
- pid=`$PSEXE -p $pid | grep $pid | grep -v grep | awk '{print $1}' | tail -1`
- if [ "X$pid" = "X" ]
- then
- # Process is gone so remove the pid file.
- rm -f $PIDFILE
- pid=""
- fi
-}
-
-console() {
- echo "Running $APP_LONG_NAME..."
- getpid
- if [ "X$pid" = "X" ]
- then
- COMMAND_LINE="$CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.syslog.ident=$APP_NAME wrapper.pidfile=$PIDFILE $ANCHORPROP $LOCKPROP"
- exec $COMMAND_LINE
- else
- echo "$APP_LONG_NAME is already running."
- exit 1
- fi
-}
-
-start() {
- echo "Starting $APP_LONG_NAME..."
- getpid
- if [ "X$pid" = "X" ]
- then
- COMMAND_LINE="$CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.syslog.ident=$APP_NAME wrapper.pidfile=$PIDFILE wrapper.daemonize=TRUE $ANCHORPROP $IGNOREPROP $LOCKPROP"
- exec $COMMAND_LINE
- else
- echo "$APP_LONG_NAME is already running."
- exit 1
- fi
-}
-
-stopit() {
- echo "Stopping $APP_LONG_NAME..."
- getpid
- if [ "X$pid" = "X" ]
- then
- echo "$APP_LONG_NAME was not running."
- else
- if [ "X$IGNORE_SIGNALS" = "X" ]
- then
- # Running so try to stop it.
- kill $pid
- if [ $? -ne 0 ]
- then
- # An explanation for the failure should have been given
- echo "Unable to stop $APP_LONG_NAME."
- exit 1
- fi
- else
- rm -f $ANCHORFILE
- if [ -f $ANCHORFILE ]
- then
- # An explanation for the failure should have been given
- echo "Unable to stop $APP_LONG_NAME."
- exit 1
- fi
- fi
-
- # We can not predict how long it will take for the wrapper to
- # actually stop as it depends on settings in wrapper.conf.
- # Loop until it does.
- savepid=$pid
- CNT=0
- TOTCNT=0
- while [ "X$pid" != "X" ]
- do
- # Show a waiting message every 5 seconds.
- if [ "$CNT" -lt "5" ]
- then
- CNT=`expr $CNT + 1`
- else
- echo "Waiting for $APP_LONG_NAME to exit..."
- CNT=0
- fi
- TOTCNT=`expr $TOTCNT + 1`
-
- sleep 1
-
- testpid
- done
-
- pid=$savepid
- testpid
- if [ "X$pid" != "X" ]
- then
- echo "Failed to stop $APP_LONG_NAME."
- exit 1
- else
- echo "Stopped $APP_LONG_NAME."
- fi
- fi
-}
-
-status() {
- getpid
- if [ "X$pid" = "X" ]
- then
- echo "$APP_LONG_NAME is not running."
- exit 1
- else
- echo "$APP_LONG_NAME is running ($pid)."
- exit 0
- fi
-}
-
-dump() {
- echo "Dumping $APP_LONG_NAME..."
- getpid
- if [ "X$pid" = "X" ]
- then
- echo "$APP_LONG_NAME was not running."
-
- else
- kill -3 $pid
-
- if [ $? -ne 0 ]
- then
- echo "Failed to dump $APP_LONG_NAME."
- exit 1
- else
- echo "Dumped $APP_LONG_NAME."
- fi
- fi
-}
-
-case "$1" in
-
- 'console')
- checkUser $1 touchlock
- console
- ;;
-
- 'start')
- checkUser $1 touchlock
- start
- ;;
-
- 'stop')
- checkUser $1
- stopit
- ;;
-
- 'restart')
- checkUser $1 touchlock
- stopit
- start
- ;;
-
- 'status')
- checkUser $1
- status
- ;;
-
- 'dump')
- checkUser $1
- dump
- ;;
-
- *)
- echo "Usage: $0 { console | start | stop | restart | status | dump }"
- exit 1
- ;;
-esac
-
-exit 0
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-common-32-3.2.0/src/conf/wrapper.conf.in b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-common-32-3.2.0/src/conf/wrapper.conf.in
deleted file mode 100644
index 76f46e63b..000000000
--- a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-common-32-3.2.0/src/conf/wrapper.conf.in
+++ /dev/null
@@ -1,94 +0,0 @@
-#********************************************************************
-# Wrapper Properties
-#********************************************************************
-# Java Application
-wrapper.java.command=java
-
-# Java Main class. This class must implement the WrapperListener interface
-# or guarantee that the WrapperManager class is initialized. Helper
-# classes are provided to do this for you. See the Integration section
-# of the documentation for details.
-wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
-
-# Java Classpath (include wrapper.jar) Add class path elements as
-# needed starting from 1
-wrapper.java.classpath.1=../lib/wrapper.jar
-
-# Java Library Path (location of Wrapper.DLL or libwrapper.so)
-wrapper.java.library.path.1=../lib
-
-# Java Additional Parameters
-#wrapper.java.additional.1=
-
-# Initial Java Heap Size (in MB)
-#wrapper.java.initmemory=3
-
-# Maximum Java Heap Size (in MB)
-#wrapper.java.maxmemory=64
-
-# Application parameters. Add parameters as needed starting from 1
-wrapper.app.parameter.1=
-
-#********************************************************************
-# Wrapper Logging Properties
-#********************************************************************
-# Format of output for the console. (See docs for formats)
-wrapper.console.format=PM
-
-# Log Level for console output. (See docs for log levels)
-wrapper.console.loglevel=INFO
-
-# Log file to use for wrapper output logging.
-wrapper.logfile=../logs/wrapper.log
-
-# Format of output for the log file. (See docs for formats)
-wrapper.logfile.format=LPTM
-
-# Log Level for log file output. (See docs for log levels)
-wrapper.logfile.loglevel=INFO
-
-# Maximum size that the log file will be allowed to grow to before
-# the log is rolled. Size is specified in bytes. The default value
-# of 0, disables log rolling. May abbreviate with the 'k' (kb) or
-# 'm' (mb) suffix. For example: 10m = 10 megabytes.
-wrapper.logfile.maxsize=0
-
-# Maximum number of rolled log files which will be allowed before old
-# files are deleted. The default value of 0 implies no limit.
-wrapper.logfile.maxfiles=0
-
-# Log Level for sys/event log output. (See docs for log levels)
-wrapper.syslog.loglevel=NONE
-
-#********************************************************************
-# Wrapper Windows Properties
-#********************************************************************
-# Title to use when running as a console
-wrapper.console.title=@app.long.name@
-
-#********************************************************************
-# Wrapper Windows NT/2000/XP Service Properties
-#********************************************************************
-# WARNING - Do not modify any of these properties when an application
-# using this configuration file has been installed as a service.
-# Please uninstall the service before modifying this section. The
-# service can then be reinstalled.
-
-# Name of the service
-wrapper.ntservice.name=@app.name@
-
-# Display name of the service
-wrapper.ntservice.displayname=@app.long.name@
-
-# Description of the service
-wrapper.ntservice.description=@app.description@
-
-# Service dependencies. Add dependencies as needed starting from 1
-wrapper.ntservice.dependency.1=
-
-# Mode in which the service is installed. AUTO_START or DEMAND_START
-wrapper.ntservice.starttype=AUTO_START
-
-# Allow the service to interact with the desktop.
-wrapper.ntservice.interactive=false
-
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-freebsd-x86-32-3.2.0/bin/testwrapper b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-freebsd-x86-32-3.2.0/bin/testwrapper
deleted file mode 100755
index 1dfc5c100..000000000
--- a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-freebsd-x86-32-3.2.0/bin/testwrapper
+++ /dev/null
@@ -1,530 +0,0 @@
-#! /bin/sh
-
-#
-# Copyright (c) 1999, 2006 Tanuki Software Inc.
-#
-# Java Service Wrapper sh script. Suitable for starting and stopping
-# wrapped Java applications on UNIX platforms.
-#
-
-#-----------------------------------------------------------------------------
-# These settings can be modified to fit the needs of your application
-
-# Application
-APP_NAME="testwrapper"
-APP_LONG_NAME="Test Wrapper Sample Application"
-
-# Wrapper
-WRAPPER_CMD="./wrapper"
-WRAPPER_CONF="../conf/wrapper.conf"
-
-# Priority at which to run the wrapper. See "man nice" for valid priorities.
-# nice is only used if a priority is specified.
-PRIORITY=
-
-# Location of the pid file.
-PIDDIR="."
-
-# If uncommented, causes the Wrapper to be shutdown using an anchor file.
-# When launched with the 'start' command, it will also ignore all INT and
-# TERM signals.
-#IGNORE_SIGNALS=true
-
-# If specified, the Wrapper will be run as the specified user.
-# IMPORTANT - Make sure that the user has the required privileges to write
-# the PID file and wrapper.log files. Failure to be able to write the log
-# file will cause the Wrapper to exit without any way to write out an error
-# message.
-# NOTE - This will set the user which is used to run the Wrapper as well as
-# the JVM and is not useful in situations where a privileged resource or
-# port needs to be allocated prior to the user being changed.
-#RUN_AS_USER=
-
-# The following two lines are used by the chkconfig command. Change as is
-# appropriate for your application. They should remain commented.
-# chkconfig: 2345 20 80
-# description: Test Wrapper Sample Application
-
-# Do not modify anything beyond this point
-#-----------------------------------------------------------------------------
-
-# Get the fully qualified path to the script
-case $0 in
- /*)
- SCRIPT="$0"
- ;;
- *)
- PWD=`pwd`
- SCRIPT="$PWD/$0"
- ;;
-esac
-
-# Resolve the true real path without any sym links.
-CHANGED=true
-while [ "X$CHANGED" != "X" ]
-do
- # Change spaces to ":" so the tokens can be parsed.
- SCRIPT=`echo $SCRIPT | sed -e 's; ;:;g'`
- # Get the real path to this script, resolving any symbolic links
- TOKENS=`echo $SCRIPT | sed -e 's;/; ;g'`
- REALPATH=
- for C in $TOKENS; do
- REALPATH="$REALPATH/$C"
- while [ -h "$REALPATH" ] ; do
- LS="`ls -ld "$REALPATH"`"
- LINK="`expr "$LS" : '.*-> \(.*\)$'`"
- if expr "$LINK" : '/.*' > /dev/null; then
- REALPATH="$LINK"
- else
- REALPATH="`dirname "$REALPATH"`""/$LINK"
- fi
- done
- done
- # Change ":" chars back to spaces.
- REALPATH=`echo $REALPATH | sed -e 's;:; ;g'`
-
- if [ "$REALPATH" = "$SCRIPT" ]
- then
- CHANGED=""
- else
- SCRIPT="$REALPATH"
- fi
-done
-
-# Change the current directory to the location of the script
-cd "`dirname "$REALPATH"`"
-REALDIR=`pwd`
-
-# If the PIDDIR is relative, set its value relative to the full REALPATH to avoid problems if
-# the working directory is later changed.
-FIRST_CHAR=`echo $PIDDIR | cut -c1,1`
-if [ "$FIRST_CHAR" != "/" ]
-then
- PIDDIR=$REALDIR/$PIDDIR
-fi
-# Same test for WRAPPER_CMD
-FIRST_CHAR=`echo $WRAPPER_CMD | cut -c1,1`
-if [ "$FIRST_CHAR" != "/" ]
-then
- WRAPPER_CMD=$REALDIR/$WRAPPER_CMD
-fi
-# Same test for WRAPPER_CONF
-FIRST_CHAR=`echo $WRAPPER_CONF | cut -c1,1`
-if [ "$FIRST_CHAR" != "/" ]
-then
- WRAPPER_CONF=$REALDIR/$WRAPPER_CONF
-fi
-
-# Process ID
-ANCHORFILE="$PIDDIR/$APP_NAME.anchor"
-PIDFILE="$PIDDIR/$APP_NAME.pid"
-LOCKDIR="/var/lock/subsys"
-LOCKFILE="$LOCKDIR/$APP_NAME"
-pid=""
-
-# Resolve the location of the 'ps' command
-PSEXE="/usr/bin/ps"
-if [ ! -x $PSEXE ]
-then
- PSEXE="/bin/ps"
- if [ ! -x $PSEXE ]
- then
- echo "Unable to locate 'ps'."
- echo "Please report this message along with the location of the command on your system."
- exit 1
- fi
-fi
-
-# Resolve the os
-DIST_OS=`uname -s | tr [:upper:] [:lower:] | tr -d [:blank:]`
-case "$DIST_OS" in
- 'sunos')
- DIST_OS="solaris"
- ;;
- 'hp-ux' | 'hp-ux64')
- DIST_OS="hpux"
- ;;
- 'darwin')
- DIST_OS="macosx"
- ;;
- 'unix_sv')
- DIST_OS="unixware"
- ;;
-esac
-
-# Resolve the architecture
-DIST_ARCH=`uname -p | tr [:upper:] [:lower:] | tr -d [:blank:]`
-if [ "$DIST_ARCH" = "unknown" ]
-then
- DIST_ARCH=`uname -m | tr [:upper:] [:lower:] | tr -d [:blank:]`
-fi
-case "$DIST_ARCH" in
- 'amd64' | 'ia32' | 'ia64' | 'i386' | 'i486' | 'i586' | 'i686' | 'x86_64')
- DIST_ARCH="x86"
- ;;
- 'ip27')
- DIST_ARCH="mips"
- ;;
- 'power' | 'powerpc' | 'power_pc' | 'ppc64')
- DIST_ARCH="ppc"
- ;;
- 'pa_risc' | 'pa-risc')
- DIST_ARCH="parisc"
- ;;
- 'sun4u' | 'sparcv9')
- DIST_ARCH="sparc"
- ;;
- '9000/800')
- DIST_ARCH="parisc"
- ;;
-esac
-
-# Decide on the wrapper binary to use.
-# If a 32-bit wrapper binary exists then it will work on 32 or 64 bit
-# platforms, if the 64-bit binary exists then the distribution most
-# likely wants to use long names. Otherwise, look for the default.
-# For macosx, we also want to look for universal binaries.
-WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-32"
-if [ -x $WRAPPER_TEST_CMD ]
-then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
-else
- if [ "$DIST_OS" = "macosx" ]
- then
- WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-universal-32"
- if [ -x $WRAPPER_TEST_CMD ]
- then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
- else
- WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-64"
- if [ -x $WRAPPER_TEST_CMD ]
- then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
- else
- WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-universal-64"
- if [ -x $WRAPPER_TEST_CMD ]
- then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
- else
- if [ ! -x $WRAPPER_CMD ]
- then
- echo "Unable to locate any of the following binaries:"
- echo " $WRAPPER_CMD-$DIST_OS-$DIST_ARCH-32"
- echo " $WRAPPER_CMD-$DIST_OS-universal-32"
- echo " $WRAPPER_CMD-$DIST_OS-$DIST_ARCH-64"
- echo " $WRAPPER_CMD-$DIST_OS-universal-64"
- echo " $WRAPPER_CMD"
- exit 1
- fi
- fi
- fi
- fi
- else
- WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-64"
- if [ -x $WRAPPER_TEST_CMD ]
- then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
- else
- if [ ! -x $WRAPPER_CMD ]
- then
- echo "Unable to locate any of the following binaries:"
- echo " $WRAPPER_CMD-$DIST_OS-$DIST_ARCH-32"
- echo " $WRAPPER_CMD-$DIST_OS-$DIST_ARCH-64"
- echo " $WRAPPER_CMD"
- exit 1
- fi
- fi
- fi
-fi
-
-# Build the nice clause
-if [ "X$PRIORITY" = "X" ]
-then
- CMDNICE=""
-else
- CMDNICE="nice -$PRIORITY"
-fi
-
-# Build the anchor file clause.
-if [ "X$IGNORE_SIGNALS" = "X" ]
-then
- ANCHORPROP=
- IGNOREPROP=
-else
- ANCHORPROP=wrapper.anchorfile=$ANCHORFILE
- IGNOREPROP=wrapper.ignore_signals=TRUE
-fi
-
-# Build the lock file clause. Only create a lock file if the lock directory exists on this platform.
-if [ -d $LOCKDIR ]
-then
- LOCKPROP=wrapper.lockfile=$LOCKFILE
-else
- LOCKPROP=
-fi
-
-checkUser() {
- # Check the configured user. If necessary rerun this script as the desired user.
- if [ "X$RUN_AS_USER" != "X" ]
- then
- # Resolve the location of the 'id' command
- IDEXE="/usr/xpg4/bin/id"
- if [ ! -x $IDEXE ]
- then
- IDEXE="/usr/bin/id"
- if [ ! -x $IDEXE ]
- then
- echo "Unable to locate 'id'."
- echo "Please report this message along with the location of the command on your system."
- exit 1
- fi
- fi
-
- if [ "`$IDEXE -u -n`" = "$RUN_AS_USER" ]
- then
- # Already running as the configured user. Avoid password prompts by not calling su.
- RUN_AS_USER=""
- fi
- fi
- if [ "X$RUN_AS_USER" != "X" ]
- then
- # If LOCKPROP and $RUN_AS_USER are defined then the new user will most likely not be
- # able to create the lock file. The Wrapper will be able to update this file once it
- # is created but will not be able to delete it on shutdown. If $2 is defined then
- # the lock file should be created for the current command
- if [ "X$LOCKPROP" != "X" ]
- then
- if [ "X$2" != "X" ]
- then
- # Resolve the primary group
- RUN_AS_GROUP=`groups $RUN_AS_USER | awk '{print $3}' | tail -1`
- if [ "X$RUN_AS_GROUP" = "X" ]
- then
- RUN_AS_GROUP=RUN_AS_USER
- fi
- touch $LOCKFILE
- chown $RUN_AS_USER:$RUN_AS_GROUP $LOCKFILE
- fi
- fi
-
- # Still want to change users, recurse. This means that the user will only be
- # prompted for a password once.
- su -m $RUN_AS_USER -c "$REALPATH $1"
-
- # Now that we are the original user again, we may need to clean up the lock file.
- if [ "X$LOCKPROP" != "X" ]
- then
- getpid
- if [ "X$pid" = "X" ]
- then
- # Wrapper is not running so make sure the lock file is deleted.
- if [ -f $LOCKFILE ]
- then
- rm $LOCKFILE
- fi
- fi
- fi
-
- exit 0
- fi
-}
-
-getpid() {
- if [ -f $PIDFILE ]
- then
- if [ -r $PIDFILE ]
- then
- pid=`cat $PIDFILE`
- if [ "X$pid" != "X" ]
- then
- # It is possible that 'a' process with the pid exists but that it is not the
- # correct process. This can happen in a number of cases, but the most
- # common is during system startup after an unclean shutdown.
- # The ps statement below looks for the specific wrapper command running as
- # the pid. If it is not found then the pid file is considered to be stale.
- pidtest=`$PSEXE -p $pid -o args | grep $WRAPPER_CMD | tail -1`
- if [ "X$pidtest" = "X" ]
- then
- # This is a stale pid file.
- rm -f $PIDFILE
- echo "Removed stale pid file: $PIDFILE"
- pid=""
- fi
- fi
- else
- echo "Cannot read $PIDFILE."
- exit 1
- fi
- fi
-}
-
-testpid() {
- pid=`$PSEXE -p $pid | grep $pid | grep -v grep | awk '{print $1}' | tail -1`
- if [ "X$pid" = "X" ]
- then
- # Process is gone so remove the pid file.
- rm -f $PIDFILE
- pid=""
- fi
-}
-
-console() {
- echo "Running $APP_LONG_NAME..."
- getpid
- if [ "X$pid" = "X" ]
- then
- COMMAND_LINE="$CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.syslog.ident=$APP_NAME wrapper.pidfile=$PIDFILE $ANCHORPROP $LOCKPROP"
- exec $COMMAND_LINE
- else
- echo "$APP_LONG_NAME is already running."
- exit 1
- fi
-}
-
-start() {
- echo "Starting $APP_LONG_NAME..."
- getpid
- if [ "X$pid" = "X" ]
- then
- COMMAND_LINE="$CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.syslog.ident=$APP_NAME wrapper.pidfile=$PIDFILE wrapper.daemonize=TRUE $ANCHORPROP $IGNOREPROP $LOCKPROP"
- exec $COMMAND_LINE
- else
- echo "$APP_LONG_NAME is already running."
- exit 1
- fi
-}
-
-stopit() {
- echo "Stopping $APP_LONG_NAME..."
- getpid
- if [ "X$pid" = "X" ]
- then
- echo "$APP_LONG_NAME was not running."
- else
- if [ "X$IGNORE_SIGNALS" = "X" ]
- then
- # Running so try to stop it.
- kill $pid
- if [ $? -ne 0 ]
- then
- # An explanation for the failure should have been given
- echo "Unable to stop $APP_LONG_NAME."
- exit 1
- fi
- else
- rm -f $ANCHORFILE
- if [ -f $ANCHORFILE ]
- then
- # An explanation for the failure should have been given
- echo "Unable to stop $APP_LONG_NAME."
- exit 1
- fi
- fi
-
- # We can not predict how long it will take for the wrapper to
- # actually stop as it depends on settings in wrapper.conf.
- # Loop until it does.
- savepid=$pid
- CNT=0
- TOTCNT=0
- while [ "X$pid" != "X" ]
- do
- # Show a waiting message every 5 seconds.
- if [ "$CNT" -lt "5" ]
- then
- CNT=`expr $CNT + 1`
- else
- echo "Waiting for $APP_LONG_NAME to exit..."
- CNT=0
- fi
- TOTCNT=`expr $TOTCNT + 1`
-
- sleep 1
-
- testpid
- done
-
- pid=$savepid
- testpid
- if [ "X$pid" != "X" ]
- then
- echo "Failed to stop $APP_LONG_NAME."
- exit 1
- else
- echo "Stopped $APP_LONG_NAME."
- fi
- fi
-}
-
-status() {
- getpid
- if [ "X$pid" = "X" ]
- then
- echo "$APP_LONG_NAME is not running."
- exit 1
- else
- echo "$APP_LONG_NAME is running ($pid)."
- exit 0
- fi
-}
-
-dump() {
- echo "Dumping $APP_LONG_NAME..."
- getpid
- if [ "X$pid" = "X" ]
- then
- echo "$APP_LONG_NAME was not running."
-
- else
- kill -3 $pid
-
- if [ $? -ne 0 ]
- then
- echo "Failed to dump $APP_LONG_NAME."
- exit 1
- else
- echo "Dumped $APP_LONG_NAME."
- fi
- fi
-}
-
-case "$1" in
-
- 'console')
- checkUser $1 touchlock
- console
- ;;
-
- 'start')
- checkUser $1 touchlock
- start
- ;;
-
- 'stop')
- checkUser $1
- stopit
- ;;
-
- 'restart')
- checkUser $1 touchlock
- stopit
- start
- ;;
-
- 'status')
- checkUser $1
- status
- ;;
-
- 'dump')
- checkUser $1
- dump
- ;;
-
- *)
- echo "Usage: $0 { console | start | stop | restart | status | dump }"
- exit 1
- ;;
-esac
-
-exit 0
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-freebsd-x86-32-3.2.0/bin/wrapper b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-freebsd-x86-32-3.2.0/bin/wrapper
deleted file mode 100755
index 466cbacd3..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-freebsd-x86-32-3.2.0/bin/wrapper and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-freebsd-x86-32-3.2.0/lib/libwrapper.so b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-freebsd-x86-32-3.2.0/lib/libwrapper.so
deleted file mode 100755
index f325d52f1..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-freebsd-x86-32-3.2.0/lib/libwrapper.so and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-freebsd-x86-32-3.2.0/lib/wrapper.jar b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-freebsd-x86-32-3.2.0/lib/wrapper.jar
deleted file mode 100644
index c76640599..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-freebsd-x86-32-3.2.0/lib/wrapper.jar and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-freebsd-x86-32-3.2.0/lib/wrappertest.jar b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-freebsd-x86-32-3.2.0/lib/wrappertest.jar
deleted file mode 100644
index 10e009322..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-freebsd-x86-32-3.2.0/lib/wrappertest.jar and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-linux-x86-32-3.2.0/bin/testwrapper b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-linux-x86-32-3.2.0/bin/testwrapper
deleted file mode 100755
index 1dfc5c100..000000000
--- a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-linux-x86-32-3.2.0/bin/testwrapper
+++ /dev/null
@@ -1,530 +0,0 @@
-#! /bin/sh
-
-#
-# Copyright (c) 1999, 2006 Tanuki Software Inc.
-#
-# Java Service Wrapper sh script. Suitable for starting and stopping
-# wrapped Java applications on UNIX platforms.
-#
-
-#-----------------------------------------------------------------------------
-# These settings can be modified to fit the needs of your application
-
-# Application
-APP_NAME="testwrapper"
-APP_LONG_NAME="Test Wrapper Sample Application"
-
-# Wrapper
-WRAPPER_CMD="./wrapper"
-WRAPPER_CONF="../conf/wrapper.conf"
-
-# Priority at which to run the wrapper. See "man nice" for valid priorities.
-# nice is only used if a priority is specified.
-PRIORITY=
-
-# Location of the pid file.
-PIDDIR="."
-
-# If uncommented, causes the Wrapper to be shutdown using an anchor file.
-# When launched with the 'start' command, it will also ignore all INT and
-# TERM signals.
-#IGNORE_SIGNALS=true
-
-# If specified, the Wrapper will be run as the specified user.
-# IMPORTANT - Make sure that the user has the required privileges to write
-# the PID file and wrapper.log files. Failure to be able to write the log
-# file will cause the Wrapper to exit without any way to write out an error
-# message.
-# NOTE - This will set the user which is used to run the Wrapper as well as
-# the JVM and is not useful in situations where a privileged resource or
-# port needs to be allocated prior to the user being changed.
-#RUN_AS_USER=
-
-# The following two lines are used by the chkconfig command. Change as is
-# appropriate for your application. They should remain commented.
-# chkconfig: 2345 20 80
-# description: Test Wrapper Sample Application
-
-# Do not modify anything beyond this point
-#-----------------------------------------------------------------------------
-
-# Get the fully qualified path to the script
-case $0 in
- /*)
- SCRIPT="$0"
- ;;
- *)
- PWD=`pwd`
- SCRIPT="$PWD/$0"
- ;;
-esac
-
-# Resolve the true real path without any sym links.
-CHANGED=true
-while [ "X$CHANGED" != "X" ]
-do
- # Change spaces to ":" so the tokens can be parsed.
- SCRIPT=`echo $SCRIPT | sed -e 's; ;:;g'`
- # Get the real path to this script, resolving any symbolic links
- TOKENS=`echo $SCRIPT | sed -e 's;/; ;g'`
- REALPATH=
- for C in $TOKENS; do
- REALPATH="$REALPATH/$C"
- while [ -h "$REALPATH" ] ; do
- LS="`ls -ld "$REALPATH"`"
- LINK="`expr "$LS" : '.*-> \(.*\)$'`"
- if expr "$LINK" : '/.*' > /dev/null; then
- REALPATH="$LINK"
- else
- REALPATH="`dirname "$REALPATH"`""/$LINK"
- fi
- done
- done
- # Change ":" chars back to spaces.
- REALPATH=`echo $REALPATH | sed -e 's;:; ;g'`
-
- if [ "$REALPATH" = "$SCRIPT" ]
- then
- CHANGED=""
- else
- SCRIPT="$REALPATH"
- fi
-done
-
-# Change the current directory to the location of the script
-cd "`dirname "$REALPATH"`"
-REALDIR=`pwd`
-
-# If the PIDDIR is relative, set its value relative to the full REALPATH to avoid problems if
-# the working directory is later changed.
-FIRST_CHAR=`echo $PIDDIR | cut -c1,1`
-if [ "$FIRST_CHAR" != "/" ]
-then
- PIDDIR=$REALDIR/$PIDDIR
-fi
-# Same test for WRAPPER_CMD
-FIRST_CHAR=`echo $WRAPPER_CMD | cut -c1,1`
-if [ "$FIRST_CHAR" != "/" ]
-then
- WRAPPER_CMD=$REALDIR/$WRAPPER_CMD
-fi
-# Same test for WRAPPER_CONF
-FIRST_CHAR=`echo $WRAPPER_CONF | cut -c1,1`
-if [ "$FIRST_CHAR" != "/" ]
-then
- WRAPPER_CONF=$REALDIR/$WRAPPER_CONF
-fi
-
-# Process ID
-ANCHORFILE="$PIDDIR/$APP_NAME.anchor"
-PIDFILE="$PIDDIR/$APP_NAME.pid"
-LOCKDIR="/var/lock/subsys"
-LOCKFILE="$LOCKDIR/$APP_NAME"
-pid=""
-
-# Resolve the location of the 'ps' command
-PSEXE="/usr/bin/ps"
-if [ ! -x $PSEXE ]
-then
- PSEXE="/bin/ps"
- if [ ! -x $PSEXE ]
- then
- echo "Unable to locate 'ps'."
- echo "Please report this message along with the location of the command on your system."
- exit 1
- fi
-fi
-
-# Resolve the os
-DIST_OS=`uname -s | tr [:upper:] [:lower:] | tr -d [:blank:]`
-case "$DIST_OS" in
- 'sunos')
- DIST_OS="solaris"
- ;;
- 'hp-ux' | 'hp-ux64')
- DIST_OS="hpux"
- ;;
- 'darwin')
- DIST_OS="macosx"
- ;;
- 'unix_sv')
- DIST_OS="unixware"
- ;;
-esac
-
-# Resolve the architecture
-DIST_ARCH=`uname -p | tr [:upper:] [:lower:] | tr -d [:blank:]`
-if [ "$DIST_ARCH" = "unknown" ]
-then
- DIST_ARCH=`uname -m | tr [:upper:] [:lower:] | tr -d [:blank:]`
-fi
-case "$DIST_ARCH" in
- 'amd64' | 'ia32' | 'ia64' | 'i386' | 'i486' | 'i586' | 'i686' | 'x86_64')
- DIST_ARCH="x86"
- ;;
- 'ip27')
- DIST_ARCH="mips"
- ;;
- 'power' | 'powerpc' | 'power_pc' | 'ppc64')
- DIST_ARCH="ppc"
- ;;
- 'pa_risc' | 'pa-risc')
- DIST_ARCH="parisc"
- ;;
- 'sun4u' | 'sparcv9')
- DIST_ARCH="sparc"
- ;;
- '9000/800')
- DIST_ARCH="parisc"
- ;;
-esac
-
-# Decide on the wrapper binary to use.
-# If a 32-bit wrapper binary exists then it will work on 32 or 64 bit
-# platforms, if the 64-bit binary exists then the distribution most
-# likely wants to use long names. Otherwise, look for the default.
-# For macosx, we also want to look for universal binaries.
-WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-32"
-if [ -x $WRAPPER_TEST_CMD ]
-then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
-else
- if [ "$DIST_OS" = "macosx" ]
- then
- WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-universal-32"
- if [ -x $WRAPPER_TEST_CMD ]
- then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
- else
- WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-64"
- if [ -x $WRAPPER_TEST_CMD ]
- then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
- else
- WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-universal-64"
- if [ -x $WRAPPER_TEST_CMD ]
- then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
- else
- if [ ! -x $WRAPPER_CMD ]
- then
- echo "Unable to locate any of the following binaries:"
- echo " $WRAPPER_CMD-$DIST_OS-$DIST_ARCH-32"
- echo " $WRAPPER_CMD-$DIST_OS-universal-32"
- echo " $WRAPPER_CMD-$DIST_OS-$DIST_ARCH-64"
- echo " $WRAPPER_CMD-$DIST_OS-universal-64"
- echo " $WRAPPER_CMD"
- exit 1
- fi
- fi
- fi
- fi
- else
- WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-64"
- if [ -x $WRAPPER_TEST_CMD ]
- then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
- else
- if [ ! -x $WRAPPER_CMD ]
- then
- echo "Unable to locate any of the following binaries:"
- echo " $WRAPPER_CMD-$DIST_OS-$DIST_ARCH-32"
- echo " $WRAPPER_CMD-$DIST_OS-$DIST_ARCH-64"
- echo " $WRAPPER_CMD"
- exit 1
- fi
- fi
- fi
-fi
-
-# Build the nice clause
-if [ "X$PRIORITY" = "X" ]
-then
- CMDNICE=""
-else
- CMDNICE="nice -$PRIORITY"
-fi
-
-# Build the anchor file clause.
-if [ "X$IGNORE_SIGNALS" = "X" ]
-then
- ANCHORPROP=
- IGNOREPROP=
-else
- ANCHORPROP=wrapper.anchorfile=$ANCHORFILE
- IGNOREPROP=wrapper.ignore_signals=TRUE
-fi
-
-# Build the lock file clause. Only create a lock file if the lock directory exists on this platform.
-if [ -d $LOCKDIR ]
-then
- LOCKPROP=wrapper.lockfile=$LOCKFILE
-else
- LOCKPROP=
-fi
-
-checkUser() {
- # Check the configured user. If necessary rerun this script as the desired user.
- if [ "X$RUN_AS_USER" != "X" ]
- then
- # Resolve the location of the 'id' command
- IDEXE="/usr/xpg4/bin/id"
- if [ ! -x $IDEXE ]
- then
- IDEXE="/usr/bin/id"
- if [ ! -x $IDEXE ]
- then
- echo "Unable to locate 'id'."
- echo "Please report this message along with the location of the command on your system."
- exit 1
- fi
- fi
-
- if [ "`$IDEXE -u -n`" = "$RUN_AS_USER" ]
- then
- # Already running as the configured user. Avoid password prompts by not calling su.
- RUN_AS_USER=""
- fi
- fi
- if [ "X$RUN_AS_USER" != "X" ]
- then
- # If LOCKPROP and $RUN_AS_USER are defined then the new user will most likely not be
- # able to create the lock file. The Wrapper will be able to update this file once it
- # is created but will not be able to delete it on shutdown. If $2 is defined then
- # the lock file should be created for the current command
- if [ "X$LOCKPROP" != "X" ]
- then
- if [ "X$2" != "X" ]
- then
- # Resolve the primary group
- RUN_AS_GROUP=`groups $RUN_AS_USER | awk '{print $3}' | tail -1`
- if [ "X$RUN_AS_GROUP" = "X" ]
- then
- RUN_AS_GROUP=RUN_AS_USER
- fi
- touch $LOCKFILE
- chown $RUN_AS_USER:$RUN_AS_GROUP $LOCKFILE
- fi
- fi
-
- # Still want to change users, recurse. This means that the user will only be
- # prompted for a password once.
- su -m $RUN_AS_USER -c "$REALPATH $1"
-
- # Now that we are the original user again, we may need to clean up the lock file.
- if [ "X$LOCKPROP" != "X" ]
- then
- getpid
- if [ "X$pid" = "X" ]
- then
- # Wrapper is not running so make sure the lock file is deleted.
- if [ -f $LOCKFILE ]
- then
- rm $LOCKFILE
- fi
- fi
- fi
-
- exit 0
- fi
-}
-
-getpid() {
- if [ -f $PIDFILE ]
- then
- if [ -r $PIDFILE ]
- then
- pid=`cat $PIDFILE`
- if [ "X$pid" != "X" ]
- then
- # It is possible that 'a' process with the pid exists but that it is not the
- # correct process. This can happen in a number of cases, but the most
- # common is during system startup after an unclean shutdown.
- # The ps statement below looks for the specific wrapper command running as
- # the pid. If it is not found then the pid file is considered to be stale.
- pidtest=`$PSEXE -p $pid -o args | grep $WRAPPER_CMD | tail -1`
- if [ "X$pidtest" = "X" ]
- then
- # This is a stale pid file.
- rm -f $PIDFILE
- echo "Removed stale pid file: $PIDFILE"
- pid=""
- fi
- fi
- else
- echo "Cannot read $PIDFILE."
- exit 1
- fi
- fi
-}
-
-testpid() {
- pid=`$PSEXE -p $pid | grep $pid | grep -v grep | awk '{print $1}' | tail -1`
- if [ "X$pid" = "X" ]
- then
- # Process is gone so remove the pid file.
- rm -f $PIDFILE
- pid=""
- fi
-}
-
-console() {
- echo "Running $APP_LONG_NAME..."
- getpid
- if [ "X$pid" = "X" ]
- then
- COMMAND_LINE="$CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.syslog.ident=$APP_NAME wrapper.pidfile=$PIDFILE $ANCHORPROP $LOCKPROP"
- exec $COMMAND_LINE
- else
- echo "$APP_LONG_NAME is already running."
- exit 1
- fi
-}
-
-start() {
- echo "Starting $APP_LONG_NAME..."
- getpid
- if [ "X$pid" = "X" ]
- then
- COMMAND_LINE="$CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.syslog.ident=$APP_NAME wrapper.pidfile=$PIDFILE wrapper.daemonize=TRUE $ANCHORPROP $IGNOREPROP $LOCKPROP"
- exec $COMMAND_LINE
- else
- echo "$APP_LONG_NAME is already running."
- exit 1
- fi
-}
-
-stopit() {
- echo "Stopping $APP_LONG_NAME..."
- getpid
- if [ "X$pid" = "X" ]
- then
- echo "$APP_LONG_NAME was not running."
- else
- if [ "X$IGNORE_SIGNALS" = "X" ]
- then
- # Running so try to stop it.
- kill $pid
- if [ $? -ne 0 ]
- then
- # An explanation for the failure should have been given
- echo "Unable to stop $APP_LONG_NAME."
- exit 1
- fi
- else
- rm -f $ANCHORFILE
- if [ -f $ANCHORFILE ]
- then
- # An explanation for the failure should have been given
- echo "Unable to stop $APP_LONG_NAME."
- exit 1
- fi
- fi
-
- # We can not predict how long it will take for the wrapper to
- # actually stop as it depends on settings in wrapper.conf.
- # Loop until it does.
- savepid=$pid
- CNT=0
- TOTCNT=0
- while [ "X$pid" != "X" ]
- do
- # Show a waiting message every 5 seconds.
- if [ "$CNT" -lt "5" ]
- then
- CNT=`expr $CNT + 1`
- else
- echo "Waiting for $APP_LONG_NAME to exit..."
- CNT=0
- fi
- TOTCNT=`expr $TOTCNT + 1`
-
- sleep 1
-
- testpid
- done
-
- pid=$savepid
- testpid
- if [ "X$pid" != "X" ]
- then
- echo "Failed to stop $APP_LONG_NAME."
- exit 1
- else
- echo "Stopped $APP_LONG_NAME."
- fi
- fi
-}
-
-status() {
- getpid
- if [ "X$pid" = "X" ]
- then
- echo "$APP_LONG_NAME is not running."
- exit 1
- else
- echo "$APP_LONG_NAME is running ($pid)."
- exit 0
- fi
-}
-
-dump() {
- echo "Dumping $APP_LONG_NAME..."
- getpid
- if [ "X$pid" = "X" ]
- then
- echo "$APP_LONG_NAME was not running."
-
- else
- kill -3 $pid
-
- if [ $? -ne 0 ]
- then
- echo "Failed to dump $APP_LONG_NAME."
- exit 1
- else
- echo "Dumped $APP_LONG_NAME."
- fi
- fi
-}
-
-case "$1" in
-
- 'console')
- checkUser $1 touchlock
- console
- ;;
-
- 'start')
- checkUser $1 touchlock
- start
- ;;
-
- 'stop')
- checkUser $1
- stopit
- ;;
-
- 'restart')
- checkUser $1 touchlock
- stopit
- start
- ;;
-
- 'status')
- checkUser $1
- status
- ;;
-
- 'dump')
- checkUser $1
- dump
- ;;
-
- *)
- echo "Usage: $0 { console | start | stop | restart | status | dump }"
- exit 1
- ;;
-esac
-
-exit 0
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-linux-x86-32-3.2.0/bin/wrapper b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-linux-x86-32-3.2.0/bin/wrapper
deleted file mode 100755
index c58d4f768..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-linux-x86-32-3.2.0/bin/wrapper and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-linux-x86-32-3.2.0/lib/libwrapper.so b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-linux-x86-32-3.2.0/lib/libwrapper.so
deleted file mode 100755
index df25ec65e..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-linux-x86-32-3.2.0/lib/libwrapper.so and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-linux-x86-32-3.2.0/lib/wrapper.jar b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-linux-x86-32-3.2.0/lib/wrapper.jar
deleted file mode 100644
index c76640599..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-linux-x86-32-3.2.0/lib/wrapper.jar and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-linux-x86-32-3.2.0/lib/wrappertest.jar b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-linux-x86-32-3.2.0/lib/wrappertest.jar
deleted file mode 100644
index 10e009322..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-linux-x86-32-3.2.0/lib/wrappertest.jar and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-linux-x86-64-3.2.0/bin/testwrapper b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-linux-x86-64-3.2.0/bin/testwrapper
deleted file mode 100755
index 1dfc5c100..000000000
--- a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-linux-x86-64-3.2.0/bin/testwrapper
+++ /dev/null
@@ -1,530 +0,0 @@
-#! /bin/sh
-
-#
-# Copyright (c) 1999, 2006 Tanuki Software Inc.
-#
-# Java Service Wrapper sh script. Suitable for starting and stopping
-# wrapped Java applications on UNIX platforms.
-#
-
-#-----------------------------------------------------------------------------
-# These settings can be modified to fit the needs of your application
-
-# Application
-APP_NAME="testwrapper"
-APP_LONG_NAME="Test Wrapper Sample Application"
-
-# Wrapper
-WRAPPER_CMD="./wrapper"
-WRAPPER_CONF="../conf/wrapper.conf"
-
-# Priority at which to run the wrapper. See "man nice" for valid priorities.
-# nice is only used if a priority is specified.
-PRIORITY=
-
-# Location of the pid file.
-PIDDIR="."
-
-# If uncommented, causes the Wrapper to be shutdown using an anchor file.
-# When launched with the 'start' command, it will also ignore all INT and
-# TERM signals.
-#IGNORE_SIGNALS=true
-
-# If specified, the Wrapper will be run as the specified user.
-# IMPORTANT - Make sure that the user has the required privileges to write
-# the PID file and wrapper.log files. Failure to be able to write the log
-# file will cause the Wrapper to exit without any way to write out an error
-# message.
-# NOTE - This will set the user which is used to run the Wrapper as well as
-# the JVM and is not useful in situations where a privileged resource or
-# port needs to be allocated prior to the user being changed.
-#RUN_AS_USER=
-
-# The following two lines are used by the chkconfig command. Change as is
-# appropriate for your application. They should remain commented.
-# chkconfig: 2345 20 80
-# description: Test Wrapper Sample Application
-
-# Do not modify anything beyond this point
-#-----------------------------------------------------------------------------
-
-# Get the fully qualified path to the script
-case $0 in
- /*)
- SCRIPT="$0"
- ;;
- *)
- PWD=`pwd`
- SCRIPT="$PWD/$0"
- ;;
-esac
-
-# Resolve the true real path without any sym links.
-CHANGED=true
-while [ "X$CHANGED" != "X" ]
-do
- # Change spaces to ":" so the tokens can be parsed.
- SCRIPT=`echo $SCRIPT | sed -e 's; ;:;g'`
- # Get the real path to this script, resolving any symbolic links
- TOKENS=`echo $SCRIPT | sed -e 's;/; ;g'`
- REALPATH=
- for C in $TOKENS; do
- REALPATH="$REALPATH/$C"
- while [ -h "$REALPATH" ] ; do
- LS="`ls -ld "$REALPATH"`"
- LINK="`expr "$LS" : '.*-> \(.*\)$'`"
- if expr "$LINK" : '/.*' > /dev/null; then
- REALPATH="$LINK"
- else
- REALPATH="`dirname "$REALPATH"`""/$LINK"
- fi
- done
- done
- # Change ":" chars back to spaces.
- REALPATH=`echo $REALPATH | sed -e 's;:; ;g'`
-
- if [ "$REALPATH" = "$SCRIPT" ]
- then
- CHANGED=""
- else
- SCRIPT="$REALPATH"
- fi
-done
-
-# Change the current directory to the location of the script
-cd "`dirname "$REALPATH"`"
-REALDIR=`pwd`
-
-# If the PIDDIR is relative, set its value relative to the full REALPATH to avoid problems if
-# the working directory is later changed.
-FIRST_CHAR=`echo $PIDDIR | cut -c1,1`
-if [ "$FIRST_CHAR" != "/" ]
-then
- PIDDIR=$REALDIR/$PIDDIR
-fi
-# Same test for WRAPPER_CMD
-FIRST_CHAR=`echo $WRAPPER_CMD | cut -c1,1`
-if [ "$FIRST_CHAR" != "/" ]
-then
- WRAPPER_CMD=$REALDIR/$WRAPPER_CMD
-fi
-# Same test for WRAPPER_CONF
-FIRST_CHAR=`echo $WRAPPER_CONF | cut -c1,1`
-if [ "$FIRST_CHAR" != "/" ]
-then
- WRAPPER_CONF=$REALDIR/$WRAPPER_CONF
-fi
-
-# Process ID
-ANCHORFILE="$PIDDIR/$APP_NAME.anchor"
-PIDFILE="$PIDDIR/$APP_NAME.pid"
-LOCKDIR="/var/lock/subsys"
-LOCKFILE="$LOCKDIR/$APP_NAME"
-pid=""
-
-# Resolve the location of the 'ps' command
-PSEXE="/usr/bin/ps"
-if [ ! -x $PSEXE ]
-then
- PSEXE="/bin/ps"
- if [ ! -x $PSEXE ]
- then
- echo "Unable to locate 'ps'."
- echo "Please report this message along with the location of the command on your system."
- exit 1
- fi
-fi
-
-# Resolve the os
-DIST_OS=`uname -s | tr [:upper:] [:lower:] | tr -d [:blank:]`
-case "$DIST_OS" in
- 'sunos')
- DIST_OS="solaris"
- ;;
- 'hp-ux' | 'hp-ux64')
- DIST_OS="hpux"
- ;;
- 'darwin')
- DIST_OS="macosx"
- ;;
- 'unix_sv')
- DIST_OS="unixware"
- ;;
-esac
-
-# Resolve the architecture
-DIST_ARCH=`uname -p | tr [:upper:] [:lower:] | tr -d [:blank:]`
-if [ "$DIST_ARCH" = "unknown" ]
-then
- DIST_ARCH=`uname -m | tr [:upper:] [:lower:] | tr -d [:blank:]`
-fi
-case "$DIST_ARCH" in
- 'amd64' | 'ia32' | 'ia64' | 'i386' | 'i486' | 'i586' | 'i686' | 'x86_64')
- DIST_ARCH="x86"
- ;;
- 'ip27')
- DIST_ARCH="mips"
- ;;
- 'power' | 'powerpc' | 'power_pc' | 'ppc64')
- DIST_ARCH="ppc"
- ;;
- 'pa_risc' | 'pa-risc')
- DIST_ARCH="parisc"
- ;;
- 'sun4u' | 'sparcv9')
- DIST_ARCH="sparc"
- ;;
- '9000/800')
- DIST_ARCH="parisc"
- ;;
-esac
-
-# Decide on the wrapper binary to use.
-# If a 32-bit wrapper binary exists then it will work on 32 or 64 bit
-# platforms, if the 64-bit binary exists then the distribution most
-# likely wants to use long names. Otherwise, look for the default.
-# For macosx, we also want to look for universal binaries.
-WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-32"
-if [ -x $WRAPPER_TEST_CMD ]
-then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
-else
- if [ "$DIST_OS" = "macosx" ]
- then
- WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-universal-32"
- if [ -x $WRAPPER_TEST_CMD ]
- then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
- else
- WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-64"
- if [ -x $WRAPPER_TEST_CMD ]
- then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
- else
- WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-universal-64"
- if [ -x $WRAPPER_TEST_CMD ]
- then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
- else
- if [ ! -x $WRAPPER_CMD ]
- then
- echo "Unable to locate any of the following binaries:"
- echo " $WRAPPER_CMD-$DIST_OS-$DIST_ARCH-32"
- echo " $WRAPPER_CMD-$DIST_OS-universal-32"
- echo " $WRAPPER_CMD-$DIST_OS-$DIST_ARCH-64"
- echo " $WRAPPER_CMD-$DIST_OS-universal-64"
- echo " $WRAPPER_CMD"
- exit 1
- fi
- fi
- fi
- fi
- else
- WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-64"
- if [ -x $WRAPPER_TEST_CMD ]
- then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
- else
- if [ ! -x $WRAPPER_CMD ]
- then
- echo "Unable to locate any of the following binaries:"
- echo " $WRAPPER_CMD-$DIST_OS-$DIST_ARCH-32"
- echo " $WRAPPER_CMD-$DIST_OS-$DIST_ARCH-64"
- echo " $WRAPPER_CMD"
- exit 1
- fi
- fi
- fi
-fi
-
-# Build the nice clause
-if [ "X$PRIORITY" = "X" ]
-then
- CMDNICE=""
-else
- CMDNICE="nice -$PRIORITY"
-fi
-
-# Build the anchor file clause.
-if [ "X$IGNORE_SIGNALS" = "X" ]
-then
- ANCHORPROP=
- IGNOREPROP=
-else
- ANCHORPROP=wrapper.anchorfile=$ANCHORFILE
- IGNOREPROP=wrapper.ignore_signals=TRUE
-fi
-
-# Build the lock file clause. Only create a lock file if the lock directory exists on this platform.
-if [ -d $LOCKDIR ]
-then
- LOCKPROP=wrapper.lockfile=$LOCKFILE
-else
- LOCKPROP=
-fi
-
-checkUser() {
- # Check the configured user. If necessary rerun this script as the desired user.
- if [ "X$RUN_AS_USER" != "X" ]
- then
- # Resolve the location of the 'id' command
- IDEXE="/usr/xpg4/bin/id"
- if [ ! -x $IDEXE ]
- then
- IDEXE="/usr/bin/id"
- if [ ! -x $IDEXE ]
- then
- echo "Unable to locate 'id'."
- echo "Please report this message along with the location of the command on your system."
- exit 1
- fi
- fi
-
- if [ "`$IDEXE -u -n`" = "$RUN_AS_USER" ]
- then
- # Already running as the configured user. Avoid password prompts by not calling su.
- RUN_AS_USER=""
- fi
- fi
- if [ "X$RUN_AS_USER" != "X" ]
- then
- # If LOCKPROP and $RUN_AS_USER are defined then the new user will most likely not be
- # able to create the lock file. The Wrapper will be able to update this file once it
- # is created but will not be able to delete it on shutdown. If $2 is defined then
- # the lock file should be created for the current command
- if [ "X$LOCKPROP" != "X" ]
- then
- if [ "X$2" != "X" ]
- then
- # Resolve the primary group
- RUN_AS_GROUP=`groups $RUN_AS_USER | awk '{print $3}' | tail -1`
- if [ "X$RUN_AS_GROUP" = "X" ]
- then
- RUN_AS_GROUP=RUN_AS_USER
- fi
- touch $LOCKFILE
- chown $RUN_AS_USER:$RUN_AS_GROUP $LOCKFILE
- fi
- fi
-
- # Still want to change users, recurse. This means that the user will only be
- # prompted for a password once.
- su -m $RUN_AS_USER -c "$REALPATH $1"
-
- # Now that we are the original user again, we may need to clean up the lock file.
- if [ "X$LOCKPROP" != "X" ]
- then
- getpid
- if [ "X$pid" = "X" ]
- then
- # Wrapper is not running so make sure the lock file is deleted.
- if [ -f $LOCKFILE ]
- then
- rm $LOCKFILE
- fi
- fi
- fi
-
- exit 0
- fi
-}
-
-getpid() {
- if [ -f $PIDFILE ]
- then
- if [ -r $PIDFILE ]
- then
- pid=`cat $PIDFILE`
- if [ "X$pid" != "X" ]
- then
- # It is possible that 'a' process with the pid exists but that it is not the
- # correct process. This can happen in a number of cases, but the most
- # common is during system startup after an unclean shutdown.
- # The ps statement below looks for the specific wrapper command running as
- # the pid. If it is not found then the pid file is considered to be stale.
- pidtest=`$PSEXE -p $pid -o args | grep $WRAPPER_CMD | tail -1`
- if [ "X$pidtest" = "X" ]
- then
- # This is a stale pid file.
- rm -f $PIDFILE
- echo "Removed stale pid file: $PIDFILE"
- pid=""
- fi
- fi
- else
- echo "Cannot read $PIDFILE."
- exit 1
- fi
- fi
-}
-
-testpid() {
- pid=`$PSEXE -p $pid | grep $pid | grep -v grep | awk '{print $1}' | tail -1`
- if [ "X$pid" = "X" ]
- then
- # Process is gone so remove the pid file.
- rm -f $PIDFILE
- pid=""
- fi
-}
-
-console() {
- echo "Running $APP_LONG_NAME..."
- getpid
- if [ "X$pid" = "X" ]
- then
- COMMAND_LINE="$CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.syslog.ident=$APP_NAME wrapper.pidfile=$PIDFILE $ANCHORPROP $LOCKPROP"
- exec $COMMAND_LINE
- else
- echo "$APP_LONG_NAME is already running."
- exit 1
- fi
-}
-
-start() {
- echo "Starting $APP_LONG_NAME..."
- getpid
- if [ "X$pid" = "X" ]
- then
- COMMAND_LINE="$CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.syslog.ident=$APP_NAME wrapper.pidfile=$PIDFILE wrapper.daemonize=TRUE $ANCHORPROP $IGNOREPROP $LOCKPROP"
- exec $COMMAND_LINE
- else
- echo "$APP_LONG_NAME is already running."
- exit 1
- fi
-}
-
-stopit() {
- echo "Stopping $APP_LONG_NAME..."
- getpid
- if [ "X$pid" = "X" ]
- then
- echo "$APP_LONG_NAME was not running."
- else
- if [ "X$IGNORE_SIGNALS" = "X" ]
- then
- # Running so try to stop it.
- kill $pid
- if [ $? -ne 0 ]
- then
- # An explanation for the failure should have been given
- echo "Unable to stop $APP_LONG_NAME."
- exit 1
- fi
- else
- rm -f $ANCHORFILE
- if [ -f $ANCHORFILE ]
- then
- # An explanation for the failure should have been given
- echo "Unable to stop $APP_LONG_NAME."
- exit 1
- fi
- fi
-
- # We can not predict how long it will take for the wrapper to
- # actually stop as it depends on settings in wrapper.conf.
- # Loop until it does.
- savepid=$pid
- CNT=0
- TOTCNT=0
- while [ "X$pid" != "X" ]
- do
- # Show a waiting message every 5 seconds.
- if [ "$CNT" -lt "5" ]
- then
- CNT=`expr $CNT + 1`
- else
- echo "Waiting for $APP_LONG_NAME to exit..."
- CNT=0
- fi
- TOTCNT=`expr $TOTCNT + 1`
-
- sleep 1
-
- testpid
- done
-
- pid=$savepid
- testpid
- if [ "X$pid" != "X" ]
- then
- echo "Failed to stop $APP_LONG_NAME."
- exit 1
- else
- echo "Stopped $APP_LONG_NAME."
- fi
- fi
-}
-
-status() {
- getpid
- if [ "X$pid" = "X" ]
- then
- echo "$APP_LONG_NAME is not running."
- exit 1
- else
- echo "$APP_LONG_NAME is running ($pid)."
- exit 0
- fi
-}
-
-dump() {
- echo "Dumping $APP_LONG_NAME..."
- getpid
- if [ "X$pid" = "X" ]
- then
- echo "$APP_LONG_NAME was not running."
-
- else
- kill -3 $pid
-
- if [ $? -ne 0 ]
- then
- echo "Failed to dump $APP_LONG_NAME."
- exit 1
- else
- echo "Dumped $APP_LONG_NAME."
- fi
- fi
-}
-
-case "$1" in
-
- 'console')
- checkUser $1 touchlock
- console
- ;;
-
- 'start')
- checkUser $1 touchlock
- start
- ;;
-
- 'stop')
- checkUser $1
- stopit
- ;;
-
- 'restart')
- checkUser $1 touchlock
- stopit
- start
- ;;
-
- 'status')
- checkUser $1
- status
- ;;
-
- 'dump')
- checkUser $1
- dump
- ;;
-
- *)
- echo "Usage: $0 { console | start | stop | restart | status | dump }"
- exit 1
- ;;
-esac
-
-exit 0
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-linux-x86-64-3.2.0/bin/wrapper b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-linux-x86-64-3.2.0/bin/wrapper
deleted file mode 100755
index d6b4fe9b4..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-linux-x86-64-3.2.0/bin/wrapper and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-linux-x86-64-3.2.0/lib/libwrapper.so b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-linux-x86-64-3.2.0/lib/libwrapper.so
deleted file mode 100755
index 6825bcda5..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-linux-x86-64-3.2.0/lib/libwrapper.so and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-linux-x86-64-3.2.0/lib/wrapper.jar b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-linux-x86-64-3.2.0/lib/wrapper.jar
deleted file mode 100644
index c76640599..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-linux-x86-64-3.2.0/lib/wrapper.jar and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-linux-x86-64-3.2.0/lib/wrappertest.jar b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-linux-x86-64-3.2.0/lib/wrappertest.jar
deleted file mode 100644
index 10e009322..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-linux-x86-64-3.2.0/lib/wrappertest.jar and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-macosx-universal-32-3.2.0/bin/testwrapper b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-macosx-universal-32-3.2.0/bin/testwrapper
deleted file mode 100755
index 1dfc5c100..000000000
--- a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-macosx-universal-32-3.2.0/bin/testwrapper
+++ /dev/null
@@ -1,530 +0,0 @@
-#! /bin/sh
-
-#
-# Copyright (c) 1999, 2006 Tanuki Software Inc.
-#
-# Java Service Wrapper sh script. Suitable for starting and stopping
-# wrapped Java applications on UNIX platforms.
-#
-
-#-----------------------------------------------------------------------------
-# These settings can be modified to fit the needs of your application
-
-# Application
-APP_NAME="testwrapper"
-APP_LONG_NAME="Test Wrapper Sample Application"
-
-# Wrapper
-WRAPPER_CMD="./wrapper"
-WRAPPER_CONF="../conf/wrapper.conf"
-
-# Priority at which to run the wrapper. See "man nice" for valid priorities.
-# nice is only used if a priority is specified.
-PRIORITY=
-
-# Location of the pid file.
-PIDDIR="."
-
-# If uncommented, causes the Wrapper to be shutdown using an anchor file.
-# When launched with the 'start' command, it will also ignore all INT and
-# TERM signals.
-#IGNORE_SIGNALS=true
-
-# If specified, the Wrapper will be run as the specified user.
-# IMPORTANT - Make sure that the user has the required privileges to write
-# the PID file and wrapper.log files. Failure to be able to write the log
-# file will cause the Wrapper to exit without any way to write out an error
-# message.
-# NOTE - This will set the user which is used to run the Wrapper as well as
-# the JVM and is not useful in situations where a privileged resource or
-# port needs to be allocated prior to the user being changed.
-#RUN_AS_USER=
-
-# The following two lines are used by the chkconfig command. Change as is
-# appropriate for your application. They should remain commented.
-# chkconfig: 2345 20 80
-# description: Test Wrapper Sample Application
-
-# Do not modify anything beyond this point
-#-----------------------------------------------------------------------------
-
-# Get the fully qualified path to the script
-case $0 in
- /*)
- SCRIPT="$0"
- ;;
- *)
- PWD=`pwd`
- SCRIPT="$PWD/$0"
- ;;
-esac
-
-# Resolve the true real path without any sym links.
-CHANGED=true
-while [ "X$CHANGED" != "X" ]
-do
- # Change spaces to ":" so the tokens can be parsed.
- SCRIPT=`echo $SCRIPT | sed -e 's; ;:;g'`
- # Get the real path to this script, resolving any symbolic links
- TOKENS=`echo $SCRIPT | sed -e 's;/; ;g'`
- REALPATH=
- for C in $TOKENS; do
- REALPATH="$REALPATH/$C"
- while [ -h "$REALPATH" ] ; do
- LS="`ls -ld "$REALPATH"`"
- LINK="`expr "$LS" : '.*-> \(.*\)$'`"
- if expr "$LINK" : '/.*' > /dev/null; then
- REALPATH="$LINK"
- else
- REALPATH="`dirname "$REALPATH"`""/$LINK"
- fi
- done
- done
- # Change ":" chars back to spaces.
- REALPATH=`echo $REALPATH | sed -e 's;:; ;g'`
-
- if [ "$REALPATH" = "$SCRIPT" ]
- then
- CHANGED=""
- else
- SCRIPT="$REALPATH"
- fi
-done
-
-# Change the current directory to the location of the script
-cd "`dirname "$REALPATH"`"
-REALDIR=`pwd`
-
-# If the PIDDIR is relative, set its value relative to the full REALPATH to avoid problems if
-# the working directory is later changed.
-FIRST_CHAR=`echo $PIDDIR | cut -c1,1`
-if [ "$FIRST_CHAR" != "/" ]
-then
- PIDDIR=$REALDIR/$PIDDIR
-fi
-# Same test for WRAPPER_CMD
-FIRST_CHAR=`echo $WRAPPER_CMD | cut -c1,1`
-if [ "$FIRST_CHAR" != "/" ]
-then
- WRAPPER_CMD=$REALDIR/$WRAPPER_CMD
-fi
-# Same test for WRAPPER_CONF
-FIRST_CHAR=`echo $WRAPPER_CONF | cut -c1,1`
-if [ "$FIRST_CHAR" != "/" ]
-then
- WRAPPER_CONF=$REALDIR/$WRAPPER_CONF
-fi
-
-# Process ID
-ANCHORFILE="$PIDDIR/$APP_NAME.anchor"
-PIDFILE="$PIDDIR/$APP_NAME.pid"
-LOCKDIR="/var/lock/subsys"
-LOCKFILE="$LOCKDIR/$APP_NAME"
-pid=""
-
-# Resolve the location of the 'ps' command
-PSEXE="/usr/bin/ps"
-if [ ! -x $PSEXE ]
-then
- PSEXE="/bin/ps"
- if [ ! -x $PSEXE ]
- then
- echo "Unable to locate 'ps'."
- echo "Please report this message along with the location of the command on your system."
- exit 1
- fi
-fi
-
-# Resolve the os
-DIST_OS=`uname -s | tr [:upper:] [:lower:] | tr -d [:blank:]`
-case "$DIST_OS" in
- 'sunos')
- DIST_OS="solaris"
- ;;
- 'hp-ux' | 'hp-ux64')
- DIST_OS="hpux"
- ;;
- 'darwin')
- DIST_OS="macosx"
- ;;
- 'unix_sv')
- DIST_OS="unixware"
- ;;
-esac
-
-# Resolve the architecture
-DIST_ARCH=`uname -p | tr [:upper:] [:lower:] | tr -d [:blank:]`
-if [ "$DIST_ARCH" = "unknown" ]
-then
- DIST_ARCH=`uname -m | tr [:upper:] [:lower:] | tr -d [:blank:]`
-fi
-case "$DIST_ARCH" in
- 'amd64' | 'ia32' | 'ia64' | 'i386' | 'i486' | 'i586' | 'i686' | 'x86_64')
- DIST_ARCH="x86"
- ;;
- 'ip27')
- DIST_ARCH="mips"
- ;;
- 'power' | 'powerpc' | 'power_pc' | 'ppc64')
- DIST_ARCH="ppc"
- ;;
- 'pa_risc' | 'pa-risc')
- DIST_ARCH="parisc"
- ;;
- 'sun4u' | 'sparcv9')
- DIST_ARCH="sparc"
- ;;
- '9000/800')
- DIST_ARCH="parisc"
- ;;
-esac
-
-# Decide on the wrapper binary to use.
-# If a 32-bit wrapper binary exists then it will work on 32 or 64 bit
-# platforms, if the 64-bit binary exists then the distribution most
-# likely wants to use long names. Otherwise, look for the default.
-# For macosx, we also want to look for universal binaries.
-WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-32"
-if [ -x $WRAPPER_TEST_CMD ]
-then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
-else
- if [ "$DIST_OS" = "macosx" ]
- then
- WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-universal-32"
- if [ -x $WRAPPER_TEST_CMD ]
- then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
- else
- WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-64"
- if [ -x $WRAPPER_TEST_CMD ]
- then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
- else
- WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-universal-64"
- if [ -x $WRAPPER_TEST_CMD ]
- then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
- else
- if [ ! -x $WRAPPER_CMD ]
- then
- echo "Unable to locate any of the following binaries:"
- echo " $WRAPPER_CMD-$DIST_OS-$DIST_ARCH-32"
- echo " $WRAPPER_CMD-$DIST_OS-universal-32"
- echo " $WRAPPER_CMD-$DIST_OS-$DIST_ARCH-64"
- echo " $WRAPPER_CMD-$DIST_OS-universal-64"
- echo " $WRAPPER_CMD"
- exit 1
- fi
- fi
- fi
- fi
- else
- WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-64"
- if [ -x $WRAPPER_TEST_CMD ]
- then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
- else
- if [ ! -x $WRAPPER_CMD ]
- then
- echo "Unable to locate any of the following binaries:"
- echo " $WRAPPER_CMD-$DIST_OS-$DIST_ARCH-32"
- echo " $WRAPPER_CMD-$DIST_OS-$DIST_ARCH-64"
- echo " $WRAPPER_CMD"
- exit 1
- fi
- fi
- fi
-fi
-
-# Build the nice clause
-if [ "X$PRIORITY" = "X" ]
-then
- CMDNICE=""
-else
- CMDNICE="nice -$PRIORITY"
-fi
-
-# Build the anchor file clause.
-if [ "X$IGNORE_SIGNALS" = "X" ]
-then
- ANCHORPROP=
- IGNOREPROP=
-else
- ANCHORPROP=wrapper.anchorfile=$ANCHORFILE
- IGNOREPROP=wrapper.ignore_signals=TRUE
-fi
-
-# Build the lock file clause. Only create a lock file if the lock directory exists on this platform.
-if [ -d $LOCKDIR ]
-then
- LOCKPROP=wrapper.lockfile=$LOCKFILE
-else
- LOCKPROP=
-fi
-
-checkUser() {
- # Check the configured user. If necessary rerun this script as the desired user.
- if [ "X$RUN_AS_USER" != "X" ]
- then
- # Resolve the location of the 'id' command
- IDEXE="/usr/xpg4/bin/id"
- if [ ! -x $IDEXE ]
- then
- IDEXE="/usr/bin/id"
- if [ ! -x $IDEXE ]
- then
- echo "Unable to locate 'id'."
- echo "Please report this message along with the location of the command on your system."
- exit 1
- fi
- fi
-
- if [ "`$IDEXE -u -n`" = "$RUN_AS_USER" ]
- then
- # Already running as the configured user. Avoid password prompts by not calling su.
- RUN_AS_USER=""
- fi
- fi
- if [ "X$RUN_AS_USER" != "X" ]
- then
- # If LOCKPROP and $RUN_AS_USER are defined then the new user will most likely not be
- # able to create the lock file. The Wrapper will be able to update this file once it
- # is created but will not be able to delete it on shutdown. If $2 is defined then
- # the lock file should be created for the current command
- if [ "X$LOCKPROP" != "X" ]
- then
- if [ "X$2" != "X" ]
- then
- # Resolve the primary group
- RUN_AS_GROUP=`groups $RUN_AS_USER | awk '{print $3}' | tail -1`
- if [ "X$RUN_AS_GROUP" = "X" ]
- then
- RUN_AS_GROUP=RUN_AS_USER
- fi
- touch $LOCKFILE
- chown $RUN_AS_USER:$RUN_AS_GROUP $LOCKFILE
- fi
- fi
-
- # Still want to change users, recurse. This means that the user will only be
- # prompted for a password once.
- su -m $RUN_AS_USER -c "$REALPATH $1"
-
- # Now that we are the original user again, we may need to clean up the lock file.
- if [ "X$LOCKPROP" != "X" ]
- then
- getpid
- if [ "X$pid" = "X" ]
- then
- # Wrapper is not running so make sure the lock file is deleted.
- if [ -f $LOCKFILE ]
- then
- rm $LOCKFILE
- fi
- fi
- fi
-
- exit 0
- fi
-}
-
-getpid() {
- if [ -f $PIDFILE ]
- then
- if [ -r $PIDFILE ]
- then
- pid=`cat $PIDFILE`
- if [ "X$pid" != "X" ]
- then
- # It is possible that 'a' process with the pid exists but that it is not the
- # correct process. This can happen in a number of cases, but the most
- # common is during system startup after an unclean shutdown.
- # The ps statement below looks for the specific wrapper command running as
- # the pid. If it is not found then the pid file is considered to be stale.
- pidtest=`$PSEXE -p $pid -o args | grep $WRAPPER_CMD | tail -1`
- if [ "X$pidtest" = "X" ]
- then
- # This is a stale pid file.
- rm -f $PIDFILE
- echo "Removed stale pid file: $PIDFILE"
- pid=""
- fi
- fi
- else
- echo "Cannot read $PIDFILE."
- exit 1
- fi
- fi
-}
-
-testpid() {
- pid=`$PSEXE -p $pid | grep $pid | grep -v grep | awk '{print $1}' | tail -1`
- if [ "X$pid" = "X" ]
- then
- # Process is gone so remove the pid file.
- rm -f $PIDFILE
- pid=""
- fi
-}
-
-console() {
- echo "Running $APP_LONG_NAME..."
- getpid
- if [ "X$pid" = "X" ]
- then
- COMMAND_LINE="$CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.syslog.ident=$APP_NAME wrapper.pidfile=$PIDFILE $ANCHORPROP $LOCKPROP"
- exec $COMMAND_LINE
- else
- echo "$APP_LONG_NAME is already running."
- exit 1
- fi
-}
-
-start() {
- echo "Starting $APP_LONG_NAME..."
- getpid
- if [ "X$pid" = "X" ]
- then
- COMMAND_LINE="$CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.syslog.ident=$APP_NAME wrapper.pidfile=$PIDFILE wrapper.daemonize=TRUE $ANCHORPROP $IGNOREPROP $LOCKPROP"
- exec $COMMAND_LINE
- else
- echo "$APP_LONG_NAME is already running."
- exit 1
- fi
-}
-
-stopit() {
- echo "Stopping $APP_LONG_NAME..."
- getpid
- if [ "X$pid" = "X" ]
- then
- echo "$APP_LONG_NAME was not running."
- else
- if [ "X$IGNORE_SIGNALS" = "X" ]
- then
- # Running so try to stop it.
- kill $pid
- if [ $? -ne 0 ]
- then
- # An explanation for the failure should have been given
- echo "Unable to stop $APP_LONG_NAME."
- exit 1
- fi
- else
- rm -f $ANCHORFILE
- if [ -f $ANCHORFILE ]
- then
- # An explanation for the failure should have been given
- echo "Unable to stop $APP_LONG_NAME."
- exit 1
- fi
- fi
-
- # We can not predict how long it will take for the wrapper to
- # actually stop as it depends on settings in wrapper.conf.
- # Loop until it does.
- savepid=$pid
- CNT=0
- TOTCNT=0
- while [ "X$pid" != "X" ]
- do
- # Show a waiting message every 5 seconds.
- if [ "$CNT" -lt "5" ]
- then
- CNT=`expr $CNT + 1`
- else
- echo "Waiting for $APP_LONG_NAME to exit..."
- CNT=0
- fi
- TOTCNT=`expr $TOTCNT + 1`
-
- sleep 1
-
- testpid
- done
-
- pid=$savepid
- testpid
- if [ "X$pid" != "X" ]
- then
- echo "Failed to stop $APP_LONG_NAME."
- exit 1
- else
- echo "Stopped $APP_LONG_NAME."
- fi
- fi
-}
-
-status() {
- getpid
- if [ "X$pid" = "X" ]
- then
- echo "$APP_LONG_NAME is not running."
- exit 1
- else
- echo "$APP_LONG_NAME is running ($pid)."
- exit 0
- fi
-}
-
-dump() {
- echo "Dumping $APP_LONG_NAME..."
- getpid
- if [ "X$pid" = "X" ]
- then
- echo "$APP_LONG_NAME was not running."
-
- else
- kill -3 $pid
-
- if [ $? -ne 0 ]
- then
- echo "Failed to dump $APP_LONG_NAME."
- exit 1
- else
- echo "Dumped $APP_LONG_NAME."
- fi
- fi
-}
-
-case "$1" in
-
- 'console')
- checkUser $1 touchlock
- console
- ;;
-
- 'start')
- checkUser $1 touchlock
- start
- ;;
-
- 'stop')
- checkUser $1
- stopit
- ;;
-
- 'restart')
- checkUser $1 touchlock
- stopit
- start
- ;;
-
- 'status')
- checkUser $1
- status
- ;;
-
- 'dump')
- checkUser $1
- dump
- ;;
-
- *)
- echo "Usage: $0 { console | start | stop | restart | status | dump }"
- exit 1
- ;;
-esac
-
-exit 0
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-macosx-universal-32-3.2.0/bin/wrapper b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-macosx-universal-32-3.2.0/bin/wrapper
deleted file mode 100755
index 8c281b950..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-macosx-universal-32-3.2.0/bin/wrapper and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-macosx-universal-32-3.2.0/lib/libwrapper.jnilib b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-macosx-universal-32-3.2.0/lib/libwrapper.jnilib
deleted file mode 100755
index ae5a14e2d..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-macosx-universal-32-3.2.0/lib/libwrapper.jnilib and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-macosx-universal-32-3.2.0/lib/wrapper.jar b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-macosx-universal-32-3.2.0/lib/wrapper.jar
deleted file mode 100644
index c76640599..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-macosx-universal-32-3.2.0/lib/wrapper.jar and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-macosx-universal-32-3.2.0/lib/wrappertest.jar b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-macosx-universal-32-3.2.0/lib/wrappertest.jar
deleted file mode 100644
index 10e009322..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-macosx-universal-32-3.2.0/lib/wrappertest.jar and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-sparc-32-3.2.0/bin/testwrapper b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-sparc-32-3.2.0/bin/testwrapper
deleted file mode 100755
index 1dfc5c100..000000000
--- a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-sparc-32-3.2.0/bin/testwrapper
+++ /dev/null
@@ -1,530 +0,0 @@
-#! /bin/sh
-
-#
-# Copyright (c) 1999, 2006 Tanuki Software Inc.
-#
-# Java Service Wrapper sh script. Suitable for starting and stopping
-# wrapped Java applications on UNIX platforms.
-#
-
-#-----------------------------------------------------------------------------
-# These settings can be modified to fit the needs of your application
-
-# Application
-APP_NAME="testwrapper"
-APP_LONG_NAME="Test Wrapper Sample Application"
-
-# Wrapper
-WRAPPER_CMD="./wrapper"
-WRAPPER_CONF="../conf/wrapper.conf"
-
-# Priority at which to run the wrapper. See "man nice" for valid priorities.
-# nice is only used if a priority is specified.
-PRIORITY=
-
-# Location of the pid file.
-PIDDIR="."
-
-# If uncommented, causes the Wrapper to be shutdown using an anchor file.
-# When launched with the 'start' command, it will also ignore all INT and
-# TERM signals.
-#IGNORE_SIGNALS=true
-
-# If specified, the Wrapper will be run as the specified user.
-# IMPORTANT - Make sure that the user has the required privileges to write
-# the PID file and wrapper.log files. Failure to be able to write the log
-# file will cause the Wrapper to exit without any way to write out an error
-# message.
-# NOTE - This will set the user which is used to run the Wrapper as well as
-# the JVM and is not useful in situations where a privileged resource or
-# port needs to be allocated prior to the user being changed.
-#RUN_AS_USER=
-
-# The following two lines are used by the chkconfig command. Change as is
-# appropriate for your application. They should remain commented.
-# chkconfig: 2345 20 80
-# description: Test Wrapper Sample Application
-
-# Do not modify anything beyond this point
-#-----------------------------------------------------------------------------
-
-# Get the fully qualified path to the script
-case $0 in
- /*)
- SCRIPT="$0"
- ;;
- *)
- PWD=`pwd`
- SCRIPT="$PWD/$0"
- ;;
-esac
-
-# Resolve the true real path without any sym links.
-CHANGED=true
-while [ "X$CHANGED" != "X" ]
-do
- # Change spaces to ":" so the tokens can be parsed.
- SCRIPT=`echo $SCRIPT | sed -e 's; ;:;g'`
- # Get the real path to this script, resolving any symbolic links
- TOKENS=`echo $SCRIPT | sed -e 's;/; ;g'`
- REALPATH=
- for C in $TOKENS; do
- REALPATH="$REALPATH/$C"
- while [ -h "$REALPATH" ] ; do
- LS="`ls -ld "$REALPATH"`"
- LINK="`expr "$LS" : '.*-> \(.*\)$'`"
- if expr "$LINK" : '/.*' > /dev/null; then
- REALPATH="$LINK"
- else
- REALPATH="`dirname "$REALPATH"`""/$LINK"
- fi
- done
- done
- # Change ":" chars back to spaces.
- REALPATH=`echo $REALPATH | sed -e 's;:; ;g'`
-
- if [ "$REALPATH" = "$SCRIPT" ]
- then
- CHANGED=""
- else
- SCRIPT="$REALPATH"
- fi
-done
-
-# Change the current directory to the location of the script
-cd "`dirname "$REALPATH"`"
-REALDIR=`pwd`
-
-# If the PIDDIR is relative, set its value relative to the full REALPATH to avoid problems if
-# the working directory is later changed.
-FIRST_CHAR=`echo $PIDDIR | cut -c1,1`
-if [ "$FIRST_CHAR" != "/" ]
-then
- PIDDIR=$REALDIR/$PIDDIR
-fi
-# Same test for WRAPPER_CMD
-FIRST_CHAR=`echo $WRAPPER_CMD | cut -c1,1`
-if [ "$FIRST_CHAR" != "/" ]
-then
- WRAPPER_CMD=$REALDIR/$WRAPPER_CMD
-fi
-# Same test for WRAPPER_CONF
-FIRST_CHAR=`echo $WRAPPER_CONF | cut -c1,1`
-if [ "$FIRST_CHAR" != "/" ]
-then
- WRAPPER_CONF=$REALDIR/$WRAPPER_CONF
-fi
-
-# Process ID
-ANCHORFILE="$PIDDIR/$APP_NAME.anchor"
-PIDFILE="$PIDDIR/$APP_NAME.pid"
-LOCKDIR="/var/lock/subsys"
-LOCKFILE="$LOCKDIR/$APP_NAME"
-pid=""
-
-# Resolve the location of the 'ps' command
-PSEXE="/usr/bin/ps"
-if [ ! -x $PSEXE ]
-then
- PSEXE="/bin/ps"
- if [ ! -x $PSEXE ]
- then
- echo "Unable to locate 'ps'."
- echo "Please report this message along with the location of the command on your system."
- exit 1
- fi
-fi
-
-# Resolve the os
-DIST_OS=`uname -s | tr [:upper:] [:lower:] | tr -d [:blank:]`
-case "$DIST_OS" in
- 'sunos')
- DIST_OS="solaris"
- ;;
- 'hp-ux' | 'hp-ux64')
- DIST_OS="hpux"
- ;;
- 'darwin')
- DIST_OS="macosx"
- ;;
- 'unix_sv')
- DIST_OS="unixware"
- ;;
-esac
-
-# Resolve the architecture
-DIST_ARCH=`uname -p | tr [:upper:] [:lower:] | tr -d [:blank:]`
-if [ "$DIST_ARCH" = "unknown" ]
-then
- DIST_ARCH=`uname -m | tr [:upper:] [:lower:] | tr -d [:blank:]`
-fi
-case "$DIST_ARCH" in
- 'amd64' | 'ia32' | 'ia64' | 'i386' | 'i486' | 'i586' | 'i686' | 'x86_64')
- DIST_ARCH="x86"
- ;;
- 'ip27')
- DIST_ARCH="mips"
- ;;
- 'power' | 'powerpc' | 'power_pc' | 'ppc64')
- DIST_ARCH="ppc"
- ;;
- 'pa_risc' | 'pa-risc')
- DIST_ARCH="parisc"
- ;;
- 'sun4u' | 'sparcv9')
- DIST_ARCH="sparc"
- ;;
- '9000/800')
- DIST_ARCH="parisc"
- ;;
-esac
-
-# Decide on the wrapper binary to use.
-# If a 32-bit wrapper binary exists then it will work on 32 or 64 bit
-# platforms, if the 64-bit binary exists then the distribution most
-# likely wants to use long names. Otherwise, look for the default.
-# For macosx, we also want to look for universal binaries.
-WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-32"
-if [ -x $WRAPPER_TEST_CMD ]
-then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
-else
- if [ "$DIST_OS" = "macosx" ]
- then
- WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-universal-32"
- if [ -x $WRAPPER_TEST_CMD ]
- then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
- else
- WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-64"
- if [ -x $WRAPPER_TEST_CMD ]
- then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
- else
- WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-universal-64"
- if [ -x $WRAPPER_TEST_CMD ]
- then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
- else
- if [ ! -x $WRAPPER_CMD ]
- then
- echo "Unable to locate any of the following binaries:"
- echo " $WRAPPER_CMD-$DIST_OS-$DIST_ARCH-32"
- echo " $WRAPPER_CMD-$DIST_OS-universal-32"
- echo " $WRAPPER_CMD-$DIST_OS-$DIST_ARCH-64"
- echo " $WRAPPER_CMD-$DIST_OS-universal-64"
- echo " $WRAPPER_CMD"
- exit 1
- fi
- fi
- fi
- fi
- else
- WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-64"
- if [ -x $WRAPPER_TEST_CMD ]
- then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
- else
- if [ ! -x $WRAPPER_CMD ]
- then
- echo "Unable to locate any of the following binaries:"
- echo " $WRAPPER_CMD-$DIST_OS-$DIST_ARCH-32"
- echo " $WRAPPER_CMD-$DIST_OS-$DIST_ARCH-64"
- echo " $WRAPPER_CMD"
- exit 1
- fi
- fi
- fi
-fi
-
-# Build the nice clause
-if [ "X$PRIORITY" = "X" ]
-then
- CMDNICE=""
-else
- CMDNICE="nice -$PRIORITY"
-fi
-
-# Build the anchor file clause.
-if [ "X$IGNORE_SIGNALS" = "X" ]
-then
- ANCHORPROP=
- IGNOREPROP=
-else
- ANCHORPROP=wrapper.anchorfile=$ANCHORFILE
- IGNOREPROP=wrapper.ignore_signals=TRUE
-fi
-
-# Build the lock file clause. Only create a lock file if the lock directory exists on this platform.
-if [ -d $LOCKDIR ]
-then
- LOCKPROP=wrapper.lockfile=$LOCKFILE
-else
- LOCKPROP=
-fi
-
-checkUser() {
- # Check the configured user. If necessary rerun this script as the desired user.
- if [ "X$RUN_AS_USER" != "X" ]
- then
- # Resolve the location of the 'id' command
- IDEXE="/usr/xpg4/bin/id"
- if [ ! -x $IDEXE ]
- then
- IDEXE="/usr/bin/id"
- if [ ! -x $IDEXE ]
- then
- echo "Unable to locate 'id'."
- echo "Please report this message along with the location of the command on your system."
- exit 1
- fi
- fi
-
- if [ "`$IDEXE -u -n`" = "$RUN_AS_USER" ]
- then
- # Already running as the configured user. Avoid password prompts by not calling su.
- RUN_AS_USER=""
- fi
- fi
- if [ "X$RUN_AS_USER" != "X" ]
- then
- # If LOCKPROP and $RUN_AS_USER are defined then the new user will most likely not be
- # able to create the lock file. The Wrapper will be able to update this file once it
- # is created but will not be able to delete it on shutdown. If $2 is defined then
- # the lock file should be created for the current command
- if [ "X$LOCKPROP" != "X" ]
- then
- if [ "X$2" != "X" ]
- then
- # Resolve the primary group
- RUN_AS_GROUP=`groups $RUN_AS_USER | awk '{print $3}' | tail -1`
- if [ "X$RUN_AS_GROUP" = "X" ]
- then
- RUN_AS_GROUP=RUN_AS_USER
- fi
- touch $LOCKFILE
- chown $RUN_AS_USER:$RUN_AS_GROUP $LOCKFILE
- fi
- fi
-
- # Still want to change users, recurse. This means that the user will only be
- # prompted for a password once.
- su -m $RUN_AS_USER -c "$REALPATH $1"
-
- # Now that we are the original user again, we may need to clean up the lock file.
- if [ "X$LOCKPROP" != "X" ]
- then
- getpid
- if [ "X$pid" = "X" ]
- then
- # Wrapper is not running so make sure the lock file is deleted.
- if [ -f $LOCKFILE ]
- then
- rm $LOCKFILE
- fi
- fi
- fi
-
- exit 0
- fi
-}
-
-getpid() {
- if [ -f $PIDFILE ]
- then
- if [ -r $PIDFILE ]
- then
- pid=`cat $PIDFILE`
- if [ "X$pid" != "X" ]
- then
- # It is possible that 'a' process with the pid exists but that it is not the
- # correct process. This can happen in a number of cases, but the most
- # common is during system startup after an unclean shutdown.
- # The ps statement below looks for the specific wrapper command running as
- # the pid. If it is not found then the pid file is considered to be stale.
- pidtest=`$PSEXE -p $pid -o args | grep $WRAPPER_CMD | tail -1`
- if [ "X$pidtest" = "X" ]
- then
- # This is a stale pid file.
- rm -f $PIDFILE
- echo "Removed stale pid file: $PIDFILE"
- pid=""
- fi
- fi
- else
- echo "Cannot read $PIDFILE."
- exit 1
- fi
- fi
-}
-
-testpid() {
- pid=`$PSEXE -p $pid | grep $pid | grep -v grep | awk '{print $1}' | tail -1`
- if [ "X$pid" = "X" ]
- then
- # Process is gone so remove the pid file.
- rm -f $PIDFILE
- pid=""
- fi
-}
-
-console() {
- echo "Running $APP_LONG_NAME..."
- getpid
- if [ "X$pid" = "X" ]
- then
- COMMAND_LINE="$CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.syslog.ident=$APP_NAME wrapper.pidfile=$PIDFILE $ANCHORPROP $LOCKPROP"
- exec $COMMAND_LINE
- else
- echo "$APP_LONG_NAME is already running."
- exit 1
- fi
-}
-
-start() {
- echo "Starting $APP_LONG_NAME..."
- getpid
- if [ "X$pid" = "X" ]
- then
- COMMAND_LINE="$CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.syslog.ident=$APP_NAME wrapper.pidfile=$PIDFILE wrapper.daemonize=TRUE $ANCHORPROP $IGNOREPROP $LOCKPROP"
- exec $COMMAND_LINE
- else
- echo "$APP_LONG_NAME is already running."
- exit 1
- fi
-}
-
-stopit() {
- echo "Stopping $APP_LONG_NAME..."
- getpid
- if [ "X$pid" = "X" ]
- then
- echo "$APP_LONG_NAME was not running."
- else
- if [ "X$IGNORE_SIGNALS" = "X" ]
- then
- # Running so try to stop it.
- kill $pid
- if [ $? -ne 0 ]
- then
- # An explanation for the failure should have been given
- echo "Unable to stop $APP_LONG_NAME."
- exit 1
- fi
- else
- rm -f $ANCHORFILE
- if [ -f $ANCHORFILE ]
- then
- # An explanation for the failure should have been given
- echo "Unable to stop $APP_LONG_NAME."
- exit 1
- fi
- fi
-
- # We can not predict how long it will take for the wrapper to
- # actually stop as it depends on settings in wrapper.conf.
- # Loop until it does.
- savepid=$pid
- CNT=0
- TOTCNT=0
- while [ "X$pid" != "X" ]
- do
- # Show a waiting message every 5 seconds.
- if [ "$CNT" -lt "5" ]
- then
- CNT=`expr $CNT + 1`
- else
- echo "Waiting for $APP_LONG_NAME to exit..."
- CNT=0
- fi
- TOTCNT=`expr $TOTCNT + 1`
-
- sleep 1
-
- testpid
- done
-
- pid=$savepid
- testpid
- if [ "X$pid" != "X" ]
- then
- echo "Failed to stop $APP_LONG_NAME."
- exit 1
- else
- echo "Stopped $APP_LONG_NAME."
- fi
- fi
-}
-
-status() {
- getpid
- if [ "X$pid" = "X" ]
- then
- echo "$APP_LONG_NAME is not running."
- exit 1
- else
- echo "$APP_LONG_NAME is running ($pid)."
- exit 0
- fi
-}
-
-dump() {
- echo "Dumping $APP_LONG_NAME..."
- getpid
- if [ "X$pid" = "X" ]
- then
- echo "$APP_LONG_NAME was not running."
-
- else
- kill -3 $pid
-
- if [ $? -ne 0 ]
- then
- echo "Failed to dump $APP_LONG_NAME."
- exit 1
- else
- echo "Dumped $APP_LONG_NAME."
- fi
- fi
-}
-
-case "$1" in
-
- 'console')
- checkUser $1 touchlock
- console
- ;;
-
- 'start')
- checkUser $1 touchlock
- start
- ;;
-
- 'stop')
- checkUser $1
- stopit
- ;;
-
- 'restart')
- checkUser $1 touchlock
- stopit
- start
- ;;
-
- 'status')
- checkUser $1
- status
- ;;
-
- 'dump')
- checkUser $1
- dump
- ;;
-
- *)
- echo "Usage: $0 { console | start | stop | restart | status | dump }"
- exit 1
- ;;
-esac
-
-exit 0
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-sparc-32-3.2.0/bin/wrapper b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-sparc-32-3.2.0/bin/wrapper
deleted file mode 100755
index f3b355c59..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-sparc-32-3.2.0/bin/wrapper and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-sparc-32-3.2.0/lib/libwrapper.so b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-sparc-32-3.2.0/lib/libwrapper.so
deleted file mode 100755
index 1bbfd73dd..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-sparc-32-3.2.0/lib/libwrapper.so and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-sparc-32-3.2.0/lib/wrapper.jar b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-sparc-32-3.2.0/lib/wrapper.jar
deleted file mode 100644
index c76640599..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-sparc-32-3.2.0/lib/wrapper.jar and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-sparc-32-3.2.0/lib/wrappertest.jar b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-sparc-32-3.2.0/lib/wrappertest.jar
deleted file mode 100644
index 10e009322..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-sparc-32-3.2.0/lib/wrappertest.jar and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-sparc-64-3.2.0/bin/testwrapper b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-sparc-64-3.2.0/bin/testwrapper
deleted file mode 100755
index 1dfc5c100..000000000
--- a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-sparc-64-3.2.0/bin/testwrapper
+++ /dev/null
@@ -1,530 +0,0 @@
-#! /bin/sh
-
-#
-# Copyright (c) 1999, 2006 Tanuki Software Inc.
-#
-# Java Service Wrapper sh script. Suitable for starting and stopping
-# wrapped Java applications on UNIX platforms.
-#
-
-#-----------------------------------------------------------------------------
-# These settings can be modified to fit the needs of your application
-
-# Application
-APP_NAME="testwrapper"
-APP_LONG_NAME="Test Wrapper Sample Application"
-
-# Wrapper
-WRAPPER_CMD="./wrapper"
-WRAPPER_CONF="../conf/wrapper.conf"
-
-# Priority at which to run the wrapper. See "man nice" for valid priorities.
-# nice is only used if a priority is specified.
-PRIORITY=
-
-# Location of the pid file.
-PIDDIR="."
-
-# If uncommented, causes the Wrapper to be shutdown using an anchor file.
-# When launched with the 'start' command, it will also ignore all INT and
-# TERM signals.
-#IGNORE_SIGNALS=true
-
-# If specified, the Wrapper will be run as the specified user.
-# IMPORTANT - Make sure that the user has the required privileges to write
-# the PID file and wrapper.log files. Failure to be able to write the log
-# file will cause the Wrapper to exit without any way to write out an error
-# message.
-# NOTE - This will set the user which is used to run the Wrapper as well as
-# the JVM and is not useful in situations where a privileged resource or
-# port needs to be allocated prior to the user being changed.
-#RUN_AS_USER=
-
-# The following two lines are used by the chkconfig command. Change as is
-# appropriate for your application. They should remain commented.
-# chkconfig: 2345 20 80
-# description: Test Wrapper Sample Application
-
-# Do not modify anything beyond this point
-#-----------------------------------------------------------------------------
-
-# Get the fully qualified path to the script
-case $0 in
- /*)
- SCRIPT="$0"
- ;;
- *)
- PWD=`pwd`
- SCRIPT="$PWD/$0"
- ;;
-esac
-
-# Resolve the true real path without any sym links.
-CHANGED=true
-while [ "X$CHANGED" != "X" ]
-do
- # Change spaces to ":" so the tokens can be parsed.
- SCRIPT=`echo $SCRIPT | sed -e 's; ;:;g'`
- # Get the real path to this script, resolving any symbolic links
- TOKENS=`echo $SCRIPT | sed -e 's;/; ;g'`
- REALPATH=
- for C in $TOKENS; do
- REALPATH="$REALPATH/$C"
- while [ -h "$REALPATH" ] ; do
- LS="`ls -ld "$REALPATH"`"
- LINK="`expr "$LS" : '.*-> \(.*\)$'`"
- if expr "$LINK" : '/.*' > /dev/null; then
- REALPATH="$LINK"
- else
- REALPATH="`dirname "$REALPATH"`""/$LINK"
- fi
- done
- done
- # Change ":" chars back to spaces.
- REALPATH=`echo $REALPATH | sed -e 's;:; ;g'`
-
- if [ "$REALPATH" = "$SCRIPT" ]
- then
- CHANGED=""
- else
- SCRIPT="$REALPATH"
- fi
-done
-
-# Change the current directory to the location of the script
-cd "`dirname "$REALPATH"`"
-REALDIR=`pwd`
-
-# If the PIDDIR is relative, set its value relative to the full REALPATH to avoid problems if
-# the working directory is later changed.
-FIRST_CHAR=`echo $PIDDIR | cut -c1,1`
-if [ "$FIRST_CHAR" != "/" ]
-then
- PIDDIR=$REALDIR/$PIDDIR
-fi
-# Same test for WRAPPER_CMD
-FIRST_CHAR=`echo $WRAPPER_CMD | cut -c1,1`
-if [ "$FIRST_CHAR" != "/" ]
-then
- WRAPPER_CMD=$REALDIR/$WRAPPER_CMD
-fi
-# Same test for WRAPPER_CONF
-FIRST_CHAR=`echo $WRAPPER_CONF | cut -c1,1`
-if [ "$FIRST_CHAR" != "/" ]
-then
- WRAPPER_CONF=$REALDIR/$WRAPPER_CONF
-fi
-
-# Process ID
-ANCHORFILE="$PIDDIR/$APP_NAME.anchor"
-PIDFILE="$PIDDIR/$APP_NAME.pid"
-LOCKDIR="/var/lock/subsys"
-LOCKFILE="$LOCKDIR/$APP_NAME"
-pid=""
-
-# Resolve the location of the 'ps' command
-PSEXE="/usr/bin/ps"
-if [ ! -x $PSEXE ]
-then
- PSEXE="/bin/ps"
- if [ ! -x $PSEXE ]
- then
- echo "Unable to locate 'ps'."
- echo "Please report this message along with the location of the command on your system."
- exit 1
- fi
-fi
-
-# Resolve the os
-DIST_OS=`uname -s | tr [:upper:] [:lower:] | tr -d [:blank:]`
-case "$DIST_OS" in
- 'sunos')
- DIST_OS="solaris"
- ;;
- 'hp-ux' | 'hp-ux64')
- DIST_OS="hpux"
- ;;
- 'darwin')
- DIST_OS="macosx"
- ;;
- 'unix_sv')
- DIST_OS="unixware"
- ;;
-esac
-
-# Resolve the architecture
-DIST_ARCH=`uname -p | tr [:upper:] [:lower:] | tr -d [:blank:]`
-if [ "$DIST_ARCH" = "unknown" ]
-then
- DIST_ARCH=`uname -m | tr [:upper:] [:lower:] | tr -d [:blank:]`
-fi
-case "$DIST_ARCH" in
- 'amd64' | 'ia32' | 'ia64' | 'i386' | 'i486' | 'i586' | 'i686' | 'x86_64')
- DIST_ARCH="x86"
- ;;
- 'ip27')
- DIST_ARCH="mips"
- ;;
- 'power' | 'powerpc' | 'power_pc' | 'ppc64')
- DIST_ARCH="ppc"
- ;;
- 'pa_risc' | 'pa-risc')
- DIST_ARCH="parisc"
- ;;
- 'sun4u' | 'sparcv9')
- DIST_ARCH="sparc"
- ;;
- '9000/800')
- DIST_ARCH="parisc"
- ;;
-esac
-
-# Decide on the wrapper binary to use.
-# If a 32-bit wrapper binary exists then it will work on 32 or 64 bit
-# platforms, if the 64-bit binary exists then the distribution most
-# likely wants to use long names. Otherwise, look for the default.
-# For macosx, we also want to look for universal binaries.
-WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-32"
-if [ -x $WRAPPER_TEST_CMD ]
-then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
-else
- if [ "$DIST_OS" = "macosx" ]
- then
- WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-universal-32"
- if [ -x $WRAPPER_TEST_CMD ]
- then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
- else
- WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-64"
- if [ -x $WRAPPER_TEST_CMD ]
- then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
- else
- WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-universal-64"
- if [ -x $WRAPPER_TEST_CMD ]
- then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
- else
- if [ ! -x $WRAPPER_CMD ]
- then
- echo "Unable to locate any of the following binaries:"
- echo " $WRAPPER_CMD-$DIST_OS-$DIST_ARCH-32"
- echo " $WRAPPER_CMD-$DIST_OS-universal-32"
- echo " $WRAPPER_CMD-$DIST_OS-$DIST_ARCH-64"
- echo " $WRAPPER_CMD-$DIST_OS-universal-64"
- echo " $WRAPPER_CMD"
- exit 1
- fi
- fi
- fi
- fi
- else
- WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-64"
- if [ -x $WRAPPER_TEST_CMD ]
- then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
- else
- if [ ! -x $WRAPPER_CMD ]
- then
- echo "Unable to locate any of the following binaries:"
- echo " $WRAPPER_CMD-$DIST_OS-$DIST_ARCH-32"
- echo " $WRAPPER_CMD-$DIST_OS-$DIST_ARCH-64"
- echo " $WRAPPER_CMD"
- exit 1
- fi
- fi
- fi
-fi
-
-# Build the nice clause
-if [ "X$PRIORITY" = "X" ]
-then
- CMDNICE=""
-else
- CMDNICE="nice -$PRIORITY"
-fi
-
-# Build the anchor file clause.
-if [ "X$IGNORE_SIGNALS" = "X" ]
-then
- ANCHORPROP=
- IGNOREPROP=
-else
- ANCHORPROP=wrapper.anchorfile=$ANCHORFILE
- IGNOREPROP=wrapper.ignore_signals=TRUE
-fi
-
-# Build the lock file clause. Only create a lock file if the lock directory exists on this platform.
-if [ -d $LOCKDIR ]
-then
- LOCKPROP=wrapper.lockfile=$LOCKFILE
-else
- LOCKPROP=
-fi
-
-checkUser() {
- # Check the configured user. If necessary rerun this script as the desired user.
- if [ "X$RUN_AS_USER" != "X" ]
- then
- # Resolve the location of the 'id' command
- IDEXE="/usr/xpg4/bin/id"
- if [ ! -x $IDEXE ]
- then
- IDEXE="/usr/bin/id"
- if [ ! -x $IDEXE ]
- then
- echo "Unable to locate 'id'."
- echo "Please report this message along with the location of the command on your system."
- exit 1
- fi
- fi
-
- if [ "`$IDEXE -u -n`" = "$RUN_AS_USER" ]
- then
- # Already running as the configured user. Avoid password prompts by not calling su.
- RUN_AS_USER=""
- fi
- fi
- if [ "X$RUN_AS_USER" != "X" ]
- then
- # If LOCKPROP and $RUN_AS_USER are defined then the new user will most likely not be
- # able to create the lock file. The Wrapper will be able to update this file once it
- # is created but will not be able to delete it on shutdown. If $2 is defined then
- # the lock file should be created for the current command
- if [ "X$LOCKPROP" != "X" ]
- then
- if [ "X$2" != "X" ]
- then
- # Resolve the primary group
- RUN_AS_GROUP=`groups $RUN_AS_USER | awk '{print $3}' | tail -1`
- if [ "X$RUN_AS_GROUP" = "X" ]
- then
- RUN_AS_GROUP=RUN_AS_USER
- fi
- touch $LOCKFILE
- chown $RUN_AS_USER:$RUN_AS_GROUP $LOCKFILE
- fi
- fi
-
- # Still want to change users, recurse. This means that the user will only be
- # prompted for a password once.
- su -m $RUN_AS_USER -c "$REALPATH $1"
-
- # Now that we are the original user again, we may need to clean up the lock file.
- if [ "X$LOCKPROP" != "X" ]
- then
- getpid
- if [ "X$pid" = "X" ]
- then
- # Wrapper is not running so make sure the lock file is deleted.
- if [ -f $LOCKFILE ]
- then
- rm $LOCKFILE
- fi
- fi
- fi
-
- exit 0
- fi
-}
-
-getpid() {
- if [ -f $PIDFILE ]
- then
- if [ -r $PIDFILE ]
- then
- pid=`cat $PIDFILE`
- if [ "X$pid" != "X" ]
- then
- # It is possible that 'a' process with the pid exists but that it is not the
- # correct process. This can happen in a number of cases, but the most
- # common is during system startup after an unclean shutdown.
- # The ps statement below looks for the specific wrapper command running as
- # the pid. If it is not found then the pid file is considered to be stale.
- pidtest=`$PSEXE -p $pid -o args | grep $WRAPPER_CMD | tail -1`
- if [ "X$pidtest" = "X" ]
- then
- # This is a stale pid file.
- rm -f $PIDFILE
- echo "Removed stale pid file: $PIDFILE"
- pid=""
- fi
- fi
- else
- echo "Cannot read $PIDFILE."
- exit 1
- fi
- fi
-}
-
-testpid() {
- pid=`$PSEXE -p $pid | grep $pid | grep -v grep | awk '{print $1}' | tail -1`
- if [ "X$pid" = "X" ]
- then
- # Process is gone so remove the pid file.
- rm -f $PIDFILE
- pid=""
- fi
-}
-
-console() {
- echo "Running $APP_LONG_NAME..."
- getpid
- if [ "X$pid" = "X" ]
- then
- COMMAND_LINE="$CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.syslog.ident=$APP_NAME wrapper.pidfile=$PIDFILE $ANCHORPROP $LOCKPROP"
- exec $COMMAND_LINE
- else
- echo "$APP_LONG_NAME is already running."
- exit 1
- fi
-}
-
-start() {
- echo "Starting $APP_LONG_NAME..."
- getpid
- if [ "X$pid" = "X" ]
- then
- COMMAND_LINE="$CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.syslog.ident=$APP_NAME wrapper.pidfile=$PIDFILE wrapper.daemonize=TRUE $ANCHORPROP $IGNOREPROP $LOCKPROP"
- exec $COMMAND_LINE
- else
- echo "$APP_LONG_NAME is already running."
- exit 1
- fi
-}
-
-stopit() {
- echo "Stopping $APP_LONG_NAME..."
- getpid
- if [ "X$pid" = "X" ]
- then
- echo "$APP_LONG_NAME was not running."
- else
- if [ "X$IGNORE_SIGNALS" = "X" ]
- then
- # Running so try to stop it.
- kill $pid
- if [ $? -ne 0 ]
- then
- # An explanation for the failure should have been given
- echo "Unable to stop $APP_LONG_NAME."
- exit 1
- fi
- else
- rm -f $ANCHORFILE
- if [ -f $ANCHORFILE ]
- then
- # An explanation for the failure should have been given
- echo "Unable to stop $APP_LONG_NAME."
- exit 1
- fi
- fi
-
- # We can not predict how long it will take for the wrapper to
- # actually stop as it depends on settings in wrapper.conf.
- # Loop until it does.
- savepid=$pid
- CNT=0
- TOTCNT=0
- while [ "X$pid" != "X" ]
- do
- # Show a waiting message every 5 seconds.
- if [ "$CNT" -lt "5" ]
- then
- CNT=`expr $CNT + 1`
- else
- echo "Waiting for $APP_LONG_NAME to exit..."
- CNT=0
- fi
- TOTCNT=`expr $TOTCNT + 1`
-
- sleep 1
-
- testpid
- done
-
- pid=$savepid
- testpid
- if [ "X$pid" != "X" ]
- then
- echo "Failed to stop $APP_LONG_NAME."
- exit 1
- else
- echo "Stopped $APP_LONG_NAME."
- fi
- fi
-}
-
-status() {
- getpid
- if [ "X$pid" = "X" ]
- then
- echo "$APP_LONG_NAME is not running."
- exit 1
- else
- echo "$APP_LONG_NAME is running ($pid)."
- exit 0
- fi
-}
-
-dump() {
- echo "Dumping $APP_LONG_NAME..."
- getpid
- if [ "X$pid" = "X" ]
- then
- echo "$APP_LONG_NAME was not running."
-
- else
- kill -3 $pid
-
- if [ $? -ne 0 ]
- then
- echo "Failed to dump $APP_LONG_NAME."
- exit 1
- else
- echo "Dumped $APP_LONG_NAME."
- fi
- fi
-}
-
-case "$1" in
-
- 'console')
- checkUser $1 touchlock
- console
- ;;
-
- 'start')
- checkUser $1 touchlock
- start
- ;;
-
- 'stop')
- checkUser $1
- stopit
- ;;
-
- 'restart')
- checkUser $1 touchlock
- stopit
- start
- ;;
-
- 'status')
- checkUser $1
- status
- ;;
-
- 'dump')
- checkUser $1
- dump
- ;;
-
- *)
- echo "Usage: $0 { console | start | stop | restart | status | dump }"
- exit 1
- ;;
-esac
-
-exit 0
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-sparc-64-3.2.0/bin/wrapper b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-sparc-64-3.2.0/bin/wrapper
deleted file mode 100755
index 0a0c02890..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-sparc-64-3.2.0/bin/wrapper and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-sparc-64-3.2.0/lib/libwrapper.so b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-sparc-64-3.2.0/lib/libwrapper.so
deleted file mode 100755
index 6b0ab67fc..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-sparc-64-3.2.0/lib/libwrapper.so and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-sparc-64-3.2.0/lib/wrapper.jar b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-sparc-64-3.2.0/lib/wrapper.jar
deleted file mode 100644
index c76640599..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-sparc-64-3.2.0/lib/wrapper.jar and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-sparc-64-3.2.0/lib/wrappertest.jar b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-sparc-64-3.2.0/lib/wrappertest.jar
deleted file mode 100644
index 10e009322..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-sparc-64-3.2.0/lib/wrappertest.jar and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-x86-32-3.2.0/bin/testwrapper b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-x86-32-3.2.0/bin/testwrapper
deleted file mode 100755
index 1dfc5c100..000000000
--- a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-x86-32-3.2.0/bin/testwrapper
+++ /dev/null
@@ -1,530 +0,0 @@
-#! /bin/sh
-
-#
-# Copyright (c) 1999, 2006 Tanuki Software Inc.
-#
-# Java Service Wrapper sh script. Suitable for starting and stopping
-# wrapped Java applications on UNIX platforms.
-#
-
-#-----------------------------------------------------------------------------
-# These settings can be modified to fit the needs of your application
-
-# Application
-APP_NAME="testwrapper"
-APP_LONG_NAME="Test Wrapper Sample Application"
-
-# Wrapper
-WRAPPER_CMD="./wrapper"
-WRAPPER_CONF="../conf/wrapper.conf"
-
-# Priority at which to run the wrapper. See "man nice" for valid priorities.
-# nice is only used if a priority is specified.
-PRIORITY=
-
-# Location of the pid file.
-PIDDIR="."
-
-# If uncommented, causes the Wrapper to be shutdown using an anchor file.
-# When launched with the 'start' command, it will also ignore all INT and
-# TERM signals.
-#IGNORE_SIGNALS=true
-
-# If specified, the Wrapper will be run as the specified user.
-# IMPORTANT - Make sure that the user has the required privileges to write
-# the PID file and wrapper.log files. Failure to be able to write the log
-# file will cause the Wrapper to exit without any way to write out an error
-# message.
-# NOTE - This will set the user which is used to run the Wrapper as well as
-# the JVM and is not useful in situations where a privileged resource or
-# port needs to be allocated prior to the user being changed.
-#RUN_AS_USER=
-
-# The following two lines are used by the chkconfig command. Change as is
-# appropriate for your application. They should remain commented.
-# chkconfig: 2345 20 80
-# description: Test Wrapper Sample Application
-
-# Do not modify anything beyond this point
-#-----------------------------------------------------------------------------
-
-# Get the fully qualified path to the script
-case $0 in
- /*)
- SCRIPT="$0"
- ;;
- *)
- PWD=`pwd`
- SCRIPT="$PWD/$0"
- ;;
-esac
-
-# Resolve the true real path without any sym links.
-CHANGED=true
-while [ "X$CHANGED" != "X" ]
-do
- # Change spaces to ":" so the tokens can be parsed.
- SCRIPT=`echo $SCRIPT | sed -e 's; ;:;g'`
- # Get the real path to this script, resolving any symbolic links
- TOKENS=`echo $SCRIPT | sed -e 's;/; ;g'`
- REALPATH=
- for C in $TOKENS; do
- REALPATH="$REALPATH/$C"
- while [ -h "$REALPATH" ] ; do
- LS="`ls -ld "$REALPATH"`"
- LINK="`expr "$LS" : '.*-> \(.*\)$'`"
- if expr "$LINK" : '/.*' > /dev/null; then
- REALPATH="$LINK"
- else
- REALPATH="`dirname "$REALPATH"`""/$LINK"
- fi
- done
- done
- # Change ":" chars back to spaces.
- REALPATH=`echo $REALPATH | sed -e 's;:; ;g'`
-
- if [ "$REALPATH" = "$SCRIPT" ]
- then
- CHANGED=""
- else
- SCRIPT="$REALPATH"
- fi
-done
-
-# Change the current directory to the location of the script
-cd "`dirname "$REALPATH"`"
-REALDIR=`pwd`
-
-# If the PIDDIR is relative, set its value relative to the full REALPATH to avoid problems if
-# the working directory is later changed.
-FIRST_CHAR=`echo $PIDDIR | cut -c1,1`
-if [ "$FIRST_CHAR" != "/" ]
-then
- PIDDIR=$REALDIR/$PIDDIR
-fi
-# Same test for WRAPPER_CMD
-FIRST_CHAR=`echo $WRAPPER_CMD | cut -c1,1`
-if [ "$FIRST_CHAR" != "/" ]
-then
- WRAPPER_CMD=$REALDIR/$WRAPPER_CMD
-fi
-# Same test for WRAPPER_CONF
-FIRST_CHAR=`echo $WRAPPER_CONF | cut -c1,1`
-if [ "$FIRST_CHAR" != "/" ]
-then
- WRAPPER_CONF=$REALDIR/$WRAPPER_CONF
-fi
-
-# Process ID
-ANCHORFILE="$PIDDIR/$APP_NAME.anchor"
-PIDFILE="$PIDDIR/$APP_NAME.pid"
-LOCKDIR="/var/lock/subsys"
-LOCKFILE="$LOCKDIR/$APP_NAME"
-pid=""
-
-# Resolve the location of the 'ps' command
-PSEXE="/usr/bin/ps"
-if [ ! -x $PSEXE ]
-then
- PSEXE="/bin/ps"
- if [ ! -x $PSEXE ]
- then
- echo "Unable to locate 'ps'."
- echo "Please report this message along with the location of the command on your system."
- exit 1
- fi
-fi
-
-# Resolve the os
-DIST_OS=`uname -s | tr [:upper:] [:lower:] | tr -d [:blank:]`
-case "$DIST_OS" in
- 'sunos')
- DIST_OS="solaris"
- ;;
- 'hp-ux' | 'hp-ux64')
- DIST_OS="hpux"
- ;;
- 'darwin')
- DIST_OS="macosx"
- ;;
- 'unix_sv')
- DIST_OS="unixware"
- ;;
-esac
-
-# Resolve the architecture
-DIST_ARCH=`uname -p | tr [:upper:] [:lower:] | tr -d [:blank:]`
-if [ "$DIST_ARCH" = "unknown" ]
-then
- DIST_ARCH=`uname -m | tr [:upper:] [:lower:] | tr -d [:blank:]`
-fi
-case "$DIST_ARCH" in
- 'amd64' | 'ia32' | 'ia64' | 'i386' | 'i486' | 'i586' | 'i686' | 'x86_64')
- DIST_ARCH="x86"
- ;;
- 'ip27')
- DIST_ARCH="mips"
- ;;
- 'power' | 'powerpc' | 'power_pc' | 'ppc64')
- DIST_ARCH="ppc"
- ;;
- 'pa_risc' | 'pa-risc')
- DIST_ARCH="parisc"
- ;;
- 'sun4u' | 'sparcv9')
- DIST_ARCH="sparc"
- ;;
- '9000/800')
- DIST_ARCH="parisc"
- ;;
-esac
-
-# Decide on the wrapper binary to use.
-# If a 32-bit wrapper binary exists then it will work on 32 or 64 bit
-# platforms, if the 64-bit binary exists then the distribution most
-# likely wants to use long names. Otherwise, look for the default.
-# For macosx, we also want to look for universal binaries.
-WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-32"
-if [ -x $WRAPPER_TEST_CMD ]
-then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
-else
- if [ "$DIST_OS" = "macosx" ]
- then
- WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-universal-32"
- if [ -x $WRAPPER_TEST_CMD ]
- then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
- else
- WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-64"
- if [ -x $WRAPPER_TEST_CMD ]
- then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
- else
- WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-universal-64"
- if [ -x $WRAPPER_TEST_CMD ]
- then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
- else
- if [ ! -x $WRAPPER_CMD ]
- then
- echo "Unable to locate any of the following binaries:"
- echo " $WRAPPER_CMD-$DIST_OS-$DIST_ARCH-32"
- echo " $WRAPPER_CMD-$DIST_OS-universal-32"
- echo " $WRAPPER_CMD-$DIST_OS-$DIST_ARCH-64"
- echo " $WRAPPER_CMD-$DIST_OS-universal-64"
- echo " $WRAPPER_CMD"
- exit 1
- fi
- fi
- fi
- fi
- else
- WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-64"
- if [ -x $WRAPPER_TEST_CMD ]
- then
- WRAPPER_CMD="$WRAPPER_TEST_CMD"
- else
- if [ ! -x $WRAPPER_CMD ]
- then
- echo "Unable to locate any of the following binaries:"
- echo " $WRAPPER_CMD-$DIST_OS-$DIST_ARCH-32"
- echo " $WRAPPER_CMD-$DIST_OS-$DIST_ARCH-64"
- echo " $WRAPPER_CMD"
- exit 1
- fi
- fi
- fi
-fi
-
-# Build the nice clause
-if [ "X$PRIORITY" = "X" ]
-then
- CMDNICE=""
-else
- CMDNICE="nice -$PRIORITY"
-fi
-
-# Build the anchor file clause.
-if [ "X$IGNORE_SIGNALS" = "X" ]
-then
- ANCHORPROP=
- IGNOREPROP=
-else
- ANCHORPROP=wrapper.anchorfile=$ANCHORFILE
- IGNOREPROP=wrapper.ignore_signals=TRUE
-fi
-
-# Build the lock file clause. Only create a lock file if the lock directory exists on this platform.
-if [ -d $LOCKDIR ]
-then
- LOCKPROP=wrapper.lockfile=$LOCKFILE
-else
- LOCKPROP=
-fi
-
-checkUser() {
- # Check the configured user. If necessary rerun this script as the desired user.
- if [ "X$RUN_AS_USER" != "X" ]
- then
- # Resolve the location of the 'id' command
- IDEXE="/usr/xpg4/bin/id"
- if [ ! -x $IDEXE ]
- then
- IDEXE="/usr/bin/id"
- if [ ! -x $IDEXE ]
- then
- echo "Unable to locate 'id'."
- echo "Please report this message along with the location of the command on your system."
- exit 1
- fi
- fi
-
- if [ "`$IDEXE -u -n`" = "$RUN_AS_USER" ]
- then
- # Already running as the configured user. Avoid password prompts by not calling su.
- RUN_AS_USER=""
- fi
- fi
- if [ "X$RUN_AS_USER" != "X" ]
- then
- # If LOCKPROP and $RUN_AS_USER are defined then the new user will most likely not be
- # able to create the lock file. The Wrapper will be able to update this file once it
- # is created but will not be able to delete it on shutdown. If $2 is defined then
- # the lock file should be created for the current command
- if [ "X$LOCKPROP" != "X" ]
- then
- if [ "X$2" != "X" ]
- then
- # Resolve the primary group
- RUN_AS_GROUP=`groups $RUN_AS_USER | awk '{print $3}' | tail -1`
- if [ "X$RUN_AS_GROUP" = "X" ]
- then
- RUN_AS_GROUP=RUN_AS_USER
- fi
- touch $LOCKFILE
- chown $RUN_AS_USER:$RUN_AS_GROUP $LOCKFILE
- fi
- fi
-
- # Still want to change users, recurse. This means that the user will only be
- # prompted for a password once.
- su -m $RUN_AS_USER -c "$REALPATH $1"
-
- # Now that we are the original user again, we may need to clean up the lock file.
- if [ "X$LOCKPROP" != "X" ]
- then
- getpid
- if [ "X$pid" = "X" ]
- then
- # Wrapper is not running so make sure the lock file is deleted.
- if [ -f $LOCKFILE ]
- then
- rm $LOCKFILE
- fi
- fi
- fi
-
- exit 0
- fi
-}
-
-getpid() {
- if [ -f $PIDFILE ]
- then
- if [ -r $PIDFILE ]
- then
- pid=`cat $PIDFILE`
- if [ "X$pid" != "X" ]
- then
- # It is possible that 'a' process with the pid exists but that it is not the
- # correct process. This can happen in a number of cases, but the most
- # common is during system startup after an unclean shutdown.
- # The ps statement below looks for the specific wrapper command running as
- # the pid. If it is not found then the pid file is considered to be stale.
- pidtest=`$PSEXE -p $pid -o args | grep $WRAPPER_CMD | tail -1`
- if [ "X$pidtest" = "X" ]
- then
- # This is a stale pid file.
- rm -f $PIDFILE
- echo "Removed stale pid file: $PIDFILE"
- pid=""
- fi
- fi
- else
- echo "Cannot read $PIDFILE."
- exit 1
- fi
- fi
-}
-
-testpid() {
- pid=`$PSEXE -p $pid | grep $pid | grep -v grep | awk '{print $1}' | tail -1`
- if [ "X$pid" = "X" ]
- then
- # Process is gone so remove the pid file.
- rm -f $PIDFILE
- pid=""
- fi
-}
-
-console() {
- echo "Running $APP_LONG_NAME..."
- getpid
- if [ "X$pid" = "X" ]
- then
- COMMAND_LINE="$CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.syslog.ident=$APP_NAME wrapper.pidfile=$PIDFILE $ANCHORPROP $LOCKPROP"
- exec $COMMAND_LINE
- else
- echo "$APP_LONG_NAME is already running."
- exit 1
- fi
-}
-
-start() {
- echo "Starting $APP_LONG_NAME..."
- getpid
- if [ "X$pid" = "X" ]
- then
- COMMAND_LINE="$CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.syslog.ident=$APP_NAME wrapper.pidfile=$PIDFILE wrapper.daemonize=TRUE $ANCHORPROP $IGNOREPROP $LOCKPROP"
- exec $COMMAND_LINE
- else
- echo "$APP_LONG_NAME is already running."
- exit 1
- fi
-}
-
-stopit() {
- echo "Stopping $APP_LONG_NAME..."
- getpid
- if [ "X$pid" = "X" ]
- then
- echo "$APP_LONG_NAME was not running."
- else
- if [ "X$IGNORE_SIGNALS" = "X" ]
- then
- # Running so try to stop it.
- kill $pid
- if [ $? -ne 0 ]
- then
- # An explanation for the failure should have been given
- echo "Unable to stop $APP_LONG_NAME."
- exit 1
- fi
- else
- rm -f $ANCHORFILE
- if [ -f $ANCHORFILE ]
- then
- # An explanation for the failure should have been given
- echo "Unable to stop $APP_LONG_NAME."
- exit 1
- fi
- fi
-
- # We can not predict how long it will take for the wrapper to
- # actually stop as it depends on settings in wrapper.conf.
- # Loop until it does.
- savepid=$pid
- CNT=0
- TOTCNT=0
- while [ "X$pid" != "X" ]
- do
- # Show a waiting message every 5 seconds.
- if [ "$CNT" -lt "5" ]
- then
- CNT=`expr $CNT + 1`
- else
- echo "Waiting for $APP_LONG_NAME to exit..."
- CNT=0
- fi
- TOTCNT=`expr $TOTCNT + 1`
-
- sleep 1
-
- testpid
- done
-
- pid=$savepid
- testpid
- if [ "X$pid" != "X" ]
- then
- echo "Failed to stop $APP_LONG_NAME."
- exit 1
- else
- echo "Stopped $APP_LONG_NAME."
- fi
- fi
-}
-
-status() {
- getpid
- if [ "X$pid" = "X" ]
- then
- echo "$APP_LONG_NAME is not running."
- exit 1
- else
- echo "$APP_LONG_NAME is running ($pid)."
- exit 0
- fi
-}
-
-dump() {
- echo "Dumping $APP_LONG_NAME..."
- getpid
- if [ "X$pid" = "X" ]
- then
- echo "$APP_LONG_NAME was not running."
-
- else
- kill -3 $pid
-
- if [ $? -ne 0 ]
- then
- echo "Failed to dump $APP_LONG_NAME."
- exit 1
- else
- echo "Dumped $APP_LONG_NAME."
- fi
- fi
-}
-
-case "$1" in
-
- 'console')
- checkUser $1 touchlock
- console
- ;;
-
- 'start')
- checkUser $1 touchlock
- start
- ;;
-
- 'stop')
- checkUser $1
- stopit
- ;;
-
- 'restart')
- checkUser $1 touchlock
- stopit
- start
- ;;
-
- 'status')
- checkUser $1
- status
- ;;
-
- 'dump')
- checkUser $1
- dump
- ;;
-
- *)
- echo "Usage: $0 { console | start | stop | restart | status | dump }"
- exit 1
- ;;
-esac
-
-exit 0
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-x86-32-3.2.0/bin/wrapper b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-x86-32-3.2.0/bin/wrapper
deleted file mode 100755
index 35ad75895..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-x86-32-3.2.0/bin/wrapper and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-x86-32-3.2.0/lib/libwrapper.so b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-x86-32-3.2.0/lib/libwrapper.so
deleted file mode 100755
index 3f310e70b..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-x86-32-3.2.0/lib/libwrapper.so and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-x86-32-3.2.0/lib/wrapper.jar b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-x86-32-3.2.0/lib/wrapper.jar
deleted file mode 100644
index c76640599..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-x86-32-3.2.0/lib/wrapper.jar and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-x86-32-3.2.0/lib/wrappertest.jar b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-x86-32-3.2.0/lib/wrappertest.jar
deleted file mode 100644
index 10e009322..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-solaris-x86-32-3.2.0/lib/wrappertest.jar and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-windows-x86-32-3.2.0/bin/InstallTestWrapper-NT.bat b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-windows-x86-32-3.2.0/bin/InstallTestWrapper-NT.bat
deleted file mode 100644
index bd42e241f..000000000
--- a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-windows-x86-32-3.2.0/bin/InstallTestWrapper-NT.bat
+++ /dev/null
@@ -1,50 +0,0 @@
-@echo off
-setlocal
-
-rem Copyright (c) 1999, 2006 Tanuki Software Inc.
-rem
-rem Java Service Wrapper general NT service install script
-rem
-
-if "%OS%"=="Windows_NT" goto nt
-echo This script only works with NT-based versions of Windows.
-goto :eof
-
-:nt
-rem
-rem Find the application home.
-rem
-rem %~dp0 is location of current script under NT
-set _REALPATH=%~dp0
-
-rem Decide on the wrapper binary.
-set _WRAPPER_BASE=wrapper
-set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe
-if exist %_WRAPPER_EXE% goto conf
-set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe
-if exist %_WRAPPER_EXE% goto conf
-set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%.exe
-if exist %_WRAPPER_EXE% goto conf
-echo Unable to locate a Wrapper executable using any of the following names:
-echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe
-echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe
-echo %_REALPATH%%_WRAPPER_BASE%.exe
-pause
-goto :eof
-
-rem
-rem Find the wrapper.conf
-rem
-:conf
-set _WRAPPER_CONF="%~f1"
-if not %_WRAPPER_CONF%=="" goto startup
-set _WRAPPER_CONF="%_REALPATH%..\conf\wrapper.conf"
-
-rem
-rem Install the Wrapper as an NT service.
-rem
-:startup
-"%_WRAPPER_EXE%" -i %_WRAPPER_CONF%
-if not errorlevel 1 goto :eof
-pause
-
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-windows-x86-32-3.2.0/bin/StartTestWrapper-NT.bat b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-windows-x86-32-3.2.0/bin/StartTestWrapper-NT.bat
deleted file mode 100644
index 2c7ad712c..000000000
--- a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-windows-x86-32-3.2.0/bin/StartTestWrapper-NT.bat
+++ /dev/null
@@ -1,50 +0,0 @@
-@echo off
-setlocal
-
-rem Copyright (c) 1999, 2006 Tanuki Software Inc.
-rem
-rem Java Service Wrapper general NT service start script
-rem
-
-if "%OS%"=="Windows_NT" goto nt
-echo This script only works with NT-based versions of Windows.
-goto :eof
-
-:nt
-rem
-rem Find the application home.
-rem
-rem %~dp0 is location of current script under NT
-set _REALPATH=%~dp0
-
-rem Decide on the wrapper binary.
-set _WRAPPER_BASE=wrapper
-set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe
-if exist %_WRAPPER_EXE% goto conf
-set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe
-if exist %_WRAPPER_EXE% goto conf
-set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%.exe
-if exist %_WRAPPER_EXE% goto conf
-echo Unable to locate a Wrapper executable using any of the following names:
-echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe
-echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe
-echo %_REALPATH%%_WRAPPER_BASE%.exe
-pause
-goto :eof
-
-rem
-rem Find the wrapper.conf
-rem
-:conf
-set _WRAPPER_CONF="%~f1"
-if not %_WRAPPER_CONF%=="" goto startup
-set _WRAPPER_CONF="%_REALPATH%..\conf\wrapper.conf"
-
-rem
-rem Start the Wrapper NT service.
-rem
-:startup
-"%_WRAPPER_EXE%" -t %_WRAPPER_CONF%
-if not errorlevel 1 goto :eof
-pause
-
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-windows-x86-32-3.2.0/bin/StopTestWrapper-NT.bat b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-windows-x86-32-3.2.0/bin/StopTestWrapper-NT.bat
deleted file mode 100644
index a761533cd..000000000
--- a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-windows-x86-32-3.2.0/bin/StopTestWrapper-NT.bat
+++ /dev/null
@@ -1,50 +0,0 @@
-@echo off
-setlocal
-
-rem Copyright (c) 1999, 2006 Tanuki Software Inc.
-rem
-rem Java Service Wrapper general NT service stop script
-rem
-
-if "%OS%"=="Windows_NT" goto nt
-echo This script only works with NT-based versions of Windows.
-goto :eof
-
-:nt
-rem
-rem Find the application home.
-rem
-rem %~dp0 is location of current script under NT
-set _REALPATH=%~dp0
-
-rem Decide on the wrapper binary.
-set _WRAPPER_BASE=wrapper
-set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe
-if exist %_WRAPPER_EXE% goto conf
-set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe
-if exist %_WRAPPER_EXE% goto conf
-set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%.exe
-if exist %_WRAPPER_EXE% goto conf
-echo Unable to locate a Wrapper executable using any of the following names:
-echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe
-echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe
-echo %_REALPATH%%_WRAPPER_BASE%.exe
-pause
-goto :eof
-
-rem
-rem Find the wrapper.conf
-rem
-:conf
-set _WRAPPER_CONF="%~f1"
-if not %_WRAPPER_CONF%=="" goto startup
-set _WRAPPER_CONF="%_REALPATH%..\conf\wrapper.conf"
-
-rem
-rem Stop the Wrapper NT service.
-rem
-:startup
-"%_WRAPPER_EXE%" -p %_WRAPPER_CONF%
-if not errorlevel 1 goto :eof
-pause
-
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-windows-x86-32-3.2.0/bin/TestWrapper.bat b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-windows-x86-32-3.2.0/bin/TestWrapper.bat
deleted file mode 100644
index 5a1223cc8..000000000
--- a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-windows-x86-32-3.2.0/bin/TestWrapper.bat
+++ /dev/null
@@ -1,55 +0,0 @@
-@echo off
-setlocal
-
-rem Copyright (c) 1999, 2006 Tanuki Software Inc.
-rem
-rem Java Service Wrapper general startup script
-rem
-
-rem
-rem Resolve the real path of the wrapper.exe
-rem For non NT systems, the _REALPATH and _WRAPPER_CONF values
-rem can be hard-coded below and the following test removed.
-rem
-if "%OS%"=="Windows_NT" goto nt
-echo This script only works with NT-based versions of Windows.
-goto :eof
-
-:nt
-rem
-rem Find the application home.
-rem
-rem %~dp0 is location of current script under NT
-set _REALPATH=%~dp0
-
-rem Decide on the wrapper binary.
-set _WRAPPER_BASE=wrapper
-set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe
-if exist %_WRAPPER_EXE% goto conf
-set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe
-if exist %_WRAPPER_EXE% goto conf
-set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%.exe
-if exist %_WRAPPER_EXE% goto conf
-echo Unable to locate a Wrapper executable using any of the following names:
-echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe
-echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe
-echo %_REALPATH%%_WRAPPER_BASE%.exe
-pause
-goto :eof
-
-rem
-rem Find the wrapper.conf
-rem
-:conf
-set _WRAPPER_CONF="%~f1"
-if not %_WRAPPER_CONF%=="" goto startup
-set _WRAPPER_CONF="%_REALPATH%..\conf\wrapper.conf"
-
-rem
-rem Start the Wrapper
-rem
-:startup
-"%_WRAPPER_EXE%" -c %_WRAPPER_CONF%
-if not errorlevel 1 goto :eof
-pause
-
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-windows-x86-32-3.2.0/bin/TestWrapperNoWrapper.bat b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-windows-x86-32-3.2.0/bin/TestWrapperNoWrapper.bat
deleted file mode 100644
index 15052ba5c..000000000
--- a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-windows-x86-32-3.2.0/bin/TestWrapperNoWrapper.bat
+++ /dev/null
@@ -1,12 +0,0 @@
-rem Copyright (c) 1999, 2006 Tanuki Software Inc.
-rem
-rem This script is an example of how to run your application without the Wrapper, but with the
-rem Wrapper helper classes. You can obtain the actual command generated by the wrapper for
-rem your application by running the Wrapper with the wrapper.java.command.loglevel=INFO
-rem property set.
-rem
-rem The wrapper.key property MUST be removed from the resulting command or it will fail to
-rem run correctly.
-rem
-java -Xms16m -Xmx64m -Djava.library.path="../lib" -Djava.class.path="../lib/wrapper.jar;../lib/wrappertest.jar" -Dwrapper.native_library="wrapper" -Dwrapper.debug="TRUE" org.tanukisoftware.wrapper.test.Main
-
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-windows-x86-32-3.2.0/bin/UninstallTestWrapper-NT.bat b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-windows-x86-32-3.2.0/bin/UninstallTestWrapper-NT.bat
deleted file mode 100644
index 5adc5a9f1..000000000
--- a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-windows-x86-32-3.2.0/bin/UninstallTestWrapper-NT.bat
+++ /dev/null
@@ -1,50 +0,0 @@
-@echo off
-setlocal
-
-rem Copyright (c) 1999, 2006 Tanuki Software Inc.
-rem
-rem Java Service Wrapper general NT service uninstall script
-rem
-
-if "%OS%"=="Windows_NT" goto nt
-echo This script only works with NT-based versions of Windows.
-goto :eof
-
-:nt
-rem
-rem Find the application home.
-rem
-rem %~dp0 is location of current script under NT
-set _REALPATH=%~dp0
-
-rem Decide on the wrapper binary.
-set _WRAPPER_BASE=wrapper
-set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe
-if exist %_WRAPPER_EXE% goto conf
-set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe
-if exist %_WRAPPER_EXE% goto conf
-set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%.exe
-if exist %_WRAPPER_EXE% goto conf
-echo Unable to locate a Wrapper executable using any of the following names:
-echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe
-echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe
-echo %_REALPATH%%_WRAPPER_BASE%.exe
-pause
-goto :eof
-
-rem
-rem Find the wrapper.conf
-rem
-:conf
-set _WRAPPER_CONF="%~f1"
-if not %_WRAPPER_CONF%=="" goto startup
-set _WRAPPER_CONF="%_REALPATH%..\conf\wrapper.conf"
-
-rem
-rem Uninstall the Wrapper as an NT service.
-rem
-:startup
-"%_WRAPPER_EXE%" -r %_WRAPPER_CONF%
-if not errorlevel 1 goto :eof
-pause
-
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-windows-x86-32-3.2.0/bin/wrapper.exe b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-windows-x86-32-3.2.0/bin/wrapper.exe
deleted file mode 100644
index a46a2ac24..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-windows-x86-32-3.2.0/bin/wrapper.exe and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-windows-x86-32-3.2.0/lib/wrapper.dll b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-windows-x86-32-3.2.0/lib/wrapper.dll
deleted file mode 100644
index 37c4f3359..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-windows-x86-32-3.2.0/lib/wrapper.dll and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-windows-x86-32-3.2.0/lib/wrapper.jar b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-windows-x86-32-3.2.0/lib/wrapper.jar
deleted file mode 100644
index c76640599..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-windows-x86-32-3.2.0/lib/wrapper.jar and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-windows-x86-32-3.2.0/lib/wrappertest.jar b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-windows-x86-32-3.2.0/lib/wrappertest.jar
deleted file mode 100644
index 10e009322..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-jsw/src/main/resources/jsw/wrapper-windows-x86-32-3.2.0/lib/wrappertest.jar and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-manager/pom.xml b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-manager/pom.xml
deleted file mode 100644
index 9a700f3df..000000000
--- a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-manager/pom.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
- org.codehaus.plexus
- plexus-appserver-runtime-booters
- 2.0-alpha-3-SNAPSHOT
-
- 4.0.0
- plexus-appserver-runtime-booter-manager
- Plexus App Server Shell Script Runtime Booter
- Plexus App Server Tools for creating application bundles, services bundles and server runtimes.
-
-
-
- org.codehaus.plexus
- plexus-appserver-runtime-booter-common
-
-
-
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-manager/src/main/java/org/codehaus/plexus/builder/runtime/ShellScriptPlexusRuntimeBootloaderGenerator.java b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-manager/src/main/java/org/codehaus/plexus/builder/runtime/ShellScriptPlexusRuntimeBootloaderGenerator.java
deleted file mode 100644
index bca794a39..000000000
--- a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-manager/src/main/java/org/codehaus/plexus/builder/runtime/ShellScriptPlexusRuntimeBootloaderGenerator.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package org.codehaus.plexus.builder.runtime;
-
-import java.io.File;
-import java.util.Properties;
-
-/**
- * @author Jason van Zyl
- * @author Trygve Laugstøl
- */
-public class ShellScriptPlexusRuntimeBootloaderGenerator
- extends AbstractPlexusRuntimeBootloaderGenerator
-{
- private final static String UNIX_LAUNCHER_TEMPLATE = "shellscript/plexus.vm";
-
- private final static String WINDOWS_LAUNCHER_TEMPLATE = "shellscript/plexus-bat.vm";
-
- public void generate( File outputDirectory, Properties configurationProperties )
- throws PlexusRuntimeBootloaderGeneratorException
- {
- mkdirs( outputDirectory );
-
- mergeTemplate( ShellScriptPlexusRuntimeBootloaderGenerator.UNIX_LAUNCHER_TEMPLATE, new File( outputDirectory, "plexus.sh" ), false );
-
- mergeTemplate( ShellScriptPlexusRuntimeBootloaderGenerator.WINDOWS_LAUNCHER_TEMPLATE, new File( outputDirectory, "plexus.bat" ), true );
-
- executable( new File( outputDirectory, "plexus.sh" ) );
- }
-}
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-manager/src/main/resources/META-INF/plexus/components.xml b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-manager/src/main/resources/META-INF/plexus/components.xml
deleted file mode 100644
index 80466c101..000000000
--- a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-manager/src/main/resources/META-INF/plexus/components.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
- org.codehaus.plexus.builder.runtime.PlexusRuntimeBootloaderGenerator
- shellscript
- org.codehaus.plexus.builder.runtime.ShellScriptPlexusRuntimeBootloaderGenerator
-
-
- org.codehaus.plexus.velocity.VelocityComponent
-
-
-
-
-
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-manager/src/main/resources/shellscript/plexus-bat.vm b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-manager/src/main/resources/shellscript/plexus-bat.vm
deleted file mode 100644
index 07d003f7c..000000000
--- a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-manager/src/main/resources/shellscript/plexus-bat.vm
+++ /dev/null
@@ -1,136 +0,0 @@
-@REM ----------------------------------------------------------------------------
-@REM Plexus Start Up Batch script
-@REM
-@REM Required ENV vars:
-@REM JAVA_HOME - location of a JDK home dir
-@REM PLEXUS_HOME - location of Plexus installed home dir
-@REM
-@REM Optional ENV vars
-@REM PLEXUS_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
-@REM PLEXUS_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
-@REM PLEXUS_OPTS - parameters passed to the Java VM when running Plexus
-@REM e.g. to debug Plexus itself, use
-@REM set PLEXUS_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
-@REM ----------------------------------------------------------------------------
-
-@echo off
-@REM Begin all REM lines with '@' in case PLEXUS_BATCH_ECHO is 'on'
-@REM enable echoing my setting PLEXUS_BATCH_ECHO to 'on'
-@if "%PLEXUS_BATCH_ECHO%" == "on" echo %PLEXUS_BATCH_ECHO%
-
-@REM Execute a user defined script before this one
-if exist "%HOME%\plexusrc_pre.bat" call "%HOME%\plexusrc_pre.bat"
-
-@REM set local scope for the variables with windows NT shell
-if "%OS%"=="Windows_NT" @setlocal
-
-@REM ==== START VALIDATION ====
-if not "%JAVA_HOME%" == "" goto OkJHome
-
-echo.
-echo ERROR: JAVA_HOME not found in your environment.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation
-echo.
-goto end
-
-:OkJHome
-if exist "%JAVA_HOME%\bin\java.exe" goto chkMHome
-
-echo.
-echo ERROR: JAVA_HOME is set to an invalid directory.
-echo JAVA_HOME = %JAVA_HOME%
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation
-echo.
-goto end
-
-:chkMHome
-if not "%PLEXUS_HOME%"=="" goto valMHome
-
-if "%OS%"=="Windows_NT" SET PLEXUS_HOME=%~dp0..
-if not "%PLEXUS_HOME%"=="" goto valMHome
-
-echo.
-echo ERROR: PLEXUS_HOME not found in your environment.
-echo Please set the PLEXUS_HOME variable in your environment to match the
-echo location of the PLEXUS installation
-echo.
-goto end
-
-:valMHome
-if exist "%PLEXUS_HOME%\bin\plexus.bat" goto init
-
-echo.
-echo ERROR: PLEXUS_HOME is set to an invalid directory.
-echo PLEXUS_HOME = %PLEXUS_HOME%
-echo Please set the PLEXUS_HOME variable in your environment to match the
-echo location of the PLEXUS installation
-echo.
-goto end
-@REM ==== END VALIDATION ====
-
-:init
-@REM Decide how to startup depending on the version of windows
-
-@REM -- Win98ME
-if NOT "%OS%"=="Windows_NT" goto Win9xArg
-
-@REM -- 4NT shell
-if "%eval[2+2]" == "4" goto 4NTArgs
-
-@REM -- Regular WinNT shell
-set PLEXUS_CMD_LINE_ARGS=%*
-goto endInit
-
-@REM The 4NT Shell from jp software
-:4NTArgs
-set PLEXUS_CMD_LINE_ARGS=%$
-goto endInit
-
-:Win9xArg
-@REM Slurp the command line arguments. This loop allows for an unlimited number
-@REM of agruments (up to the command line limit, anyway).
-set PLEXUS_CMD_LINE_ARGS=
-:Win9xApp
-if %1a==a goto endInit
-set PLEXUS_CMD_LINE_ARGS=%PLEXUS_CMD_LINE_ARGS% %1
-shift
-goto Win9xApp
-
-@REM Reaching here means variables are defined and arguments have been captured
-:endInit
-if "%PLEXUS_OPTS%"=="" SET PLEXUS_OPTS="-Xmx128m"
-SET PLEXUS_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
-SET PLEXUS_CORE="%PLEXUS_HOME%\core"
-SET PLEXUS_TMPDIR="%PLEXUS_HOME%\temp"
-SET PLEXUS_CONF=%PLEXUS_HOME%\conf
-SET CONF=%PLEXUS_CONF%\plexus.xml
-SET PLEXUS_CMD_LINE_ARGS=%CONF% %PLEXUS_CMD_LINE_ARGS%
-if exist %PLEXUS_TMPDIR% goto run
-mkdir "%PLEXUS_TMPDIR%"
-
-:run
-@REM Start Plexus
-%PLEXUS_JAVA_EXE% %PLEXUS_OPTS% -classpath %PLEXUS_HOME%\core\boot\classworlds-*.jar "-Dclassworlds.conf=%PLEXUS_HOME%\conf\classworlds.conf" -Dplexus.core=%PLEXUS_CORE% -Dplexus.system.path="%PATH%" -Djava.io.tmpdir=%PLEXUS_TMPDIR% -Dplexus.home=%PLEXUS_HOME% org.codehaus.classworlds.Launcher %PLEXUS_CMD_LINE_ARGS%
-goto end
-
-:end
-@REM set local scope for the variables with windows NT shell
-if "%OS%"=="Windows_NT" goto endNT
-
-@REM For old DOS remove the set variables from ENV - we assume they were not set
-@REM before we started - at least we don't leave any baggage around
-set PLEXUS_JAVA_EXE=
-SET PLEXUS_CORE=
-set PLEXUS_CMD_LINE_ARGS=
-SET PLEXUS_TMPDIR=
-goto postExec
-
-:endNT
-@endlocal
-
-:postExec
-if exist "%HOME%\plexusrc_post.bat" call "%HOME%\plexusrc_post.bat"
-@REM pause the batch file if PLEXUS_BATCH_PAUSE is set to 'on'
-if "%PLEXUS_BATCH_PAUSE%" == "on" pause
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-manager/src/main/resources/shellscript/plexus.vm b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-manager/src/main/resources/shellscript/plexus.vm
deleted file mode 100644
index b7783fcbf..000000000
--- a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-manager/src/main/resources/shellscript/plexus.vm
+++ /dev/null
@@ -1,129 +0,0 @@
-#! /bin/sh
-
-PLEXUS_OPTS="$PLEXUS_OPTS -Xmx128m"
-
-# OS specific support. $var _must_ be set to either true or false.
-cygwin=false
-darwin=false;
-case "`uname`" in
-CYGWIN*) cygwin=true;;
-Darwin*) darwin=true ;;
-esac
-
-# resolve links - $0 may be a softlink
-THIS_PROG="$0"
-
-while [ -h "$THIS_PROG" ]; do
- ls=`ls -ld "$THIS_PROG"`
- link=`expr "$ls" : '.*-> \(.*\)$'`
- if expr "$link" : '.*/.*' > /dev/null; then
- THIS_PROG="$link"
- else
- THIS_PROG=`dirname "$THIS_PROG"`/"$link"
- fi
-done
-
-# Get standard environment variables
-PRGDIR=`dirname "$THIS_PROG"`
-PLEXUS_HOME=`cd "$PRGDIR/.." ; pwd`
-PLEXUS_CONF=`cd "$PLEXUS_HOME/conf" ; pwd`
-unset THIS_PROG
-
-if [ -z "$JAVA_HOME" ] ; then
- if [ -e /etc/gentoo-release ] ; then
- JAVA_HOME=`java-config --jre-home`
- fi
-fi
-
-
-# Checking for JAVA_HOME is required on *nix due
-# to some distributions stupidly including kaffe in /usr/bin
-if [ "$JAVA_HOME" = "" ] ; then
- echo "ERROR: JAVA_HOME not found in your environment."
- echo
- echo "Please, set the JAVA_HOME variable in your environment to match the"
- echo "location of the Java Virtual Machine you want to use."
- exit 1
-fi
-
-# For Cygwin, ensure paths are in UNIX format before anything is touched
-if $cygwin ; then
- [ -n "$PLEXUS_HOME" ] &&
- PLEXUS_HOME=`cygpath --unix "$PLEXUS_HOME"`
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
- [ -n "$CLASSPATH" ] &&
- CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
-fi
-
-if [ -z "$PLEXUS_TMPDIR" ] ; then
- PLEXUS_TMPDIR="$PLEXUS_HOME"/temp
- mkdir -p "$PLEXUS_TMPDIR"
-fi
-
-if [ -z "$JAVACMD" ] ; then
- if [ -n "$JAVA_HOME" ] ; then
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
- # IBM's JDK on AIX uses strange locations for the executables
- JAVACMD="$JAVA_HOME/jre/sh/java"
- else
- JAVACMD="$JAVA_HOME/bin/java"
- fi
- else
- JAVACMD=java
- fi
-fi
-
-if [ ! -x "$JAVACMD" ] ; then
- echo "Error: JAVA_HOME is not defined correctly."
- echo " We cannot execute $JAVACMD"
- exit
-fi
-
-if [ -z "$JAVA_HOME" ] ; then
- echo "Warning: JAVA_HOME environment variable is not set."
- echo " If build fails because sun.* classes could not be found"
- echo " you will need to set the JAVA_HOME environment variable"
- echo " to the installation directory of java."
-fi
-
-# For Cygwin, switch paths to Windows format before running java
-if $cygwin; then
- PLEXUS_HOME=`cygpath --path --windows "$PLEXUS_HOME"`
- PLEXUS_CONF=`cygpath --path --windows "$PLEXUS_CONF"`
- PLEXUS_TMPDIR=`cygpath --path --windows "$PLEXUS_TMPDIR"`
- JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
-fi
-
-# For Darwin, use classes.jar for TOOLS_JAR
-TOOLS_JAR="${JAVA_HOME}/lib/tools.jar"
-if $darwin; then
- TOOLS_JAR="/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Classes/classes.jar"
-fi
-
-# ----- Execute The Requested Command -----------------------------------------
-
-echo "Using PLEXUS_HOME: $PLEXUS_HOME"
-echo "Using PLEXUS_CONF: $PLEXUS_CONF"
-echo "Using PLEXUS_TMPDIR: $PLEXUS_TMPDIR"
-echo "Using JAVA_HOME: $JAVA_HOME"
-
-if [ "$1" = "" ]
-then
- CONF="${PLEXUS_CONF}/plexus.xml"
-else
- CONF="$1"
-fi
-
-MAIN_CLASS=org.codehaus.classworlds.Launcher
-
-exec "$JAVACMD" \
- $PLEXUS_OPTS \
- -classpath "${PLEXUS_HOME}"/core/boot/classworlds-*.jar \
- -Dclassworlds.conf="${PLEXUS_HOME}/conf/classworlds.conf" \
- -Dplexus.core="${PLEXUS_HOME}/core" \
- -Dplexus.system.path="${PATH}" \
- -Djava.io.tmpdir="${PLEXUS_TMPDIR}" \
- -Dtools.jar="$TOOLS_JAR" \
- -Dplexus.home="${PLEXUS_HOME}" \
- $MAIN_CLASS ${CONF}
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-manager/src/test/java/org/codehaus/plexus/builder/runtime/ShellScriptRuntimeBooterGeneratorTest.java b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-manager/src/test/java/org/codehaus/plexus/builder/runtime/ShellScriptRuntimeBooterGeneratorTest.java
deleted file mode 100644
index 05bc859e6..000000000
--- a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-manager/src/test/java/org/codehaus/plexus/builder/runtime/ShellScriptRuntimeBooterGeneratorTest.java
+++ /dev/null
@@ -1,30 +0,0 @@
-package org.codehaus.plexus.builder.runtime;
-
-import org.codehaus.plexus.PlexusTestCase;
-
-import java.io.File;
-import java.util.Properties;
-
-/**
- * @author Jason van Zyl
- */
-public class ShellScriptRuntimeBooterGeneratorTest
- extends PlexusTestCase
-{
- public void testGenerator()
- throws Exception
- {
- PlexusRuntimeBootloaderGenerator generator =
- (PlexusRuntimeBootloaderGenerator) lookup( PlexusRuntimeBootloaderGenerator.ROLE, "shellscript" );
-
- File outputDirectory = new File( System.getProperty( "basedir" ), "target/runtime" );
-
- Properties p = new Properties();
-
- generator.generate( outputDirectory, p );
-
- assertTrue( new File( outputDirectory, "plexus.sh" ).exists() );
-
- assertTrue( new File( outputDirectory, "plexus.bat" ).exists() );
- }
-}
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-shellscript/pom.xml b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-shellscript/pom.xml
deleted file mode 100644
index 7b08525bb..000000000
--- a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-shellscript/pom.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
- org.codehaus.plexus
- plexus-appserver-runtime-booters
- 2.0-alpha-3-SNAPSHOT
-
- 4.0.0
- plexus-appserver-runtime-booter-shellscript
- Plexus App Server Shell Script Runtime Booter
- Plexus App Server Tools for creating application bundles, services bundles and server runtimes.
-
-
-
- org.codehaus.plexus
- plexus-appserver-runtime-booter-common
-
-
-
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-shellscript/src/main/java/org/codehaus/plexus/builder/runtime/ShellScriptPlexusRuntimeBootloaderGenerator.java b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-shellscript/src/main/java/org/codehaus/plexus/builder/runtime/ShellScriptPlexusRuntimeBootloaderGenerator.java
deleted file mode 100644
index bca794a39..000000000
--- a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-shellscript/src/main/java/org/codehaus/plexus/builder/runtime/ShellScriptPlexusRuntimeBootloaderGenerator.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package org.codehaus.plexus.builder.runtime;
-
-import java.io.File;
-import java.util.Properties;
-
-/**
- * @author Jason van Zyl
- * @author Trygve Laugstøl
- */
-public class ShellScriptPlexusRuntimeBootloaderGenerator
- extends AbstractPlexusRuntimeBootloaderGenerator
-{
- private final static String UNIX_LAUNCHER_TEMPLATE = "shellscript/plexus.vm";
-
- private final static String WINDOWS_LAUNCHER_TEMPLATE = "shellscript/plexus-bat.vm";
-
- public void generate( File outputDirectory, Properties configurationProperties )
- throws PlexusRuntimeBootloaderGeneratorException
- {
- mkdirs( outputDirectory );
-
- mergeTemplate( ShellScriptPlexusRuntimeBootloaderGenerator.UNIX_LAUNCHER_TEMPLATE, new File( outputDirectory, "plexus.sh" ), false );
-
- mergeTemplate( ShellScriptPlexusRuntimeBootloaderGenerator.WINDOWS_LAUNCHER_TEMPLATE, new File( outputDirectory, "plexus.bat" ), true );
-
- executable( new File( outputDirectory, "plexus.sh" ) );
- }
-}
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-shellscript/src/main/resources/META-INF/plexus/components.xml b/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-shellscript/src/main/resources/META-INF/plexus/components.xml
deleted file mode 100644
index 80466c101..000000000
--- a/plexus-appserver/plexus-appserver-runtime-booters/plexus-appserver-runtime-booter-shellscript/src/main/resources/META-INF/plexus/components.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
- org.codehaus.plexus.builder.runtime.PlexusRuntimeBootloaderGenerator
- shellscript
- org.codehaus.plexus.builder.runtime.ShellScriptPlexusRuntimeBootloaderGenerator
-
-
- org.codehaus.plexus.velocity.VelocityComponent
-
-
-
-
-
diff --git a/plexus-appserver/plexus-appserver-runtime-booters/pom.xml b/plexus-appserver/plexus-appserver-runtime-booters/pom.xml
deleted file mode 100644
index e03f0feaa..000000000
--- a/plexus-appserver/plexus-appserver-runtime-booters/pom.xml
+++ /dev/null
@@ -1,43 +0,0 @@
-
- 4.0.0
-
- org.codehaus.plexus
- plexus-appserver
- 2.0-alpha-3-SNAPSHOT
-
- plexus-appserver-runtime-booters
- pom
- Plexus App Server Runtime Booters
-
-
-
-
- org.codehaus.plexus
- plexus-appserver-runtime-booter-common
- ${pom.version}
-
-
-
-
-
- org.codehaus.plexus
- plexus-appserver-runtime-builder
- 2.0-alpha-3-SNAPSHOT
-
-
- org.codehaus.plexus
- plexus-velocity
- 1.1.3
-
-
- velocity
- velocity
- 1.4
-
-
-
- plexus-appserver-runtime-booter-common
- plexus-appserver-runtime-booter-jsw
- plexus-appserver-runtime-booter-shellscript
-
-
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/pom.xml b/plexus-appserver/plexus-appserver-runtime-builder/pom.xml
deleted file mode 100644
index ff0256d52..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/pom.xml
+++ /dev/null
@@ -1,65 +0,0 @@
-
-
-
- org.codehaus.plexus
- plexus-appserver
- 2.0-alpha-4-SNAPSHOT
-
- 4.0.0
- plexus-appserver-runtime-builder
- Plexus App Server Runtime Builder
- Plexus App Server Tools for creating application bundles, services bundles and server runtimes.
-
-
-
- org.apache.maven
- maven-project
- 2.0-beta-1
-
-
- org.codehaus.plexus
- plexus-archiver
- 1.0-alpha-3
-
-
- org.apache.maven
- maven-artifact-manager
- 2.0-beta-1
-
-
- org.codehaus.plexus
- plexus-velocity
- 1.1.2
-
-
- velocity
- velocity
- 1.4
-
-
- org.codehaus.plexus
- plexus-appserver-host
- 2.0-alpha-4-SNAPSHOT
-
-
- org.apache.maven
- maven-artifact
- 2.0-beta-1
-
-
- org.apache.maven.wagon
- wagon-provider-api
- 1.0-alpha-4
-
-
- dom4j
- dom4j
- 1.6.1
-
-
- jaxen
- jaxen
- 1.1-beta-8
-
-
-
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/main/java/org/codehaus/plexus/builder/AbstractBuilder.java b/plexus-appserver/plexus-appserver-runtime-builder/src/main/java/org/codehaus/plexus/builder/AbstractBuilder.java
deleted file mode 100644
index 70ade003b..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/main/java/org/codehaus/plexus/builder/AbstractBuilder.java
+++ /dev/null
@@ -1,393 +0,0 @@
-package org.codehaus.plexus.builder;
-
-/*
- * Copyright (c) 2004, Codehaus.org
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.apache.maven.artifact.Artifact;
-import org.apache.maven.artifact.factory.ArtifactFactory;
-import org.apache.maven.artifact.metadata.ArtifactMetadataSource;
-import org.apache.maven.artifact.repository.ArtifactRepository;
-import org.apache.maven.artifact.resolver.ArtifactResolutionException;
-import org.apache.maven.artifact.resolver.ArtifactResolutionResult;
-import org.apache.maven.artifact.resolver.ArtifactResolver;
-import org.apache.maven.artifact.resolver.filter.ArtifactFilter;
-import org.apache.maven.project.MavenProjectBuilder;
-import org.codehaus.plexus.logging.AbstractLogEnabled;
-import org.codehaus.plexus.util.FileUtils;
-import org.codehaus.plexus.util.IOUtil;
-import org.codehaus.plexus.util.InterpolationFilterReader;
-import org.codehaus.plexus.util.Os;
-import org.codehaus.plexus.util.StringUtils;
-import org.codehaus.plexus.util.cli.CommandLineException;
-import org.codehaus.plexus.util.cli.Commandline;
-
-import java.io.File;
-import java.io.FileReader;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.io.Reader;
-import java.io.Writer;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-
-/**
- * @author Jason van Zyl
- * @author Trygve Laugstøl
- * @version $Id$
- */
-public abstract class AbstractBuilder
- extends AbstractLogEnabled
-{
- // ----------------------------------------------------------------------
- // Components
- // ----------------------------------------------------------------------
-
- /**
- * @plexus.requirement
- */
- private ArtifactResolver artifactResolver;
-
- /**
- * @plexus.requirement
- */
- private ArtifactFactory artifactFactory;
-
- /**
- * @plexus.requirement
- */
- private MavenProjectBuilder projectBuilder;
-
- /**
- * @plexus.requirement
- */
- private ArtifactMetadataSource metadata;
-
- // ----------------------------------------------------------------------
- // Utility methods
- // ----------------------------------------------------------------------
-
- protected void executable( File file )
- throws CommandLineException, IOException
- {
- if ( Os.isFamily( "unix" ) )
- {
- Commandline cli = new Commandline();
-
- cli.setExecutable( "chmod" );
-
- cli.createArgument().setValue( "+x" );
-
- cli.createArgument().setValue( file.getAbsolutePath() );
-
- cli.execute();
- }
- }
-
- protected File mkdirs( File directory )
- throws IOException
- {
- if ( !directory.exists() )
- {
- if ( !directory.mkdirs() )
- {
- throw new IOException( "Could not make directories '" + directory.getAbsolutePath() + "'." );
- }
- }
-
- return directory;
- }
-
- protected InputStream getResourceAsStream( String resource )
- throws IOException
- {
- InputStream is = getClass().getClassLoader().getResourceAsStream( resource );
-
- if ( is == null )
- {
- throw new IOException( "Could not find resource '" + resource + "'." );
- }
-
- return is;
- }
-
- // ----------------------------------------------------------------------
- //
- // ----------------------------------------------------------------------
-
- protected void filterCopy( File in, File out, Map map )
- throws IOException
- {
- filterCopy( new FileReader( in ), out, map );
- }
-
- protected void filterCopy( File in, File out, Map map, String beginToken, String endToken )
- throws IOException
- {
- filterCopy( new FileReader( in ), out, map, beginToken, endToken );
- }
-
- protected void filterCopy( InputStream in, File out, Map map )
- throws IOException
- {
- filterCopy( new InputStreamReader( in ), out, map );
- }
-
- protected void filterCopy( InputStream in, File out, Map map, String beginToken, String endToken )
- throws IOException
- {
- filterCopy( new InputStreamReader( in ), out, map, beginToken, endToken );
- }
-
- protected void filterCopy( Reader in, File out, Map map )
- throws IOException
- {
- filterCopy( in, out, map, "@", "@" );
- }
-
- protected void filterCopy( Reader in, File out, Map map, String beginToken, String endToken )
- throws IOException
- {
- InterpolationFilterReader reader = new InterpolationFilterReader( in, map, beginToken, endToken );
-
- Writer writer = new FileWriter( out );
-
- IOUtil.copy( reader, writer );
-
- writer.close();
- }
-
- // ----------------------------------------------------------------------
- // Artifact methods
- // ----------------------------------------------------------------------
-
- protected void copyArtifact( Artifact artifact, File outputDir, File destination )
- throws IOException
- {
- String dest = destination.getAbsolutePath().substring( outputDir.getAbsolutePath().length() + 1 );
-
- getLogger().info( "Adding " + artifact.getId() + " to " + dest );
-
- FileUtils.copyFileToDirectory( artifact.getFile(), destination );
- }
-
- protected void copyArtifacts( File outputDir, File dir, Set artifacts )
- throws IOException
- {
- for ( Iterator it = artifacts.iterator(); it.hasNext(); )
- {
- Artifact artifact = (Artifact) it.next();
-
- copyArtifact( artifact, outputDir, dir );
- }
- }
-
- protected Set getBootArtifacts( Set projectArtifacts, List remoteRepositories, ArtifactRepository localRepository,
- boolean ignoreIfMissing )
- throws ArtifactResolutionException
- {
- Set artifacts = new HashSet();
-
- resolveVersion( "classworlds", "classworlds", projectArtifacts, ignoreIfMissing, artifacts );
-
- artifacts = findArtifacts( remoteRepositories, localRepository, artifacts, false, null );
-
- return artifacts;
- }
-
- protected Set getCoreArtifacts( Set projectArtifacts, Set additionalCoreArtifacts, List remoteRepositories,
- ArtifactRepository localRepository, boolean ignoreIfMissing )
- throws ArtifactResolutionException
- {
- Set artifacts = new HashSet();
-
- resolveVersion( "org.codehaus.plexus", "plexus-container-default", projectArtifacts, ignoreIfMissing,
- artifacts );
-
- resolveVersion( "org.codehaus.plexus", "plexus-appserver-host", projectArtifacts, ignoreIfMissing, artifacts );
-
- resolveVersion( "org.codehaus.plexus", "plexus-utils", projectArtifacts, ignoreIfMissing, artifacts );
-
- for ( Iterator i = additionalCoreArtifacts.iterator(); i.hasNext(); )
- {
- String additionalArtifact = (String) i.next();
-
- String[] s = StringUtils.split( additionalArtifact, ":" );
-
- resolveVersion( s[0], s[1], projectArtifacts, ignoreIfMissing, artifacts );
- }
-
- artifacts = findArtifacts( remoteRepositories, localRepository, artifacts, false, null );
-
- return artifacts;
- }
-
- protected Set getExcludedArtifacts( Set projectArtifacts, List remoteRepositories,
- ArtifactRepository localRepository )
- throws ArtifactResolutionException
- {
- Set artifacts = new HashSet();
-
- resolveVersion( "plexus", "plexus", projectArtifacts, true, artifacts );
- resolveVersion( "plexus", "plexus-container-default", projectArtifacts, true, artifacts );
- resolveVersion( "plexus", "plexus-appserver-host", projectArtifacts, true, artifacts );
- resolveVersion( "plexus", "plexus-utils", projectArtifacts, true, artifacts );
-
- artifacts = findArtifacts( remoteRepositories, localRepository, artifacts, true, null );
-
- return artifacts;
- }
-
- protected Set findArtifacts( List remoteRepositories, ArtifactRepository localRepository, Set sourceArtifacts,
- boolean resolveTransitively, ArtifactFilter artifactFilter )
- throws ArtifactResolutionException
- {
- ArtifactResolutionResult result;
-
- Set resolvedArtifacts;
-
- Artifact originatingArtifact = artifactFactory.createProjectArtifact( "dummy", "dummy", "dummy" );
-
- if ( resolveTransitively )
- {
- result = artifactResolver.resolveTransitively( sourceArtifacts, originatingArtifact, localRepository,
- remoteRepositories, metadata, artifactFilter );
- // TODO: Assert that there wasn't any conflicts.
-
- resolvedArtifacts = result.getArtifacts();
- }
- else
- {
- resolvedArtifacts = new HashSet();
-
- for ( Iterator it = sourceArtifacts.iterator(); it.hasNext(); )
- {
- Artifact artifact = (Artifact) it.next();
-
- artifactResolver.resolve( artifact, remoteRepositories, localRepository );
-
- resolvedArtifacts.add( artifact );
- }
- }
-
- return resolvedArtifacts;
- }
-
- protected String resolveVersion( String groupId, String artifactId, Set projectArtifacts, boolean ignoreIfMissing,
- Set resolvedArtifacts )
- {
- for ( Iterator it = projectArtifacts.iterator(); it.hasNext(); )
- {
- Artifact artifact = (Artifact) it.next();
-
- if ( artifact.getGroupId().equals( groupId ) && artifact.getArtifactId().equals( artifactId ) &&
- artifact.getType().equals( "jar" ) )
- {
- resolvedArtifacts.add( artifact );
-
- return artifact.getVersion();
- }
- }
-
- if ( !ignoreIfMissing )
- {
- throw new RuntimeException( "Could not version for artifact: " + groupId + ":" + artifactId + "." );
- }
-
- return null;
- }
-
- // TODO: these filters belong in maven-artifact - they are generally useful
-
- public static class ScopeExcludeArtifactFilter
- implements ArtifactFilter
- {
- private String scope;
-
- public ScopeExcludeArtifactFilter( String scope )
- {
- this.scope = scope;
- }
-
- public boolean include( Artifact artifact )
- {
- if ( scope.equals( artifact.getScope() ) )
- {
- return false;
- }
-
- return true;
- }
- }
-
- public static class GroupArtifactTypeArtifactFilter
- implements ArtifactFilter
- {
- private Set filteredArtifacts;
-
- public GroupArtifactTypeArtifactFilter( Set filteredArtifacts )
- {
- this.filteredArtifacts = filteredArtifacts;
- }
-
- public boolean include( Artifact candiateArtifact )
- {
- for ( Iterator it = filteredArtifacts.iterator(); it.hasNext(); )
- {
- Artifact artifact = (Artifact) it.next();
-
- if ( candiateArtifact.getGroupId().equals( artifact.getGroupId() ) &&
- candiateArtifact.getArtifactId().equals( artifact.getArtifactId() ) &&
- candiateArtifact.getType().equals( artifact.getType() ) )
- {
- return false;
- }
- }
-
- return true;
- }
- }
-
- public static class AndArtifactFilter
- implements ArtifactFilter
- {
- private ArtifactFilter filterA;
-
- private ArtifactFilter filterB;
-
- public AndArtifactFilter( ArtifactFilter filterA, ArtifactFilter filterB )
- {
- this.filterA = filterA;
-
- this.filterB = filterB;
- }
-
- public boolean include( Artifact artifact )
- {
- return filterA.include( artifact ) && filterB.include( artifact );
- }
- }
-}
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/main/java/org/codehaus/plexus/builder/application/ApplicationBuilder.java b/plexus-appserver/plexus-appserver-runtime-builder/src/main/java/org/codehaus/plexus/builder/application/ApplicationBuilder.java
deleted file mode 100644
index 41424f71f..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/main/java/org/codehaus/plexus/builder/application/ApplicationBuilder.java
+++ /dev/null
@@ -1,49 +0,0 @@
-package org.codehaus.plexus.builder.application;
-
-/*
- * Copyright (c) 2004, Codehaus.org
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.apache.maven.artifact.repository.ArtifactRepository;
-
-import java.io.File;
-import java.util.List;
-import java.util.Properties;
-import java.util.Set;
-
-/**
- * @author Jason van Zyl
- * @author Trygve Laugstøl
- * @version $Id$
- */
-public interface ApplicationBuilder
-{
- String ROLE = ApplicationBuilder.class.getName();
-
- void assemble( String applicationName, File workingDirectory, List remoteRepositories,
- ArtifactRepository localRespository, Set projectArtifacts, Set additionalCoreArtifacts,
- Set serviceArtifacts, File applicationConfiguration, File configurationsDirectory,
- Properties configurationProperties )
- throws ApplicationBuilderException;
-
- void bundle( File outputFile, File workingDirectory )
- throws ApplicationBuilderException;
-}
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/main/java/org/codehaus/plexus/builder/application/ApplicationBuilderException.java b/plexus-appserver/plexus-appserver-runtime-builder/src/main/java/org/codehaus/plexus/builder/application/ApplicationBuilderException.java
deleted file mode 100644
index f63c98dcf..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/main/java/org/codehaus/plexus/builder/application/ApplicationBuilderException.java
+++ /dev/null
@@ -1,41 +0,0 @@
-package org.codehaus.plexus.builder.application;
-
-/*
- * Copyright (c) 2004, Codehaus.org
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-/**
- * @author Jason van Zyl
- * @version $Id$
- */
-public class ApplicationBuilderException
- extends Exception
-{
- public ApplicationBuilderException( String message )
- {
- super( message );
- }
-
- public ApplicationBuilderException( String message, Throwable cause )
- {
- super( message, cause );
- }
-}
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/main/java/org/codehaus/plexus/builder/application/DefaultApplicationBuilder.java b/plexus-appserver/plexus-appserver-runtime-builder/src/main/java/org/codehaus/plexus/builder/application/DefaultApplicationBuilder.java
deleted file mode 100644
index 18db2c538..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/main/java/org/codehaus/plexus/builder/application/DefaultApplicationBuilder.java
+++ /dev/null
@@ -1,282 +0,0 @@
-package org.codehaus.plexus.builder.application;
-
-/*
- * Copyright (c) 2004, Codehaus.org
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.apache.maven.artifact.Artifact;
-import org.apache.maven.artifact.repository.ArtifactRepository;
-import org.apache.maven.artifact.resolver.ArtifactResolutionException;
-import org.apache.maven.artifact.resolver.filter.ArtifactFilter;
-import org.codehaus.plexus.appserver.PlexusApplicationConstants;
-import org.codehaus.plexus.archiver.Archiver;
-import org.codehaus.plexus.archiver.jar.JarArchiver;
-import org.codehaus.plexus.builder.AbstractBuilder;
-import org.codehaus.plexus.util.DirectoryScanner;
-import org.codehaus.plexus.util.xml.PrettyPrintXMLWriter;
-import org.codehaus.plexus.util.xml.XMLWriter;
-
-import java.io.File;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Properties;
-import java.util.Set;
-
-/**
- * @author Jason van Zyl
- * @author Trygve Laugstøl
- * @version $Id$
- */
-public class DefaultApplicationBuilder
- extends AbstractBuilder
- implements ApplicationBuilder
-{
- // ----------------------------------------------------------------------
- // ApplicationBuilder Implementation
- // ----------------------------------------------------------------------
-
- public void assemble( String applicationName, File workingDirectory, List remoteRepositories,
- ArtifactRepository localRepository, Set projectArtifacts, Set additionalCoreArtifacts,
- Set serviceArtifacts, File applicationConfiguration, File configurationsDirectory,
- Properties configurationProperties )
- throws ApplicationBuilderException
- {
- // ----------------------------------------------------------------------
- // Check the parameters
- // ----------------------------------------------------------------------
-
- if ( applicationName == null || applicationName.trim().length() == 0 )
- {
- throw new ApplicationBuilderException( "The appserver name must be set." );
- }
-
- if ( configurationsDirectory != null && !configurationsDirectory.isDirectory() )
- {
- throw new ApplicationBuilderException(
- "The configurations directory isn't a directory: '" + configurationsDirectory.getAbsolutePath() + "." );
- }
-
- if ( !applicationConfiguration.exists() )
- {
- throw new ApplicationBuilderException( "The appserver configurator file doesn't exist: '" +
- applicationConfiguration.getAbsolutePath() + "'." );
- }
-
- File libDir;
-
- try
- {
- // ----------------------------------------------------------------------
- // Create directory structure
- // ----------------------------------------------------------------------
-
- File confDir = mkdirs( new File( workingDirectory, PlexusApplicationConstants.CONF_DIRECTORY ) );
-
- libDir = mkdirs( new File( workingDirectory, PlexusApplicationConstants.LIB_DIRECTORY ) );
-
- File logsDir = mkdirs( new File( workingDirectory, "logs" ) );
-
- mkdirs( new File( workingDirectory, "META-INF/plexus" ) );
-
- // ----------------------------------------------------------------------
- //
- // ----------------------------------------------------------------------
-
- new FileWriter( new File( logsDir, "foo" ) ).close();
-
- processConfigurations( confDir, applicationConfiguration, configurationProperties,
- configurationsDirectory );
- }
- catch ( IOException e )
- {
- throw new ApplicationBuilderException( "Error while processing the configurations.", e );
- }
-
- // ----------------------------------------------------------------------
- // Find and filter the artifacts
- // ----------------------------------------------------------------------
-
- Set artifacts;
-
- try
- {
- Set excludedArtifacts = new HashSet();
-
- excludedArtifacts.addAll( getBootArtifacts( projectArtifacts, remoteRepositories, localRepository, true ) );
-
- excludedArtifacts.addAll( getCoreArtifacts( projectArtifacts, additionalCoreArtifacts, remoteRepositories,
- localRepository, true ) );
-
- serviceArtifacts = findArtifacts( remoteRepositories, localRepository, serviceArtifacts, true, null );
-
- excludedArtifacts.addAll( serviceArtifacts );
-
- excludedArtifacts.addAll( getExcludedArtifacts( projectArtifacts, remoteRepositories, localRepository ) );
-
- ArtifactFilter filter = new AndArtifactFilter( new ScopeExcludeArtifactFilter( Artifact.SCOPE_TEST ),
- new GroupArtifactTypeArtifactFilter( excludedArtifacts ) );
-
- artifacts = findArtifacts( remoteRepositories, localRepository, projectArtifacts, true, filter );
- }
- catch ( ArtifactResolutionException e )
- {
- throw new ApplicationBuilderException( "Error while finding dependencies.", e );
- }
-
- // ----------------------------------------------------------------------
- // Copy the dependencies
- // ----------------------------------------------------------------------
-
- try
- {
- copyArtifacts( workingDirectory, libDir, artifacts );
- }
- catch ( IOException e )
- {
- throw new ApplicationBuilderException( "Error while copying dependencies.", e );
- }
-
- // ----------------------------------------------------------------------
- // Make the generated plexus descriptor
- // ----------------------------------------------------------------------
-
- try
- {
- File descriptor = new File( workingDirectory, PlexusApplicationConstants.METADATA_FILE );
-
- FileWriter writer = new FileWriter( descriptor );
-
- XMLWriter xmlWriter = new PrettyPrintXMLWriter( writer );
-
- writer.write( System.getProperty( "line.separator" ) );
-
- xmlWriter.startElement( "plexus-appserver" );
-
- xmlWriter.startElement( "name" );
-
- xmlWriter.writeText( applicationName );
-
- xmlWriter.endElement(); // name
-
- // TODO: Add a list of all artifacts
-
- xmlWriter.endElement(); // plexus-appserver
-
- writer.write( System.getProperty( "line.separator" ) );
-
- writer.close();
- }
- catch ( IOException e )
- {
- throw new ApplicationBuilderException( "Error while writing the appserver descriptor.", e );
- }
- }
-
- public void bundle( File outputFile, File workingDirectory )
- throws ApplicationBuilderException
- {
- Archiver archiver = new JarArchiver();
-
- try
- {
- archiver.addDirectory( workingDirectory );
-
- archiver.setDestFile( outputFile );
-
- archiver.createArchive();
- }
- catch ( Exception e )
- {
- throw new ApplicationBuilderException( "Error while creating the appserver archive.", e );
- }
- }
-
- // ----------------------------------------------------------------------
- //
- // ----------------------------------------------------------------------
-
- private void processConfigurations( File confDir, File applicationConfiguration, Properties configurationProperties,
- File configurationsDirectory )
- throws IOException, ApplicationBuilderException
- {
- System.out.println( "configurationProperties = " + configurationProperties );
-
- // ----------------------------------------------------------------------
- // Process the configurations
- // ----------------------------------------------------------------------
-
- if ( configurationsDirectory != null )
- {
- DirectoryScanner scanner = new DirectoryScanner();
-
- scanner.setBasedir( configurationsDirectory );
-
- List excludes = new ArrayList();
-
- // TODO: centralize this list
- excludes.add( "**/CVS/**" );
-
- excludes.add( "**/.svn/**" );
-
- /*
- if ( configurationProperties != null )
- {
- excludes.add( configurationProperties.getAbsolutePath() );
- }
- */
-
- scanner.setExcludes( (String[]) excludes.toArray( new String[excludes.size()] ) );
-
- scanner.scan();
-
- String[] files = scanner.getIncludedFiles();
-
- for ( int i = 0; i < files.length; i++ )
- {
- String file = files[i];
-
- File in = new File( configurationsDirectory, file );
-
- File out = new File( confDir, file );
-
- File parent = out.getParentFile();
-
- if ( !parent.isDirectory() && !parent.mkdirs() )
- {
- throw new ApplicationBuilderException(
- "Could not make parent directories for " + "'" + out.getAbsolutePath() + "'." );
- }
-
- filterCopy( in, out, configurationProperties );
- }
- }
-
- // ----------------------------------------------------------------------
- // Copy the main appserver.xml
- // ----------------------------------------------------------------------
-
- filterCopy( applicationConfiguration, new File( confDir, PlexusApplicationConstants.CONFIGURATION_FILE ),
- configurationProperties );
- }
-}
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/main/java/org/codehaus/plexus/builder/runtime/DefaultPlexusRuntimeBuilder.java b/plexus-appserver/plexus-appserver-runtime-builder/src/main/java/org/codehaus/plexus/builder/runtime/DefaultPlexusRuntimeBuilder.java
deleted file mode 100644
index 62d922ee2..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/main/java/org/codehaus/plexus/builder/runtime/DefaultPlexusRuntimeBuilder.java
+++ /dev/null
@@ -1,626 +0,0 @@
-package org.codehaus.plexus.builder.runtime;
-
-/*
- * Copyright (c) 2004, Codehaus.org
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.apache.maven.artifact.repository.ArtifactRepository;
-import org.apache.maven.artifact.resolver.ArtifactResolutionException;
-import org.apache.velocity.VelocityContext;
-import org.apache.velocity.exception.ResourceNotFoundException;
-import org.codehaus.plexus.appserver.PlexusRuntimeConstants;
-import org.codehaus.plexus.archiver.Archiver;
-import org.codehaus.plexus.archiver.jar.JarArchiver;
-import org.codehaus.plexus.builder.AbstractBuilder;
-import org.codehaus.plexus.util.FileUtils;
-import org.codehaus.plexus.util.IOUtil;
-import org.codehaus.plexus.util.StringUtils;
-import org.codehaus.plexus.util.cli.CommandLineException;
-import org.codehaus.plexus.velocity.VelocityComponent;
-import org.dom4j.Document;
-import org.dom4j.DocumentException;
-import org.dom4j.Element;
-import org.dom4j.io.OutputFormat;
-import org.dom4j.io.SAXReader;
-import org.dom4j.io.XMLWriter;
-
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-import java.io.StringReader;
-import java.io.StringWriter;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Properties;
-import java.util.Set;
-
-/**
- * @author Jason van Zyl
- * @author Trygve Laugstøl
- */
-public class DefaultPlexusRuntimeBuilder
- extends AbstractBuilder
- implements PlexusRuntimeBuilder
-{
- private static String JSW = "jsw";
-
- private final static String CLASSWORLDS_TEMPLATE = "org/codehaus/plexus/builder/templates/classworlds.vm";
-
- private final static String UNIX_LAUNCHER_TEMPLATE = "org/codehaus/plexus/builder/templates/plexus.vm";
-
- private final static String WINDOWS_LAUNCHER_TEMPLATE = "org/codehaus/plexus/builder/templates/plexus-bat.vm";
-
- // ----------------------------------------------------------------------
- // Properties in the configurator properties file
- // ----------------------------------------------------------------------
-
- private static final String PROPERTY_APP_NAME = "app.name";
-
- private static final String PROPERTY_APP_LONG_NAME = "app.long.name";
-
- private static final String PROPERTY_APP_DESCRIPTION = "app.description";
-
- private static final String PROPERTY_CLASSWORLDS_VERSION = "classworlds.version";
-
- // ----------------------------------------------------------------------
- //
- // ----------------------------------------------------------------------
-
- /**
- * @requirement
- */
- protected VelocityComponent velocity;
-
- // ----------------------------------------------------------------------
- //
- // ----------------------------------------------------------------------
-
- public void build( File workingDirectory, List remoteRepositories, ArtifactRepository localRepository,
- Set projectArtifacts, Set additionalCoreArtifacts, File containerConfiguration,
- Properties configurationProperties, boolean addManagementAgent )
- throws PlexusRuntimeBuilderException
- {
- try
- {
- // ----------------------------------------------------------------------
- // Assert the parameters
- // ----------------------------------------------------------------------
-
- if ( workingDirectory == null )
- {
- throw new PlexusRuntimeBuilderException( "The output directory must be specified." );
- }
-
- if ( localRepository == null )
- {
- throw new PlexusRuntimeBuilderException( "The local Maven repository must be specified." );
- }
-
- if ( containerConfiguration == null )
- {
- throw new PlexusRuntimeBuilderException( "The plexus configurator file must be set." );
- }
-
- if ( !containerConfiguration.exists() )
- {
- throw new PlexusRuntimeBuilderException( "The specified plexus configurator file " + "'" +
- containerConfiguration.getAbsolutePath() + "'" + " doesn't exist." );
- }
-
- // ----------------------------------------------------------------------
- // Find the artifact lists.
- // ----------------------------------------------------------------------
-
- Set bootArtifacts;
-
- Set coreArtifacts;
-
- try
- {
- bootArtifacts = getBootArtifacts( projectArtifacts, remoteRepositories, localRepository, false );
-
- Set newAdditionalCoreArtifacts = new HashSet();
- if ( additionalCoreArtifacts != null && !additionalCoreArtifacts.isEmpty() )
- {
- newAdditionalCoreArtifacts.addAll( additionalCoreArtifacts );
- }
- if ( addManagementAgent )
- {
- newAdditionalCoreArtifacts.add( "mx4j:mx4j" );
- newAdditionalCoreArtifacts.add( "mx4j:mx4j-remote" );
- newAdditionalCoreArtifacts.add( "org.livetribe:livetribe-slp" );
- newAdditionalCoreArtifacts.add( "backport-util-concurrent:backport-util-concurrent" );
- }
-
- coreArtifacts = getCoreArtifacts( projectArtifacts, newAdditionalCoreArtifacts, remoteRepositories,
- localRepository, false );
- }
- catch ( ArtifactResolutionException e )
- {
- throw new PlexusRuntimeBuilderException( "Could not resolve a artifact.", e );
- }
-
- // ----------------------------------------------------------------------
- // Find and put the classworlds version into the properties
- // ----------------------------------------------------------------------
-
- String classworldsVersion =
- resolveVersion( "classworlds", "classworlds", projectArtifacts, false, new HashSet() );
-
- configurationProperties.setProperty( PROPERTY_CLASSWORLDS_VERSION, classworldsVersion );
-
- // add defaults
- configurationProperties.setProperty( "app.max.memory", configurationProperties.getProperty( "app.max.memory", "128m" ) );
-
- // ----------------------------------------------------------------------
- // Build the runtime
- // ----------------------------------------------------------------------
-
- mkdirs( workingDirectory );
-
- getLogger().info( "Building runtime in " + workingDirectory.getAbsolutePath() );
-
- // ----------------------------------------------------------------------
- // Set up the directory structure
- // ----------------------------------------------------------------------
-
- mkdirs( getAppsDirectory( workingDirectory ) );
-
- File binDir = mkdirs( new File( workingDirectory, PlexusRuntimeConstants.BIN_DIRECTORY ) );
-
- File confDir = mkdirs( new File( workingDirectory, PlexusRuntimeConstants.CONF_DIRECTORY ) );
-
- File coreDir = mkdirs( new File( workingDirectory, PlexusRuntimeConstants.CORE_DIRECTORY ) );
-
- File bootDir = mkdirs( new File( workingDirectory, PlexusRuntimeConstants.BOOT_DIRECTORY ) );
-
- mkdirs( new File( workingDirectory, PlexusRuntimeConstants.LOGS_DIRECTORY ) );
-
- mkdirs( new File( workingDirectory, PlexusRuntimeConstants.SERVICES_DIRECTORY ) );
-
- mkdirs( new File( workingDirectory, PlexusRuntimeConstants.TEMP_DIRECTORY ) );
-
- // ----------------------------------------------------------------------
- //
- // ----------------------------------------------------------------------
-
- copyArtifacts( workingDirectory, bootDir, bootArtifacts );
-
- copyArtifacts( workingDirectory, coreDir, coreArtifacts );
-
- // ----------------------------------------------------------------------
- // We need to separate between the container configurator that you want
- // shared amongst the apps and the appserver configurator.
- // ----------------------------------------------------------------------
-
- processMainConfiguration( containerConfiguration, configurationProperties, confDir, addManagementAgent );
-
- createSystemScripts( binDir, confDir, configurationProperties );
-
- //processConfigurations();
-
- javaServiceWrapper( binDir, coreDir, confDir, configurationProperties );
- }
- catch ( PlexusRuntimeBuilderException ex )
- {
- throw ex;
- }
- catch ( CommandLineException ex )
- {
- throw new PlexusRuntimeBuilderException( "Exception while building the runtime.", ex );
- }
- catch ( IOException ex )
- {
- throw new PlexusRuntimeBuilderException( "Exception while building the runtime.", ex );
- }
- }
-
- public void bundle( File outputFile, File workingDirectory )
- throws PlexusRuntimeBuilderException
- {
- Archiver archiver = new JarArchiver();
-
- try
- {
- archiver.addDirectory( workingDirectory );
-
- archiver.setDestFile( outputFile );
-
- archiver.createArchive();
- }
- catch ( Exception e )
- {
- throw new PlexusRuntimeBuilderException( "Error while creating the archive.", e );
- }
- }
-
- public void addPlexusApplication( File plexusApplication, File runtimeDirectory )
- throws PlexusRuntimeBuilderException
- {
- try
- {
- FileUtils.copyFileToDirectory( plexusApplication, getAppsDirectory( runtimeDirectory ) );
- }
- catch ( IOException e )
- {
- throw new PlexusRuntimeBuilderException( "Error while copying the appserver into the runtime.", e );
- }
- }
-
- public void addPlexusService( File plexusService, File runtimeDirectory )
- throws PlexusRuntimeBuilderException
- {
- try
- {
- File dir = getServicesDirectory( runtimeDirectory );
-
- String name = plexusService.getName();
-
- FileUtils.copyFile( plexusService, new File( dir, name ) );
- }
- catch ( IOException e )
- {
- throw new PlexusRuntimeBuilderException( "Error while copying the appserver into the runtime.", e );
- }
- }
-
- // ----------------------------------------------------------------------
- //
- // ----------------------------------------------------------------------
-
- private File getAppsDirectory( File workingDirectory )
- {
- return new File( workingDirectory, PlexusRuntimeConstants.APPLICATIONS_DIRECTORY );
- }
-
- private File getServicesDirectory( File workingDirectory )
- {
- return new File( workingDirectory, PlexusRuntimeConstants.SERVICES_DIRECTORY );
- }
-
- // ----------------------------------------------------------------------
- //
- // ----------------------------------------------------------------------
-
- private void createSystemScripts( File binDir, File confDir, Properties configurationProperties )
- throws PlexusRuntimeBuilderException, IOException, CommandLineException
- {
- ClassLoader old = Thread.currentThread().getContextClassLoader();
-
- Thread.currentThread().setContextClassLoader( this.getClass().getClassLoader() );
-
- createClassworldsConfiguration( confDir, configurationProperties );
-
- createLauncherScripts( binDir, configurationProperties );
-
- Thread.currentThread().setContextClassLoader( old );
- }
-
- private void createClassworldsConfiguration( File confDir, Properties configurationProperties )
- throws PlexusRuntimeBuilderException, IOException
- {
- mergeTemplate( CLASSWORLDS_TEMPLATE, new File( confDir, "classworlds.conf" ), true, configurationProperties );
- }
-
- private void createLauncherScripts( File binDir, Properties configurationProperties )
- throws PlexusRuntimeBuilderException, IOException, CommandLineException
- {
- mergeTemplate( UNIX_LAUNCHER_TEMPLATE, new File( binDir, "plexus.sh" ), false, configurationProperties );
-
- mergeTemplate( WINDOWS_LAUNCHER_TEMPLATE, new File( binDir, "plexus.bat" ), true, configurationProperties );
-
- executable( new File( binDir, "plexus.sh" ) );
- }
-
- private void processMainConfiguration( File containerConfiguration, Properties configurationProperties,
- File confDir, boolean addManagementAgent )
- throws IOException
- {
- File out = new File( confDir, "plexus.xml" );
-
- File conf = containerConfiguration;
-
- if ( addManagementAgent )
- {
- Document doc;
- try
- {
- SAXReader reader = new SAXReader();
- doc = reader.read( conf );
- Element loadOnStart = (Element) doc.selectSingleNode( "//plexus/load-on-start" );
- if ( loadOnStart == null )
- {
- loadOnStart = doc.getRootElement().addElement( "load-on-start" );
- }
-
- loadOnStart.addElement( "component" ).addElement( "role" ).addText(
- "org.codehaus.plexus.appserver.management.Agent" );
-
- Element components = (Element) doc.selectSingleNode( "//plexus/components" );
- if ( components == null )
- {
- components = doc.getRootElement().addElement( "components" );
- }
-
- Element component = components.addElement( "component" );
- component.addElement( "role" ).addText( "org.codehaus.plexus.appserver.management.Agent" );
- component.addElement( "implementation" ).addText(
- "org.codehaus.plexus.appserver.management.DefaultAgent" );
- Element requirement = component.addElement( "requirements" ).addElement( "requirement" );
- requirement.addElement( "role" ).addText( "org.codehaus.plexus.appserver.management.MBean" );
- requirement.addElement( "field-name" ).addText( "mbeans" );
- Element configuration = component.addElement( "configuration" );
- configuration.addElement( "serviceUrl" ).addText( "service:jmx:rmi:///" );
- configuration.addElement( "slpPort" ).addText( "3427" );
-
- OutputFormat format = OutputFormat.createPrettyPrint();
- format.setLineSeparator( System.getProperty( "line.separator" ) );
- conf = new File( "target/tmp/plexus.xml" );
- conf.getParentFile().mkdirs();
- XMLWriter writer = new XMLWriter( new FileWriter( conf ), format );
- writer.write( doc );
- writer.close();
- }
- catch ( DocumentException e )
- {
- getLogger().warn( "can't read " + conf.getCanonicalPath() );
- }
- }
-
- filterCopy( conf, out, configurationProperties );
- }
-
- private void javaServiceWrapper( File binDir, File coreDir, File confDir, Properties configurationProperties )
- throws IOException, CommandLineException
- {
- File linux = new File( binDir, "linux" );
-
- File win32 = new File( binDir, "win32" );
-
- File macosx = new File( binDir, "macosx" );
-
- File solaris = new File( binDir, "solaris" );
-
- mkdirs( linux );
-
- mkdirs( win32 );
-
- mkdirs( macosx );
-
- mkdirs( solaris );
-
- // ----------------------------------------------------------------------
- // Generic parts
- // ----------------------------------------------------------------------
-
- copyResourceToFile( JSW + "/wrapper.jar", new File( coreDir, "boot/wrapper.jar" ) );
-
- // ----------------------------------------------------------------------
- // Linux
- // ----------------------------------------------------------------------
-
- File runSh = new File( binDir, "linux/run.sh" );
- filterCopy( getResourceAsStream( JSW + "/run.sh" ), runSh, configurationProperties );
- executable( runSh );
-
- copyResource( "linux/wrapper", "linux/wrapper", true, binDir );
- copyResource( "linux/libwrapper.so", "linux/libwrapper.so", false, binDir );
- Properties linuxProps = new Properties();
- linuxProps.setProperty( "library.path", "../../bin/linux" );
- linuxProps.setProperty( "extra.path", "" );
- copyWrapperConf( linux, configurationProperties, linuxProps );
-
- // ----------------------------------------------------------------------
- // Windows
- // ----------------------------------------------------------------------
-
- copyResource( "win32/wrapper.exe", "win32/wrapper.exe", true, binDir );
- copyResource( "win32/wrapper.dll", "win32/wrapper.dll", false, binDir );
- copyResource( "win32/run.bat", "win32/run.bat", false, binDir );
- copyResource( "win32/InstallService.bat", "win32/InstallService.bat", false, binDir );
- copyResource( "win32/UninstallService.bat", "win32/UninstallService.bat", false, binDir );
-
- Properties win32Props = new Properties();
- win32Props.setProperty( "library.path", "../../bin/win32" );
- win32Props.setProperty( "extra.path", ";" );
- copyWrapperConf( win32, configurationProperties, win32Props );
-
- // ----------------------------------------------------------------------
- // OS X
- // ----------------------------------------------------------------------
-
- runSh = new File( binDir, "macosx/run.sh" );
- filterCopy( getResourceAsStream( JSW + "/run.sh" ), runSh, configurationProperties );
- executable( runSh );
- copyResource( "macosx/wrapper", "macosx/wrapper", true, binDir );
- copyResource( "macosx/libwrapper.jnilib", "macosx/libwrapper.jnilib", false, binDir );
-
- Properties osxProps = new Properties();
- osxProps.setProperty( "library.path", "../../bin/macosx" );
- osxProps.setProperty( "extra.path", "" );
- copyWrapperConf( macosx, configurationProperties, osxProps );
-
- // ----------------------------------------------------------------------
- // Solaris
- // ----------------------------------------------------------------------
-
- runSh = new File( binDir, "solaris/run.sh" );
- filterCopy( getResourceAsStream( JSW + "/run.sh" ), runSh, configurationProperties );
- executable( runSh );
-
- copyResource( "solaris/wrapper", "solaris/wrapper", true, binDir );
- copyResource( "solaris/libwrapper.so", "solaris/libwrapper.so", false, binDir );
-
- Properties solarisProps = new Properties();
- solarisProps.setProperty( "library.path", "../../bin/solaris" );
- solarisProps.setProperty( "extra.path", "" );
- copyWrapperConf( solaris, configurationProperties, solarisProps );
- }
-
- private void copyWrapperConf( File destDir, Properties configurationProperties, Properties additionalProperties )
- throws IOException
- {
- Properties props = new Properties();
-
- if ( configurationProperties != null )
- {
- for ( Iterator i = configurationProperties.keySet().iterator(); i.hasNext(); )
- {
- String key = (String) i.next();
-
- props.setProperty( key, configurationProperties.getProperty( key ) );
- }
- }
-
- if ( additionalProperties != null )
- {
- for ( Iterator i = additionalProperties.keySet().iterator(); i.hasNext(); )
- {
- String key = (String) i.next();
-
- props.setProperty( key, additionalProperties.getProperty( key ) );
- }
- }
-
- filterCopy( getResourceAsStream( JSW + "/wrapper.conf" ), new File( destDir, "wrapper.conf" ), props );
- }
-
- protected void copyResource( String filename, String resource, boolean makeExecutable, File basedir )
- throws CommandLineException, IOException
- {
- File target = new File( basedir, filename );
-
- copyResourceToFile( JSW + "/" + resource, target );
-
- if ( makeExecutable )
- {
- executable( target );
- }
- }
-
- private void copyResourceToFile( String resource, File target )
- throws IOException
- {
- InputStream is = getResourceAsStream( resource );
-
- mkdirs( target.getParentFile() );
-
- OutputStream os = new FileOutputStream( target );
-
- IOUtil.copy( is, os );
-
- IOUtil.close( is );
-
- IOUtil.close( os );
- }
-
- // ----------------------------------------------------------------------
- //
- // ----------------------------------------------------------------------
-
- private Properties loadConfigurationProperties( File configurationPropertiesFile )
- throws IOException, PlexusRuntimeBuilderException
- {
- Properties properties = new Properties();
-
- if ( configurationPropertiesFile == null )
- {
- throw new PlexusRuntimeBuilderException( "The runtime builder requires a configurator properties file." );
- }
-
- properties.load( new FileInputStream( configurationPropertiesFile ) );
-
- // ----------------------------------------------------------------------
- // Validate that some required properties are present
- // ----------------------------------------------------------------------
-
- assertHasProperty( properties, PROPERTY_APP_NAME );
-
- assertHasProperty( properties, PROPERTY_APP_LONG_NAME );
-
- assertHasProperty( properties, PROPERTY_APP_DESCRIPTION );
-
- return properties;
- }
-
- private void assertHasProperty( Properties properties, String key )
- throws PlexusRuntimeBuilderException
- {
- if ( StringUtils.isEmpty( properties.getProperty( key ) ) )
- {
- throw new PlexusRuntimeBuilderException( "Missing configurator property '" + key + "'." );
- }
- }
-
- // ----------------------------------------------------------------------
- // Velocity methods
- // ----------------------------------------------------------------------
-
- protected void mergeTemplate( String templateName, File outputFileName, boolean dos,
- Properties configurationProperties )
- throws IOException, PlexusRuntimeBuilderException
- {
- StringWriter buffer = new StringWriter( 100 * FileUtils.ONE_KB );
-
- File tmpFile = File.createTempFile( outputFileName.getName(), null );
-
- try
- {
- velocity.getEngine().mergeTemplate( templateName, new VelocityContext(), buffer );
- }
- catch ( ResourceNotFoundException ex )
- {
- throw new PlexusRuntimeBuilderException( "Missing Velocity template: '" + templateName + "'.", ex );
- }
- catch ( Exception ex )
- {
- throw new PlexusRuntimeBuilderException( "Exception merging the velocity template.", ex );
- }
-
- FileOutputStream output = new FileOutputStream( tmpFile );
-
- BufferedReader reader = new BufferedReader( new StringReader( buffer.toString() ) );
-
- String line;
-
- while ( ( line = reader.readLine() ) != null )
- {
- output.write( line.getBytes() );
-
- if ( dos )
- {
- output.write( '\r' );
- }
-
- output.write( '\n' );
- }
-
- output.close();
-
- filterCopy( tmpFile, outputFileName, configurationProperties, "@{", "}@" );
- }
-}
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/main/java/org/codehaus/plexus/builder/runtime/PlexusRuntimeBuilder.java b/plexus-appserver/plexus-appserver-runtime-builder/src/main/java/org/codehaus/plexus/builder/runtime/PlexusRuntimeBuilder.java
deleted file mode 100644
index ec8412a8f..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/main/java/org/codehaus/plexus/builder/runtime/PlexusRuntimeBuilder.java
+++ /dev/null
@@ -1,54 +0,0 @@
-package org.codehaus.plexus.builder.runtime;
-
-/*
- * Copyright (c) 2004, Codehaus.org
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.apache.maven.artifact.repository.ArtifactRepository;
-
-import java.io.File;
-import java.util.List;
-import java.util.Properties;
-import java.util.Set;
-
-/**
- * @author Jason van Zyl
- * @author Trygve Laugstøl
- * @version $Id$
- */
-public interface PlexusRuntimeBuilder
-{
- String ROLE = PlexusRuntimeBuilder.class.getName();
-
- void build( File workingDirectory, List remoteRepositories, ArtifactRepository localRepository,
- Set projectArtifacts, Set additionalCoreArtifacts, File containerConfiguration,
- Properties configurationProperties, boolean addManagementAgent )
- throws PlexusRuntimeBuilderException;
-
- void bundle( File outputFile, File workingDirectory )
- throws PlexusRuntimeBuilderException;
-
- void addPlexusApplication( File plexusApplication, File runtimeDirectory )
- throws PlexusRuntimeBuilderException;
-
- void addPlexusService( File plexusService, File runtimeDirectory )
- throws PlexusRuntimeBuilderException;
-}
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/main/java/org/codehaus/plexus/builder/runtime/PlexusRuntimeBuilderException.java b/plexus-appserver/plexus-appserver-runtime-builder/src/main/java/org/codehaus/plexus/builder/runtime/PlexusRuntimeBuilderException.java
deleted file mode 100644
index 6cb311b93..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/main/java/org/codehaus/plexus/builder/runtime/PlexusRuntimeBuilderException.java
+++ /dev/null
@@ -1,42 +0,0 @@
-package org.codehaus.plexus.builder.runtime;
-
-/*
- * Copyright (c) 2004, Codehaus.org
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-/**
- * @author Jason van Zyl
- * @author Trygve Laugstøl
- * @version $Id$
- */
-public class PlexusRuntimeBuilderException
- extends Exception
-{
- public PlexusRuntimeBuilderException( String msg )
- {
- super( msg );
- }
-
- public PlexusRuntimeBuilderException( String msg, Throwable cause )
- {
- super( msg, cause );
- }
-}
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/main/java/org/codehaus/plexus/builder/service/DefaultServiceBuilder.java b/plexus-appserver/plexus-appserver-runtime-builder/src/main/java/org/codehaus/plexus/builder/service/DefaultServiceBuilder.java
deleted file mode 100644
index 4894c1df4..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/main/java/org/codehaus/plexus/builder/service/DefaultServiceBuilder.java
+++ /dev/null
@@ -1,232 +0,0 @@
-package org.codehaus.plexus.builder.service;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.apache.maven.artifact.Artifact;
-import org.apache.maven.artifact.repository.ArtifactRepository;
-import org.apache.maven.artifact.resolver.ArtifactResolutionException;
-import org.apache.maven.artifact.resolver.filter.ArtifactFilter;
-import org.codehaus.plexus.appserver.PlexusServiceConstants;
-import org.codehaus.plexus.archiver.Archiver;
-import org.codehaus.plexus.archiver.jar.JarArchiver;
-import org.codehaus.plexus.builder.AbstractBuilder;
-import org.codehaus.plexus.util.DirectoryScanner;
-import org.codehaus.plexus.util.FileUtils;
-import org.codehaus.plexus.util.StringUtils;
-
-import java.io.File;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Properties;
-import java.util.Set;
-
-/**
- * @author Jason van Zyl
- * @author Trygve Laugstøl
- * @version $Id$
- */
-public class DefaultServiceBuilder
- extends AbstractBuilder
- implements ServiceBuilder
-{
- // ----------------------------------------------------------------------
- // ServiceBuilder Implementation
- // ----------------------------------------------------------------------
-
- public void build( String serviceName, File outputDirectory, File serviceJar, List remoteRepositories,
- ArtifactRepository localRepository, Set serviceArtifacts, File serviceConfiguration,
- File configurationsDirectory, Properties configurationProperties )
- throws ServiceBuilderException
- {
- // ----------------------------------------------------------------------
- // Check the parameters
- // ----------------------------------------------------------------------
-
- if ( StringUtils.isEmpty( serviceName ) )
- {
- throw new ServiceBuilderException( "The service name must be set." );
- }
-
- if ( configurationsDirectory != null && !configurationsDirectory.isDirectory() )
- {
- throw new ServiceBuilderException(
- "The configurations directory isn't a directory: '" + configurationsDirectory.getAbsolutePath() + "." );
- }
-
- File libDir;
-
- try
- {
- // ----------------------------------------------------------------------
- // Create directory structure
- // ----------------------------------------------------------------------
-
- File confDir = mkdirs( new File( outputDirectory, PlexusServiceConstants.CONF_DIRECTORY ) );
-
- libDir = mkdirs( new File( outputDirectory, PlexusServiceConstants.LIB_DIRECTORY ) );
-
- // ----------------------------------------------------------------------
- //
- // ----------------------------------------------------------------------
-
- processConfigurations( confDir, serviceConfiguration, configurationProperties, configurationsDirectory );
- }
- catch ( IOException e )
- {
- throw new ServiceBuilderException( "Error while processing the configurations." );
- }
-
- // ----------------------------------------------------------------------------
- // Copy in service JAR
- // ----------------------------------------------------------------------------
-
- try
- {
- FileUtils.copyFileToDirectory( serviceJar, libDir );
- }
- catch ( IOException e )
- {
- throw new ServiceBuilderException( "Error while copying service JAR into working directory.", e );
- }
-
- // ----------------------------------------------------------------------
- // Find the and filter the dependencies
- // ----------------------------------------------------------------------
-
- Set artifacts;
-
- try
- {
- Set excludedArtifacts = new HashSet();
-
- excludedArtifacts.addAll( getBootArtifacts( serviceArtifacts, remoteRepositories, localRepository, true ) );
-
- excludedArtifacts.addAll( getCoreArtifacts( serviceArtifacts, Collections.EMPTY_SET, remoteRepositories,
- localRepository, true ) );
-
- ArtifactFilter filter = new AndArtifactFilter( new ScopeExcludeArtifactFilter( Artifact.SCOPE_TEST ),
- new GroupArtifactTypeArtifactFilter( excludedArtifacts ) );
-
- artifacts = findArtifacts( remoteRepositories, localRepository, serviceArtifacts, true, filter );
- }
- catch ( ArtifactResolutionException e )
- {
- throw new ServiceBuilderException( "Error while finding dependencies.", e );
- }
-
- // ----------------------------------------------------------------------
- // Copy the dependencies
- // ----------------------------------------------------------------------
-
- try
- {
- copyArtifacts( outputDirectory, libDir, artifacts );
- }
- catch ( IOException e )
- {
- throw new ServiceBuilderException( "Error while copying dependencies.", e );
- }
-
- // TODO: Make a META-INF/MANIFEST.MF that includes references to all the jar files
- // in /lib
- }
-
- public void bundle( File outputFile, File workingDirectory )
- throws ServiceBuilderException
- {
- Archiver archiver = new JarArchiver();
-
- try
- {
- archiver.addDirectory( workingDirectory );
-
- archiver.setDestFile( outputFile );
-
- archiver.createArchive();
- }
- catch ( Exception e )
- {
- throw new ServiceBuilderException( "Error while creating the service archive.", e );
- }
- }
-
- // ----------------------------------------------------------------------
- //
- // ----------------------------------------------------------------------
-
- private void processConfigurations( File confDir, File plexusConfigurationFile, Properties configurationProperties,
- File configurationsDirectory )
- throws ServiceBuilderException, IOException
- {
- // ----------------------------------------------------------------------
- // Copy the main plexus.xml
- // ----------------------------------------------------------------------
-
- if ( !plexusConfigurationFile.exists() )
- {
- throw new ServiceBuilderException(
- "The appserver configurator file doesn't exist: '" + plexusConfigurationFile.getAbsolutePath() + "'." );
- }
-
- FileUtils.copyFile( plexusConfigurationFile, new File( confDir, PlexusServiceConstants.CONFIGURATION_FILE ) );
-
- // ----------------------------------------------------------------------
- // Process the configurations
- // ----------------------------------------------------------------------
-
- if ( configurationsDirectory == null )
- {
- return;
- }
-
- DirectoryScanner scanner = new DirectoryScanner();
-
- scanner.setBasedir( configurationsDirectory );
-
- List excludes = new ArrayList();
-
- excludes.add( "**/CVS/**" );
-
- scanner.setExcludes( (String[]) excludes.toArray( new String[excludes.size()] ) );
-
- scanner.scan();
-
- String[] files = scanner.getIncludedFiles();
-
- for ( int i = 0; i < files.length; i++ )
- {
- String file = files[i];
-
- File in = new File( configurationsDirectory, file );
-
- File out = new File( confDir, files[i] );
-
- filterCopy( in, out, configurationProperties );
- }
- }
-}
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/main/java/org/codehaus/plexus/builder/service/ServiceBuilder.java b/plexus-appserver/plexus-appserver-runtime-builder/src/main/java/org/codehaus/plexus/builder/service/ServiceBuilder.java
deleted file mode 100644
index 8f83852ad..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/main/java/org/codehaus/plexus/builder/service/ServiceBuilder.java
+++ /dev/null
@@ -1,50 +0,0 @@
-package org.codehaus.plexus.builder.service;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.apache.maven.artifact.repository.ArtifactRepository;
-
-import java.io.File;
-import java.util.List;
-import java.util.Properties;
-import java.util.Set;
-
-/**
- * @author Jason van Zyl
- * @author Trygve Laugstøl
- * @version $Id$
- */
-public interface ServiceBuilder
-{
- String ROLE = ServiceBuilder.class.getName();
-
- void build( String servicename, File outputDirectory, File classes, List remoteRepositories,
- ArtifactRepository localRespository, Set serviceArtifacts, File plexusConfiguration,
- File configurationsDirectory, Properties configurationProperties )
- throws ServiceBuilderException;
-
- void bundle( File outputFile, File workingDirectory )
- throws ServiceBuilderException;
-}
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/main/java/org/codehaus/plexus/builder/service/ServiceBuilderException.java b/plexus-appserver/plexus-appserver-runtime-builder/src/main/java/org/codehaus/plexus/builder/service/ServiceBuilderException.java
deleted file mode 100644
index ad6f610a2..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/main/java/org/codehaus/plexus/builder/service/ServiceBuilderException.java
+++ /dev/null
@@ -1,43 +0,0 @@
-package org.codehaus.plexus.builder.service;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-/**
- * @author Trygve Laugstøl
- * @version $Id$
- */
-public class ServiceBuilderException
- extends Exception
-{
- public ServiceBuilderException( String message )
- {
- super( message );
- }
-
- public ServiceBuilderException( String message, Throwable cause )
- {
- super( message, cause );
- }
-}
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/META-INF/plexus/components.xml b/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/META-INF/plexus/components.xml
deleted file mode 100644
index 082e98fb6..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/META-INF/plexus/components.xml
+++ /dev/null
@@ -1,74 +0,0 @@
-
-
-
-
-
- org.codehaus.plexus.builder.runtime.PlexusRuntimeBuilder
- org.codehaus.plexus.builder.runtime.DefaultPlexusRuntimeBuilder
-
-
- org.apache.maven.artifact.resolver.ArtifactResolver
-
-
- org.apache.maven.artifact.factory.ArtifactFactory
-
-
- org.codehaus.plexus.velocity.VelocityComponent
-
-
- org.apache.maven.project.MavenProjectBuilder
-
-
- org.apache.maven.artifact.metadata.ArtifactMetadataSource
-
-
-
-
-
-
- org.codehaus.plexus.builder.application.ApplicationBuilder
- org.codehaus.plexus.builder.application.DefaultApplicationBuilder
-
-
- org.apache.maven.artifact.resolver.ArtifactResolver
-
-
- org.apache.maven.artifact.factory.ArtifactFactory
-
-
- org.apache.maven.project.MavenProjectBuilder
-
-
- org.apache.maven.artifact.metadata.ArtifactMetadataSource
-
-
-
-
-
-
-
- org.codehaus.plexus.builder.service.ServiceBuilder
- org.codehaus.plexus.builder.service.DefaultServiceBuilder
-
-
- org.apache.maven.artifact.resolver.ArtifactResolver
-
-
- org.apache.maven.artifact.factory.ArtifactFactory
-
-
- org.apache.maven.project.MavenProjectBuilder
-
-
- org.apache.maven.artifact.metadata.ArtifactMetadataSource
-
-
-
-
-
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/linux/libwrapper.so b/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/linux/libwrapper.so
deleted file mode 100755
index 2e990b14d..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/linux/libwrapper.so and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/linux/wrapper b/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/linux/wrapper
deleted file mode 100755
index a11cb3965..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/linux/wrapper and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/macosx/libwrapper.jnilib b/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/macosx/libwrapper.jnilib
deleted file mode 100755
index 5d4c7b27b..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/macosx/libwrapper.jnilib and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/macosx/wrapper b/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/macosx/wrapper
deleted file mode 100755
index 0e366d463..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/macosx/wrapper and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/run.sh b/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/run.sh
deleted file mode 100644
index a05031aa2..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/run.sh
+++ /dev/null
@@ -1,352 +0,0 @@
-#! /bin/sh
-
-#
-# Skeleton sh script suitable for starting and stopping
-# wrapped Java apps on the Solaris platform.
-#
-# Make sure that PIDFILE points to the correct location,
-# if you have changed the default location set in the
-# wrapper configuration file.
-#
-
-#-----------------------------------------------------------------------------
-# These settings can be modified to fit the needs of your application
-
-# Application
-APP_NAME="@app.name@"
-APP_LONG_NAME="@app.long.name@"
-
-# Wrapper
-WRAPPER_CMD="./wrapper"
-WRAPPER_CONF="wrapper.conf"
-
-# Priority at which to run the wrapper. See "man nice" for valid priorities.
-# nice is only used if a priority is specified.
-PRIORITY=
-
-# Location of the pid file.
-PIDDIR="."
-
-# If uncommented, causes the Wrapper to be shutdown using an anchor file.
-# When launched with the 'start' command, it will also ignore all INT and
-# TERM signals.
-#IGNORE_SIGNALS=true
-
-# If specified, the Wrapper will be run as the specified user when the 'start'
-# command is passed to this script. When running with the 'console' command
-# the current user will be used.
-# IMPORTANT - Make sure that the user has the required privileges to write
-# the PID file and wrapper.log files. Failure to be able to write the log
-# file will cause the Wrapper to exit without any way to write out an error
-# message.
-# NOTE - This will set the user which is used to run the Wrapper as well as
-# the JVM and is not useful in situations where a privileged resource or
-# port needs to be allocated prior to the user being changed.
-#RUN_AS_USER=
-
-# Do not modify anything beyond this point
-#-----------------------------------------------------------------------------
-
-# Get the fully qualified path to the script
-case $0 in
- /*)
- SCRIPT="$0"
- ;;
- *)
- PWD=`pwd`
- SCRIPT="$PWD/$0"
- ;;
-esac
-
-# Change spaces to ":" so the tokens can be parsed.
-SCRIPT=`echo $SCRIPT | sed -e 's; ;:;g'`
-# Get the real path to this script, resolving any symbolic links
-TOKENS=`echo $SCRIPT | sed -e 's;/; ;g'`
-REALPATH=
-for C in $TOKENS; do
- REALPATH="$REALPATH/$C"
- while [ -h "$REALPATH" ] ; do
- LS="`ls -ld "$REALPATH"`"
- LINK="`expr "$LS" : '.*-> \(.*\)$'`"
- if expr "$LINK" : '/.*' > /dev/null; then
- REALPATH="$LINK"
- else
- REALPATH="`dirname "$REALPATH"`""/$LINK"
- fi
- done
-done
-# Change ":" chars back to spaces.
-REALPATH=`echo $REALPATH | sed -e 's;:; ;g'`
-
-# Change the current directory to the location of the script
-cd "`dirname "$REALPATH"`"
-TGTPATH="$PWD"
-
-# Process ID
-ANCHORFILE="$PIDDIR/$APP_NAME.anchor"
-PIDFILE="$PIDDIR/$APP_NAME.pid"
-pid=""
-
-# Resolve the location of the 'ps' command
-PSEXE="/usr/bin/ps"
-if [ ! -x $PSEXE ]
-then
- PSEXE="/bin/ps"
- if [ ! -x $PSEXE ]
- then
- echo "Unable to locate 'ps'."
- echo "Please report this message along with the location of the command on your system."
- exit 1
- fi
-fi
-
-# Build the nice clause
-if [ "X$PRIORITY" = "X" ]
-then
- CMDNICE=""
-else
- CMDNICE="nice -$PRIORITY"
-fi
-
-# Check the configured user
-if [ "X$RUN_AS_USER" != "X" ]
-then
- # Resolve the location of the 'id' command
- IDEXE="/usr/xpg4/bin/id"
- if [ ! -x $IDEXE ]
- then
- IDEXE="/usr/bin/id"
- if [ ! -x $IDEXE ]
- then
- echo "Unable to locate 'id'."
- echo "Please report this message along with the location of the command on your system."
- exit 1
- fi
- fi
-
- if [ "`$IDEXE -u -n`" = "$RUN_AS_USER" ]
- then
- # Already running as the configured user. Avoid password prompts by not calling su.
- RUN_AS_USER=""
- fi
-fi
-
-getpid() {
- if [ -f $PIDFILE ]
- then
- if [ -r $PIDFILE ]
- then
- pid=`cat $PIDFILE`
- if [ "X$pid" != "X" ]
- then
- # Verify that a process with this pid is still running.
- pid=`$PSEXE -p $pid | grep $pid | grep -v grep | awk '{print $1}' | tail -1`
- if [ "X$pid" = "X" ]
- then
- # This is a stale pid file.
- rm -f $PIDFILE
- echo "Removed stale pid file: $PIDFILE"
- fi
- fi
- else
- echo "Cannot read $PIDFILE."
- exit 1
- fi
- fi
-}
-
-testpid() {
- pid=`$PSEXE -p $pid | grep $pid | grep -v grep | awk '{print $1}' | tail -1`
- if [ "X$pid" = "X" ]
- then
- # Process is gone so remove the pid file.
- rm -f $PIDFILE
- fi
-}
-
-console() {
- echo "Running $APP_LONG_NAME..."
- getpid
- if [ "X$pid" = "X" ]
- then
- if [ "X$IGNORE_SIGNALS" = "X" ]
- then
- exec $CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.pidfile=$PIDFILE
- else
- exec $CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.pidfile=$PIDFILE wrapper.anchorfile=$ANCHORFILE
- fi
- else
- echo "$APP_LONG_NAME is already running."
- exit 1
- fi
-}
-
-start() {
- echo "Starting $APP_LONG_NAME..."
- getpid
- if [ "X$pid" = "X" ]
- then
- if [ "X$IGNORE_SIGNALS" = "X" ]
- then
- if [ "X$RUN_AS_USER" = "X" ]
- then
- exec $CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.pidfile=$PIDFILE wrapper.daemonize=TRUE
- else
- exec su - $RUN_AS_USER -c "cd $TGTPATH; exec $CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.pidfile=$PIDFILE wrapper.daemonize=TRUE"
- fi
- else
- if [ "X$RUN_AS_USER" = "X" ]
- then
- exec $CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.pidfile=$PIDFILE wrapper.anchorfile=$ANCHORFILE wrapper.ignore_signals=TRUE wrapper.daemonize=TRUE
- else
- exec su - $RUN_AS_USER -c "cd $TGTPATH; exec $CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.pidfile=$PIDFILE wrapper.anchorfile=$ANCHORFILE wrapper.ignore_signals=TRUE wrapper.daemonize=TRUE"
- fi
- fi
- else
- echo "$APP_LONG_NAME is already running."
- exit 1
- fi
-}
-
-stopit() {
- echo "Stopping $APP_LONG_NAME..."
- getpid
- if [ "X$pid" = "X" ]
- then
- echo "$APP_LONG_NAME was not running."
- else
- if [ "X$IGNORE_SIGNALS" = "X" ]
- then
- # Running so try to stop it.
- kill $pid
- if [ $? -ne 0 ]
- then
- # An explanation for the failure should have been given
- echo "Unable to stop $APP_LONG_NAME."
- exit 1
- fi
- else
- rm -f $ANCHORFILE
- if [ -f $ANCHORFILE ]
- then
- # An explanation for the failure should have been given
- echo "Unable to stop $APP_LONG_NAME."
- exit 1
- fi
- fi
-
- # We can not predict how long it will take for the wrapper to
- # actually stop as it depends on settings in wrapper.conf.
- # Loop until it does.
- savepid=$pid
- CNT=0
- TOTCNT=0
- while [ "X$pid" != "X" ]
- do
- # Loop for up to 5 minutes
- if [ "$TOTCNT" -lt "300" ]
- then
- if [ "$CNT" -lt "5" ]
- then
- CNT=`expr $CNT + 1`
- else
- echo "Waiting for $APP_LONG_NAME to exit..."
- CNT=0
- fi
- TOTCNT=`expr $TOTCNT + 1`
-
- sleep 1
-
- testpid
- else
- pid=
- fi
- done
-
- pid=$savepid
- testpid
- if [ "X$pid" != "X" ]
- then
- echo "Timed out waiting for $APP_LONG_NAME to exit."
- echo " Attempting a forced exit..."
- kill -9 $pid
- fi
-
- pid=$savepid
- testpid
- if [ "X$pid" != "X" ]
- then
- echo "Failed to stop $APP_LONG_NAME."
- exit 1
- else
- echo "Stopped $APP_LONG_NAME."
- fi
- fi
-}
-
-status() {
- getpid
- if [ "X$pid" = "X" ]
- then
- echo "$APP_LONG_NAME is not running."
- exit 1
- else
- echo "$APP_LONG_NAME is running ($pid)."
- exit 0
- fi
-}
-
-dump() {
- echo "Dumping $APP_LONG_NAME..."
- getpid
- if [ "X$pid" = "X" ]
- then
- echo "$APP_LONG_NAME was not running."
-
- else
- kill -3 $pid
-
- if [ $? -ne 0 ]
- then
- echo "Failed to dump $APP_LONG_NAME."
- exit 1
- else
- echo "Dumped $APP_LONG_NAME."
- fi
- fi
-}
-
-case "$1" in
-
- 'console')
- console
- ;;
-
- 'start')
- start
- ;;
-
- 'stop')
- stopit
- ;;
-
- 'restart')
- stopit
- start
- ;;
-
- 'status')
- status
- ;;
-
- 'dump')
- dump
- ;;
-
- *)
- echo "Usage: $0 { console | start | stop | restart | status | dump }"
- exit 1
- ;;
-esac
-
-exit 0
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/solaris/libwrapper.so b/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/solaris/libwrapper.so
deleted file mode 100644
index f8ce31f94..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/solaris/libwrapper.so and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/solaris/wrapper b/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/solaris/wrapper
deleted file mode 100644
index 39a8d4f3c..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/solaris/wrapper and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/win32/InstallService.bat b/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/win32/InstallService.bat
deleted file mode 100644
index a1e337db8..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/win32/InstallService.bat
+++ /dev/null
@@ -1,13 +0,0 @@
-@echo off
-
-set _WRAPPER_CONF="%~f1"
-if not %_WRAPPER_CONF%=="" goto startup
-set _WRAPPER_CONF="wrapper.conf"
-
-:startup
-"Wrapper.exe" -i %_WRAPPER_CONF%
-if not errorlevel 1 goto end
-pause
-
-:end
-set _WRAPPER_CONF=
\ No newline at end of file
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/win32/UninstallService.bat b/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/win32/UninstallService.bat
deleted file mode 100644
index 26d154d71..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/win32/UninstallService.bat
+++ /dev/null
@@ -1,13 +0,0 @@
-@echo off
-
-set _WRAPPER_CONF="%~f1"
-if not %_WRAPPER_CONF%=="" goto startup
-set _WRAPPER_CONF="wrapper.conf"
-
-:startup
-"Wrapper.exe" -r %_WRAPPER_CONF%
-if not errorlevel 1 goto end
-pause
-
-:end
-set _WRAPPER_CONF=
\ No newline at end of file
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/win32/run.bat b/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/win32/run.bat
deleted file mode 100644
index c16776239..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/win32/run.bat
+++ /dev/null
@@ -1,38 +0,0 @@
-@echo off
-rem
-rem Find the application home.
-rem
-if "%OS%"=="Windows_NT" goto nt
-
-echo This is not NT, so please edit this script and set _APP_HOME manually
-set _APP_HOME=..
-
-goto conf
-
-:nt
-rem %~dp0 is name of current script under NT
-set _APP_HOME=%~dp0
-rem : operator works similar to make : operator
-rem set _APP_HOME=%_APP_HOME:\bin\=%
-
-
-rem
-rem Find the wrapper.conf
-rem
-:conf
-set _WRAPPER_CONF=wrapper.conf
-
-
-rem
-rem Run the application.
-rem At runtime, the current directory will be that of Wrapper.exe
-rem
-:startup
-"%_APP_HOME%wrapper.exe" -c %_WRAPPER_CONF%
-if not errorlevel 1 goto end
-pause
-
-:end
-set _APP_HOME=
-set _WRAPPER_CONF=
-
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/win32/wrapper.dll b/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/win32/wrapper.dll
deleted file mode 100644
index 38b7807cf..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/win32/wrapper.dll and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/win32/wrapper.exe b/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/win32/wrapper.exe
deleted file mode 100644
index 4a31b0a81..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/win32/wrapper.exe and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/windows/run.bat b/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/windows/run.bat
deleted file mode 100644
index e99c910c2..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/windows/run.bat
+++ /dev/null
@@ -1,40 +0,0 @@
-@echo off
-rem
-rem Find the application home.
-rem
-if "%OS%"=="Windows_NT" goto nt
-
-echo This is not NT, so please edit this script and set _APP_HOME manually
-set _APP_HOME=..
-
-goto conf
-
-:nt
-rem %~dp0 is name of current script under NT
-set _APP_HOME=%~dp0
-rem : operator works similar to make : operator
-rem set _APP_HOME=%_APP_HOME:\bin\=%
-
-
-rem
-rem Find the wrapper.conf
-rem
-:conf
-set _WRAPPER_CONF="%~f1"
-if not %_WRAPPER_CONF%=="" goto startup
-set _WRAPPER_CONF="%_APP_HOME%..\..\conf\wrapper.conf"
-
-
-rem
-rem Run the application.
-rem At runtime, the current directory will be that of Wrapper.exe
-rem
-:startup
-"%_APP_HOME%\Wrapper.exe" -c %_WRAPPER_CONF%
-if not errorlevel 1 goto end
-pause
-
-:end
-set _APP_HOME=
-set _WRAPPER_CONF=
-
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/wrapper.conf b/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/wrapper.conf
deleted file mode 100644
index b300ad3f0..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/wrapper.conf
+++ /dev/null
@@ -1,100 +0,0 @@
-#********************************************************************
-# Wrapper Properties
-#********************************************************************
-# Java Application
-wrapper.java.command=%JAVA_HOME%/bin/java
-
-# Java Main class. This class must implement the WrapperListener interface
-# or guarantee that the WrapperManager class is initialized. Helper
-# classes are provided to do this for you. See the Integration section
-# of the documentation for details.
-wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
-
-# Java Classpath (include wrapper.jar) Add class path elements as
-# needed starting from 1
-wrapper.java.classpath.1=../../core/boot/wrapper.jar
-wrapper.java.classpath.2=../../core/boot/classworlds-@classworlds.version@.jar
-
-# Java Library Path (location of Wrapper.DLL or libwrapper.so)
-wrapper.java.library.path.1=@library.path@
-
-# Java Additional Parameters
-wrapper.java.additional.1=-Dclassworlds.conf=../../conf/classworlds.conf
-wrapper.java.additional.2=-Djava.io.temp=../../temp
-wrapper.java.additional.3=-Dplexus.core=../../core
-wrapper.java.additional.4=-Dplexus.home=../..
-wrapper.java.additional.5=-Dplexus.system.path="%PATH%@extra.path@"
-wrapper.java.additional.5.stripquotes=TRUE
-
-# Initial Java Heap Size (in MB)
-wrapper.java.initmemory=3
-
-# Maximum Java Heap Size (in MB)
-wrapper.java.maxmemory=128
-
-# Application parameters. Add parameters as needed starting from 1
-wrapper.app.parameter.1=org.codehaus.classworlds.Launcher
-wrapper.app.parameter.2=../../conf/plexus.xml
-
-#********************************************************************
-# Wrapper Logging Properties
-#********************************************************************
-# Format of output for the console. (See docs for formats)
-wrapper.console.format=PM
-
-# Log Level for console output. (See docs for log levels)
-wrapper.console.loglevel=INFO
-
-# Log file to use for wrapper output logging.
-wrapper.logfile=../../logs/wrapper.log
-
-# Format of output for the log file. (See docs for formats)
-wrapper.logfile.format=LPTM
-
-# Log Level for log file output. (See docs for log levels)
-wrapper.logfile.loglevel=INFO
-
-# Maximum size that the log file will be allowed to grow to before
-# the log is rolled. Size is specified in bytes. The default value
-# of 0, disables log rolling. May abbreviate with the 'k' (kb) or
-# 'm' (mb) suffix. For example: 10m = 10 megabytes.
-wrapper.logfile.maxsize=0
-
-# Maximum number of rolled log files which will be allowed before old
-# files are deleted. The default value of 0 implies no limit.
-wrapper.logfile.maxfiles=0
-
-# Log Level for sys/event log output. (See docs for log levels)
-wrapper.syslog.loglevel=NONE
-
-#********************************************************************
-# Wrapper Windows Properties
-#********************************************************************
-# Title to use when running as a console
-wrapper.console.title=@app.long.name@
-
-#********************************************************************
-# Wrapper Windows NT/2000/XP Service Properties
-#********************************************************************
-# WARNING - Do not modify any of these properties when an application
-# using this configuration file has been installed as a service.
-# Please uninstall the service before modifying this section. The
-# service can then be reinstalled.
-
-# Name of the service
-wrapper.ntservice.name=@app.name@
-
-# Display name of the service
-wrapper.ntservice.displayname=@app.long.name@
-
-# Description of the service
-wrapper.ntservice.description=@app.description@
-
-# Service dependencies. Add dependencies as needed starting from 1
-wrapper.ntservice.dependency.1=
-
-# Mode in which the service is installed. AUTO_START or DEMAND_START
-wrapper.ntservice.starttype=AUTO_START
-
-# Allow the service to interact with the desktop.
-wrapper.ntservice.interactive=false
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/wrapper.jar b/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/wrapper.jar
deleted file mode 100644
index 0ee6011cf..000000000
Binary files a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/jsw/wrapper.jar and /dev/null differ
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/org/codehaus/plexus/builder/templates/classworlds.vm b/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/org/codehaus/plexus/builder/templates/classworlds.vm
deleted file mode 100644
index 83c659f00..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/org/codehaus/plexus/builder/templates/classworlds.vm
+++ /dev/null
@@ -1,5 +0,0 @@
-main is org.codehaus.plexus.appserver.PlexusApplicationHost from plexus.core
-
-[plexus.core]
-load ${plexus.core}/*.jar
-load ${java.home}/../lib/tools.jar
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/org/codehaus/plexus/builder/templates/plexus-bat.vm b/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/org/codehaus/plexus/builder/templates/plexus-bat.vm
deleted file mode 100644
index 5299072ef..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/org/codehaus/plexus/builder/templates/plexus-bat.vm
+++ /dev/null
@@ -1,136 +0,0 @@
-@REM ----------------------------------------------------------------------------
-@REM Plexus Start Up Batch script
-@REM
-@REM Required ENV vars:
-@REM JAVA_HOME - location of a JDK home dir
-@REM PLEXUS_HOME - location of Plexus installed home dir
-@REM
-@REM Optional ENV vars
-@REM PLEXUS_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
-@REM PLEXUS_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
-@REM PLEXUS_OPTS - parameters passed to the Java VM when running Plexus
-@REM e.g. to debug Plexus itself, use
-@REM set PLEXUS_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
-@REM ----------------------------------------------------------------------------
-
-@echo off
-@REM Begin all REM lines with '@' in case PLEXUS_BATCH_ECHO is 'on'
-@REM enable echoing my setting PLEXUS_BATCH_ECHO to 'on'
-@if "%PLEXUS_BATCH_ECHO%" == "on" echo %PLEXUS_BATCH_ECHO%
-
-@REM Execute a user defined script before this one
-if exist "%HOME%\plexusrc_pre.bat" call "%HOME%\plexusrc_pre.bat"
-
-@REM set local scope for the variables with windows NT shell
-if "%OS%"=="Windows_NT" @setlocal
-
-@REM ==== START VALIDATION ====
-if not "%JAVA_HOME%" == "" goto OkJHome
-
-echo.
-echo ERROR: JAVA_HOME not found in your environment.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation
-echo.
-goto end
-
-:OkJHome
-if exist "%JAVA_HOME%\bin\java.exe" goto chkMHome
-
-echo.
-echo ERROR: JAVA_HOME is set to an invalid directory.
-echo JAVA_HOME = %JAVA_HOME%
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation
-echo.
-goto end
-
-:chkMHome
-if not "%PLEXUS_HOME%"=="" goto valMHome
-
-if "%OS%"=="Windows_NT" SET PLEXUS_HOME=%~dp0..
-if not "%PLEXUS_HOME%"=="" goto valMHome
-
-echo.
-echo ERROR: PLEXUS_HOME not found in your environment.
-echo Please set the PLEXUS_HOME variable in your environment to match the
-echo location of the PLEXUS installation
-echo.
-goto end
-
-:valMHome
-if exist "%PLEXUS_HOME%\bin\plexus.bat" goto init
-
-echo.
-echo ERROR: PLEXUS_HOME is set to an invalid directory.
-echo PLEXUS_HOME = %PLEXUS_HOME%
-echo Please set the PLEXUS_HOME variable in your environment to match the
-echo location of the PLEXUS installation
-echo.
-goto end
-@REM ==== END VALIDATION ====
-
-:init
-@REM Decide how to startup depending on the version of windows
-
-@REM -- Win98ME
-if NOT "%OS%"=="Windows_NT" goto Win9xArg
-
-@REM -- 4NT shell
-if "%eval[2+2]" == "4" goto 4NTArgs
-
-@REM -- Regular WinNT shell
-set PLEXUS_CMD_LINE_ARGS=%*
-goto endInit
-
-@REM The 4NT Shell from jp software
-:4NTArgs
-set PLEXUS_CMD_LINE_ARGS=%$
-goto endInit
-
-:Win9xArg
-@REM Slurp the command line arguments. This loop allows for an unlimited number
-@REM of agruments (up to the command line limit, anyway).
-set PLEXUS_CMD_LINE_ARGS=
-:Win9xApp
-if %1a==a goto endInit
-set PLEXUS_CMD_LINE_ARGS=%PLEXUS_CMD_LINE_ARGS% %1
-shift
-goto Win9xApp
-
-@REM Reaching here means variables are defined and arguments have been captured
-:endInit
-if "%PLEXUS_OPTS%"=="" SET PLEXUS_OPTS="-Xmx@{app.max.memory}@"
-SET PLEXUS_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
-SET PLEXUS_CORE="%PLEXUS_HOME%\core"
-SET PLEXUS_TMPDIR="%PLEXUS_HOME%\temp"
-SET PLEXUS_CONF=%PLEXUS_HOME%\conf
-SET CONF="%PLEXUS_CONF%\plexus.xml"
-SET PLEXUS_CMD_LINE_ARGS=%CONF% %PLEXUS_CMD_LINE_ARGS%
-if exist %PLEXUS_TMPDIR% goto run
-mkdir "%PLEXUS_TMPDIR%"
-
-:run
-@REM Start Plexus
-%PLEXUS_JAVA_EXE% %PLEXUS_OPTS% -classpath "%PLEXUS_HOME%\core\boot\classworlds-@{classworlds.version}@.jar" -Dclassworlds.conf="%PLEXUS_HOME%\conf\classworlds.conf" -Dplexus.core=%PLEXUS_CORE% -Dplexus.system.path="%PATH%" -Djava.io.tmpdir=%PLEXUS_TMPDIR% -Dplexus.home="%PLEXUS_HOME%" org.codehaus.classworlds.Launcher %PLEXUS_CMD_LINE_ARGS%
-goto end
-
-:end
-@REM set local scope for the variables with windows NT shell
-if "%OS%"=="Windows_NT" goto endNT
-
-@REM For old DOS remove the set variables from ENV - we assume they were not set
-@REM before we started - at least we don't leave any baggage around
-set PLEXUS_JAVA_EXE=
-SET PLEXUS_CORE=
-set PLEXUS_CMD_LINE_ARGS=
-SET PLEXUS_TMPDIR=
-goto postExec
-
-:endNT
-@endlocal
-
-:postExec
-if exist "%HOME%\plexusrc_post.bat" call "%HOME%\plexusrc_post.bat"
-@REM pause the batch file if PLEXUS_BATCH_PAUSE is set to 'on'
-if "%PLEXUS_BATCH_PAUSE%" == "on" pause
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/org/codehaus/plexus/builder/templates/plexus.vm b/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/org/codehaus/plexus/builder/templates/plexus.vm
deleted file mode 100644
index 6fd242fd5..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/main/resources/org/codehaus/plexus/builder/templates/plexus.vm
+++ /dev/null
@@ -1,129 +0,0 @@
-#! /bin/sh
-
-PLEXUS_OPTS="$PLEXUS_OPTS -Xmx@{app.max.memory}@"
-
-# OS specific support. $var _must_ be set to either true or false.
-cygwin=false
-darwin=false;
-case "`uname`" in
-CYGWIN*) cygwin=true;;
-Darwin*) darwin=true ;;
-esac
-
-# resolve links - $0 may be a softlink
-THIS_PROG="$0"
-
-while [ -h "$THIS_PROG" ]; do
- ls=`ls -ld "$THIS_PROG"`
- link=`expr "$ls" : '.*-> \(.*\)$'`
- if expr "$link" : '.*/.*' > /dev/null; then
- THIS_PROG="$link"
- else
- THIS_PROG=`dirname "$THIS_PROG"`/"$link"
- fi
-done
-
-# Get standard environment variables
-PRGDIR=`dirname "$THIS_PROG"`
-PLEXUS_HOME=`cd "$PRGDIR/.." ; pwd`
-PLEXUS_CONF=`cd "$PLEXUS_HOME/conf" ; pwd`
-unset THIS_PROG
-
-if [ -z "$JAVA_HOME" ] ; then
- if [ -e /etc/gentoo-release ] ; then
- JAVA_HOME=`java-config --jre-home`
- fi
-fi
-
-
-# Checking for JAVA_HOME is required on *nix due
-# to some distributions stupidly including kaffe in /usr/bin
-if [ "$JAVA_HOME" = "" ] ; then
- echo "ERROR: JAVA_HOME not found in your environment."
- echo
- echo "Please, set the JAVA_HOME variable in your environment to match the"
- echo "location of the Java Virtual Machine you want to use."
- exit 1
-fi
-
-# For Cygwin, ensure paths are in UNIX format before anything is touched
-if $cygwin ; then
- [ -n "$PLEXUS_HOME" ] &&
- PLEXUS_HOME=`cygpath --unix "$PLEXUS_HOME"`
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
- [ -n "$CLASSPATH" ] &&
- CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
-fi
-
-if [ -z "$PLEXUS_TMPDIR" ] ; then
- PLEXUS_TMPDIR="$PLEXUS_HOME"/temp
- mkdir -p "$PLEXUS_TMPDIR"
-fi
-
-if [ -z "$JAVACMD" ] ; then
- if [ -n "$JAVA_HOME" ] ; then
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
- # IBM's JDK on AIX uses strange locations for the executables
- JAVACMD="$JAVA_HOME/jre/sh/java"
- else
- JAVACMD="$JAVA_HOME/bin/java"
- fi
- else
- JAVACMD=java
- fi
-fi
-
-if [ ! -x "$JAVACMD" ] ; then
- echo "Error: JAVA_HOME is not defined correctly."
- echo " We cannot execute $JAVACMD"
- exit
-fi
-
-if [ -z "$JAVA_HOME" ] ; then
- echo "Warning: JAVA_HOME environment variable is not set."
- echo " If build fails because sun.* classes could not be found"
- echo " you will need to set the JAVA_HOME environment variable"
- echo " to the installation directory of java."
-fi
-
-# For Cygwin, switch paths to Windows format before running java
-if $cygwin; then
- PLEXUS_HOME=`cygpath --path --windows "$PLEXUS_HOME"`
- PLEXUS_CONF=`cygpath --path --windows "$PLEXUS_CONF"`
- PLEXUS_TMPDIR=`cygpath --path --windows "$PLEXUS_TMPDIR"`
- JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
-fi
-
-# For Darwin, use classes.jar for TOOLS_JAR
-TOOLS_JAR="${JAVA_HOME}/lib/tools.jar"
-if $darwin; then
- TOOLS_JAR="/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Classes/classes.jar"
-fi
-
-# ----- Execute The Requested Command -----------------------------------------
-
-echo "Using PLEXUS_HOME: $PLEXUS_HOME"
-echo "Using PLEXUS_CONF: $PLEXUS_CONF"
-echo "Using PLEXUS_TMPDIR: $PLEXUS_TMPDIR"
-echo "Using JAVA_HOME: $JAVA_HOME"
-
-if [ "$1" = "" ]
-then
- CONF="${PLEXUS_CONF}/plexus.xml"
-else
- CONF="$1"
-fi
-
-MAIN_CLASS=org.codehaus.classworlds.Launcher
-
-exec "$JAVACMD" \
- $PLEXUS_OPTS \
- -classpath "${PLEXUS_HOME}"/core/boot/classworlds-*.jar \
- -Dclassworlds.conf="${PLEXUS_HOME}/conf/classworlds.conf" \
- -Dplexus.core="${PLEXUS_HOME}/core" \
- -Dplexus.system.path="${PATH}" \
- -Djava.io.tmpdir="${PLEXUS_TMPDIR}" \
- -Dtools.jar="$TOOLS_JAR" \
- -Dplexus.home="${PLEXUS_HOME}" \
- $MAIN_CLASS ${CONF}
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/test/expected-runtime/bin/plexus.bat b/plexus-appserver/plexus-appserver-runtime-builder/src/test/expected-runtime/bin/plexus.bat
deleted file mode 100644
index 61fc9f009..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/test/expected-runtime/bin/plexus.bat
+++ /dev/null
@@ -1,154 +0,0 @@
-@REM ----------------------------------------------------------------------------
-@REM Plexus Start Up Batch script
-@REM
-@REM Required ENV vars:
-@REM JAVA_HOME - location of a JDK home dir
-@REM PLEXUS_HOME - location of Plexus installed home dir
-@REM
-@REM Optional ENV vars
-@REM PLEXUS_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
-@REM PLEXUS_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
-@REM PLEXUS_OPTS - parameters passed to the Java VM when running Plexus
-@REM e.g. to debug Plexus itself, use
-@REM set PLEXUS_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
-@REM
-@REM Utility rquirements:
-@REM Windows' find.exe
-@REM Windows' cmd.exe (NT) OR command.com ( 98 or ME )
-@REM ----------------------------------------------------------------------------
-set PLEXUS_HOME=
-set CLASSWORLDS_VERSION=1.1-SNAPSHOT
-set MAIN_CLASS=org.codehaus.classworlds.Launcher
-set PLEXUS_OPTS="-Xmx128m"
-
-@REM Begin all REM lines with '@' in case PLEXUS_BATCH_ECHO is 'on'
-@REM echo on
-@REM enable echoing my setting PLEXUS_BATCH_ECHO to 'on'
-if "%PLEXUS_BATCH_ECHO%" == "on" echo %PLEXUS_BATCH_ECHO%
-
-@REM Execute a user defined script before this one
-if exist "%HOME%\plexusrc_pre.bat" call "%HOME%\plexusrc_pre.bat"
-
-@REM set local scope for the variables with windows NT shell
-if "%OS%"=="Windows_NT" @setlocal
-
-@REM For Windows NT, use cmd.exe to execute the "CD" later
-@REM For Win 98ME, use comand.com - if neither is found , default to use
-@REM cmd.exe in the path and hope we'll hit a Win version of it
-@REM FYI: Using command.com on Win NT causes "Parameter format not correct" error
-set PLEXUS_COMMAND_COM="cmd.exe"
-if exist "%SystemRoot%\system32\cmd.exe" set PLEXUS_COMMAND_COM="%SystemRoot%\system32\cmd.exe"
-if exist "%SystemRoot%\command.com" set PLEXUS_COMMAND_COM="%SystemRoot%\command.com"
-
-@REM Use explicit find.exe to prevent cygwin and others find.exe from being
-@REM used instead - we use this to test dir existance in a cross-win-platform way
-set PLEXUS_FIND_EXE="find.exe"
-if exist "%SystemRoot%\system32\find.exe" set PLEXUS_FIND_EXE="%SystemRoot%\system32\find.exe"
-if exist "%SystemRoot%\command\find.exe" set PLEXUS_FIND_EXE="%SystemRoot%\command\find.exe"
-
-@REM ==== START VALIDATION ====
-if not "%JAVA_HOME%" == "" goto OkJHome
-
-echo.
-echo ERROR: JAVA_HOME not found in your environment.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation
-echo.
-goto end
-
-:OkJHome
-%PLEXUS_COMMAND_COM% /C DIR "%JAVA_HOME%" 2>&1 | %PLEXUS_FIND_EXE% /I /C "%JAVA_HOME%" >nul
-if not errorlevel 1 goto chkMHome
-
-echo.
-echo ERROR: JAVA_HOME is set to an invalid directory.
-echo JAVA_HOME = %JAVA_HOME%
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation
-echo.
-goto end
-
-:chkMHome
-if not "%PLEXUS_HOME%"=="" goto valMHome
-
-echo.
-echo ERROR: PLEXUS_HOME not found in your environment.
-echo Please set the PLEXUS_HOME variable in your environment to match the
-echo location of the Plexus installation
-echo.
-goto end
-
-:valMHome
-%PLEXUS_COMMAND_COM% /C DIR "%PLEXUS_HOME%" 2>&1 | %PLEXUS_FIND_EXE% /I /C "%PLEXUS_HOME%" >nul
-if not errorlevel 1 goto init
-
-echo.
-echo ERROR: PLEXUS_HOME is set to an invalid directory.
-echo PLEXUS_HOME = %PLEXUS_HOME%
-echo Please set the PLEXUS_HOME variable in your environment to match the
-echo location of the Plexus installation
-echo.
-goto end
-@REM ==== END VALIDATION ====
-
-:init
-@REM Decide how to startup depending on the version of windows
-
-@REM -- Win98ME
-if NOT "%OS%"=="Windows_NT" goto Win9xArg
-
-@REM -- 4NT shell
-if "%eval[2+2]" == "4" goto 4NTArgs
-
-@REM -- Regular WinNT shell
-set PLEXUS_CMD_LINE_ARGS=%*
-goto endInit
-
-@REM The 4NT Shell from jp software
-:4NTArgs
-set PLEXUS_CMD_LINE_ARGS=%$
-goto endInit
-
-:Win9xArg
-@REM Slurp the command line arguments. This loop allows for an unlimited number
-@REM of agruments (up to the command line limit, anyway).
-set PLEXUS_CMD_LINE_ARGS=
-:Win9xApp
-if %1a==a goto endInit
-set PLEXUS_CMD_LINE_ARGS=%PLEXUS_CMD_LINE_ARGS% %1
-shift
-goto Win9xApp
-
-@REM Reaching here means variables are defined and arguments have been captured
-:endInit
-SET PLEXUS_DEFAULT_OPTS="-Xmx160m"
-SET PLEXUS_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
-SET PLEXUS_ENDORSED="-Djava.endorsed.dirs=%JAVA_HOME%\lib\endorsed;%PLEXUS_HOME%\lib\endorsed"
-
-@REM Start PLEXUS
-%PLEXUS_JAVA_EXE% "-Dplexus.home=%PLEXUS_HOME%" "-Dtools.jar=%JAVA_HOME%\lib\tools.jar" %PLEXUS_DEFAULT_OPTS% %PLEXUS_OPTS% -classpath %PLEXUS_CLASSPATH% %PLEXUS_MAIN_CLASS% %PLEXUS_CMD_LINE_ARGS% $PLEXUS_OPTS -classpath %PLEXUS_HOME%\lib\classworlds-%CLASSWORLDS_VERSION%.jar -Dclassworlds.conf=%PLEXUS_HOME%\conf\classworlds.conf -Dplexus.core=%PLEXUS_HOME%\core -Dtools.jar=$TOOLS_JAR -Dplexus.home=%PLEXUS_HOME% org.codehaus.classworlds.Launcher %PLEXUS_HOME%\conf\plexus.conf
-
-
-:end
-@REM set local scope for the variables with windows NT shell
-if "%OS%"=="Windows_NT" goto endNT
-
-@REM For old DOS remove the set variables from ENV - we assume they were not set
-@REM before we started - at least we don't leave any baggage around
-set PLEXUS_COMMAND_COM=
-set PLEXUS_FIND_EXE=
-set PLEXUS_DEFAULT_OPTS=
-set PLEXUS_JAVA_EXE=
-set PLEXUS_CLASSPATH=
-set PLEXUS_MAIN_CLASS=
-set PLEXUS_CMD_LINE_ARGS=
-SET PLEXUS_ENDORSED=
-goto postExec
-
-:endNT
-@endlocal
-
-:postExec
-@REM if exist "%HOME%\plexusrc_post.bat" call "%HOME%\plexusrc_post.bat"
-@REM pause the batch file if PLEXUS_BATCH_PAUSE is set to 'on'
-@REM if "%PLEXUS_BATCH_PAUSE%" == "on" pause
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/test/expected-runtime/bin/plexus.sh b/plexus-appserver/plexus-appserver-runtime-builder/src/test/expected-runtime/bin/plexus.sh
deleted file mode 100755
index 1935b6bb6..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/test/expected-runtime/bin/plexus.sh
+++ /dev/null
@@ -1,122 +0,0 @@
-#! /bin/sh
-
-PLEXUS_OPTS="-Xmx128m"
-
-# OS specific support. $var _must_ be set to either true or false.
-cygwin=false
-darwin=false;
-case "`uname`" in
-CYGWIN*) cygwin=true;;
-Darwin*) darwin=true ;;
-esac
-
-# resolve links - $0 may be a softlink
-THIS_PROG="$0"
-
-while [ -h "$THIS_PROG" ]; do
- ls=`ls -ld "$THIS_PROG"`
- link=`expr "$ls" : '.*-> \(.*\)$'`
- if expr "$link" : '.*/.*' > /dev/null; then
- THIS_PROG="$link"
- else
- THIS_PROG=`dirname "$THIS_PROG"`/"$link"
- fi
-done
-
-# Get standard environment variables
-PRGDIR=`dirname "$THIS_PROG"`
-PLEXUS_HOME=`cd "$PRGDIR/.." ; pwd`
-PLEXUS_CONF=`cd "$PLEXUS_HOME/conf" ; pwd`
-unset THIS_PROG
-
-
-# Checking for JAVA_HOME is required on *nix due
-# to some distributions stupidly including kaffe in /usr/bin
-if [ "$JAVA_HOME" = "" ] ; then
- echo "ERROR: JAVA_HOME not found in your environment."
- echo
- echo "Please, set the JAVA_HOME variable in your environment to match the"
- echo "location of the Java Virtual Machine you want to use."
- exit 1
-fi
-
-# For Cygwin, ensure paths are in UNIX format before anything is touched
-if $cygwin ; then
- [ -n "$PLEXUS_HOME" ] &&
- PLEXUS_HOME=`cygpath --unix "$PLEXUS_HOME"`
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
- [ -n "$CLASSPATH" ] &&
- CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
-fi
-
-if [ -z "$PLEXUS_TMPDIR" ] ; then
- PLEXUS_TMPDIR="$PLEXUS_HOME"/temp
- mkdir -p "$PLEXUS_TMPDIR"
-fi
-
-if [ -z "$JAVACMD" ] ; then
- if [ -n "$JAVA_HOME" ] ; then
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
- # IBM's JDK on AIX uses strange locations for the executables
- JAVACMD=$JAVA_HOME/jre/sh/java
- else
- JAVACMD=$JAVA_HOME/bin/java
- fi
- else
- JAVACMD=java
- fi
-fi
-
-if [ ! -x "$JAVACMD" ] ; then
- echo "Error: JAVA_HOME is not defined correctly."
- echo " We cannot execute $JAVACMD"
- exit
-fi
-
-if [ -z "$JAVA_HOME" ] ; then
- echo "Warning: JAVA_HOME environment variable is not set."
- echo " If build fails because sun.* classes could not be found"
- echo " you will need to set the JAVA_HOME environment variable"
- echo " to the installation directory of java."
-fi
-
-# For Cygwin, switch paths to Windows format before running java
-if $cygwin; then
- PLEXUS_HOME=`cygpath --path --windows "$PLEXUS_HOME"`
- PLEXUS_CONF=`cygpath --path --windows "$PLEXUS_CONF"`
- PLEXUS_TMPDIR=`cygpath --path --windows "$PLEXUS_TMPDIR"`
- JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
-fi
-
-# For Darwin, use classes.jar for TOOLS_JAR
-TOOLS_JAR="${JAVA_HOME}/lib/tools.jar"
-if $darwin; then
- TOOLS_JAR="/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Classes/classes.jar"
-fi
-
-# ----- Execute The Requested Command -----------------------------------------
-
-echo "Using PLEXUS_HOME: $PLEXUS_HOME"
-echo "Using PLEXUS_CONF: $PLEXUS_CONF"
-echo "Using PLEXUS_TMPDIR: $PLEXUS_TMPDIR"
-echo "Using JAVA_HOME: $JAVA_HOME"
-
-if [ "$1" = "" ]
-then
- CONF=${PLEXUS_CONF}/plexus.conf
-else
- CONF=$1
-fi
-
-MAIN_CLASS=org.codehaus.classworlds.Launcher
-
-$JAVACMD \
- $PLEXUS_OPTS \
- -classpath ${PLEXUS_HOME}/core/boot/classworlds-*.jar \
- -Dclassworlds.conf=${PLEXUS_HOME}/conf/classworlds.conf \
- -Dplexus.core=${PLEXUS_HOME}/core \
- -Djava.io.tmpdir=${PLEXUS_TMPDIR} \
- -Dtools.jar=$TOOLS_JAR \
- -Dplexus.home=${PLEXUS_HOME} \
- $MAIN_CLASS ${CONF}
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/test/expected-runtime/conf/classworlds.conf b/plexus-appserver/plexus-appserver-runtime-builder/src/test/expected-runtime/conf/classworlds.conf
deleted file mode 100644
index 609db18d3..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/test/expected-runtime/conf/classworlds.conf
+++ /dev/null
@@ -1,4 +0,0 @@
-main is org.codehaus.plexus.PlexusContainerHost from plexus.core
-
-[plexus.core]
- load ${plexus.core}/*.jar
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/test/expected-runtime/conf/plexus.conf b/plexus-appserver/plexus-appserver-runtime-builder/src/test/expected-runtime/conf/plexus.conf
deleted file mode 100644
index 1e286015b..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/test/expected-runtime/conf/plexus.conf
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/test/expected-runtime/conf/wrapper.conf b/plexus-appserver/plexus-appserver-runtime-builder/src/test/expected-runtime/conf/wrapper.conf
deleted file mode 100644
index f8db4244d..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/test/expected-runtime/conf/wrapper.conf
+++ /dev/null
@@ -1,82 +0,0 @@
-#********************************************************************
-# Wrapper Properties
-#********************************************************************
-# Java Application
-wrapper.java.command=java
-
-# Java Main class
-wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
-
-# Java Classpath (include wrapper.jar) Add class path elements as
-# needed starting from 1
-wrapper.java.classpath.1=../../plexus-lib/wrapper.jar
-wrapper.java.classpath.2=../../plexus-lib/classworlds-1.1-SNAPSHOT.jar
-
-# Java Library Path (location of Wrapper.DLL or libwrapper.so)
-wrapper.java.library.path.1=.
-
-# Java Additional Parameters
-wrapper.java.additional.1=-Dlib=../../plexus-lib
-wrapper.java.additional.2=-Dplexus.home=../../
-wrapper.java.additional.3=-Dclassworlds.conf=../../conf/classworlds.conf
-
-# Initial Java Heap Size (in MB)
-wrapper.java.initmemory=3
-
-# Maximum Java Heap Size (in MB)
-wrapper.java.maxmemory=64
-
-# Application parameters. Add parameters as needed starting from 1
-wrapper.app.parameter.1=org.codehaus.classworlds.Launcher
-wrapper.app.parameter.2=../../conf/plexus.conf
-
-# Port which the native wrapper code will attempt to connect to
-wrapper.port=1777
-
-#********************************************************************
-# Wrapper Logging Properties
-#********************************************************************
-# Format of output for the console. (See docs for formats)
-wrapper.console.format=PM
-
-# Log Level for console output. (See docs for log levels)
-wrapper.console.loglevel=INFO
-
-# Log file to use for wrapper output logging.
-wrapper.logfile=../../logs/wrapper.log
-
-# Format of output for the log file. (See docs for formats)
-wrapper.logfile.format=LPTM
-
-# Log Level for log file output. (See docs for log levels)
-wrapper.logfile.loglevel=INFO
-
-# Maximum size that the log file will be allowed to grow to before
-# the log is rolled. Size is specified in bytes. The default value
-# of 0, disables log rolling. May abbreviate with the 'k' (kb) or
-# 'm' (mb) suffix. For example: 10m = 10 megabytes.
-wrapper.logfile.maxsize=0
-
-# Maximum number of rolled log files which will be allowed before old
-# files are deleted. The default value of 0 implies no limit.
-wrapper.logfile.maxfiles=0
-
-# Log Level for sys/event log output. (See docs for log levels)
-wrapper.syslog.loglevel=NONE
-
-#********************************************************************
-# Wrapper NT Service Properties
-#********************************************************************
-# WARNING - Do not modify any of these properties when an application
-# using this configuration file has been installed as a service.
-# Please uninstall the service before modifying this section. The
-# service can then be reinstalled.
-
-# Name of the service
-wrapper.ntservice.name=@app.ntservice.name@
-
-# Display name of the service
-wrapper.ntservice.displayname=@app.ntservice.displayname@
-
-# Description of the service
-wrapper.ntservice.description=@app.ntservice.description@
\ No newline at end of file
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/test/java/org/codehaus/plexus/builder/runtime/PlexusRuntimeBuilderTest.java b/plexus-appserver/plexus-appserver-runtime-builder/src/test/java/org/codehaus/plexus/builder/runtime/PlexusRuntimeBuilderTest.java
deleted file mode 100644
index f99df82e5..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/test/java/org/codehaus/plexus/builder/runtime/PlexusRuntimeBuilderTest.java
+++ /dev/null
@@ -1,124 +0,0 @@
-package org.codehaus.plexus.builder.runtime;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.apache.maven.artifact.Artifact;
-import org.apache.maven.artifact.factory.ArtifactFactory;
-import org.apache.maven.artifact.repository.ArtifactRepository;
-import org.apache.maven.artifact.repository.ArtifactRepositoryFactory;
-import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout;
-import org.codehaus.plexus.PlexusTestCase;
-import org.codehaus.plexus.util.FileUtils;
-import org.codehaus.plexus.util.PropertyUtils;
-
-import java.io.File;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Properties;
-import java.util.Set;
-
-/**
- * @author Trygve Laugstøl
- * @version $Id$
- */
-public class PlexusRuntimeBuilderTest
- extends PlexusTestCase
-{
- private ArtifactFactory artifactFactory;
-
- protected void setUp()
- throws Exception
- {
- super.setUp();
-
- artifactFactory = (ArtifactFactory) lookup( ArtifactFactory.ROLE );
- }
-
- public void testRuntimeBuilder()
- throws Exception
- {
- PlexusRuntimeBuilder runtimeBuilder = (PlexusRuntimeBuilder) lookup( PlexusRuntimeBuilder.ROLE );
-
- ArtifactRepositoryFactory artifactRepositoryFactory =
- (ArtifactRepositoryFactory) lookup( ArtifactRepositoryFactory.ROLE );
-
- // ----------------------------------------------------------------------
- // Clean the output directory
- // ----------------------------------------------------------------------
-
- File workingDirectory = getTestFile( "target/test-runtime" );
-
- FileUtils.deleteDirectory( workingDirectory );
-
- // ----------------------------------------------------------------------
- //
- // ----------------------------------------------------------------------
-
- List remoteRepositories = new ArrayList();
-
- ArtifactRepositoryLayout repositoryLayout =
- (ArtifactRepositoryLayout) lookup( ArtifactRepositoryLayout.ROLE, "legacy" );
-
- ArtifactRepository localRepository = artifactRepositoryFactory.createArtifactRepository( "local", "file://" +
- getTestFile( "src/test/repository" ).getAbsolutePath(), repositoryLayout );
-
- Set projectArtifacts = new HashSet();
-
- projectArtifacts.add( makeArtifact( "classworlds", "classworlds", "1.1-alpha-1" ) );
- projectArtifacts.add( makeArtifact( "org.codehaus.plexus", "plexus-container-default", "1.0-alpha-7" ) );
- projectArtifacts.add( makeArtifact( "plexus", "plexus-container-artifact", "1.0-alpha-2" ) );
- projectArtifacts.add( makeArtifact( "org.codehaus.plexus", "plexus-appserver-host", "1.0" ) );
- projectArtifacts.add( makeArtifact( "org.codehaus.plexus", "plexus-utils", "1.0.4" ) );
-
- // ----------------------------------------------------------------------
- //
- // ----------------------------------------------------------------------
-
- File plexusConfiguration = getTestFile( "src/test/resources/conf/plexus.xml" );
-
- File configurationPropertiesFile = getTestFile( "src/test/resources/configuration.properties" );
-
- Properties configurationProperties = PropertyUtils.loadProperties( configurationPropertiesFile );
-
- runtimeBuilder.build( workingDirectory, remoteRepositories, localRepository, projectArtifacts,
- Collections.EMPTY_SET, plexusConfiguration, configurationProperties, false );
- }
-
- // ----------------------------------------------------------------------
- //
- // ----------------------------------------------------------------------
-
- private Artifact makeArtifact( String groupId, String artifactId, String version )
- {
- Artifact artifact = artifactFactory.createBuildArtifact( groupId, artifactId, version, "jar" );
-
- artifact.setFile(
- getTestFile( "src/test/repository/" + groupId + "/jars/" + artifactId + "-" + version + ".jar" ) );
-
- return artifact;
- }
-}
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/test/project/project.xml b/plexus-appserver/plexus-appserver-runtime-builder/src/test/project/project.xml
deleted file mode 100644
index 5c2d62dc5..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/test/project/project.xml
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
- 4.0.0
- plexus
- plexus-runtime-builder-test-project
- Plexus Runtime Builder Test Project
- 2.0-SNAPSHOT
-
-
- plexus
- plexus
- 0.14-SNAPSHOT
-
-
- group1
- artifact1
- 2.0
-
-
- group2
- artifact2
- 1.0
-
-
-
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/classworlds/jars/classworlds-1.1-alpha-1.jar b/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/classworlds/jars/classworlds-1.1-alpha-1.jar
deleted file mode 100644
index fb541ac9b..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/classworlds/jars/classworlds-1.1-alpha-1.jar
+++ /dev/null
@@ -1 +0,0 @@
-classworlds-classworlds-1.1-SNAPSHOT
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/classworlds/jars/classworlds-1.1-alpha-2-SNAPSHOT.jar b/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/classworlds/jars/classworlds-1.1-alpha-2-SNAPSHOT.jar
deleted file mode 100644
index fb541ac9b..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/classworlds/jars/classworlds-1.1-alpha-2-SNAPSHOT.jar
+++ /dev/null
@@ -1 +0,0 @@
-classworlds-classworlds-1.1-SNAPSHOT
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/classworlds/poms/classworlds-1.1-alpha-2-SNAPSHOT.pom b/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/classworlds/poms/classworlds-1.1-alpha-2-SNAPSHOT.pom
deleted file mode 100644
index 6e8d38bb8..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/classworlds/poms/classworlds-1.1-alpha-2-SNAPSHOT.pom
+++ /dev/null
@@ -1,7 +0,0 @@
-
- 4.0.0
- classworlds
- classworlds
- jar
- 1.0
-
\ No newline at end of file
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/group1/jars/artifact1-2.0.jar b/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/group1/jars/artifact1-2.0.jar
deleted file mode 100644
index 1e9bd86ef..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/group1/jars/artifact1-2.0.jar
+++ /dev/null
@@ -1 +0,0 @@
-group1-artifact1-2.0
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/group1/poms/artifact1-2.0.pom b/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/group1/poms/artifact1-2.0.pom
deleted file mode 100644
index 0a7eb155b..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/group1/poms/artifact1-2.0.pom
+++ /dev/null
@@ -1,23 +0,0 @@
-
- 4.0.0
- group1
- artifact1
- jar
- 2.0
-
-
- plexus
- plexus-container-default
- 1.0-alpha-2-SNAPSHOT
- jar
- compile
-
-
- group3
- artifact3
- 1.0
- jar
- compile
-
-
-
\ No newline at end of file
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/group2/foos/artifact2-1.0.foo b/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/group2/foos/artifact2-1.0.foo
deleted file mode 100644
index bec79cd1f..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/group2/foos/artifact2-1.0.foo
+++ /dev/null
@@ -1 +0,0 @@
-group2-artifact2-1.0
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/group2/jars/artifact2-1.0.jar b/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/group2/jars/artifact2-1.0.jar
deleted file mode 100644
index bec79cd1f..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/group2/jars/artifact2-1.0.jar
+++ /dev/null
@@ -1 +0,0 @@
-group2-artifact2-1.0
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/group2/poms/artifact2-1.0.pom b/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/group2/poms/artifact2-1.0.pom
deleted file mode 100644
index c6da3aaf3..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/group2/poms/artifact2-1.0.pom
+++ /dev/null
@@ -1,7 +0,0 @@
-
- 4.0.0
- group2
- artifact2
- jar
- 1.0
-
\ No newline at end of file
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/group3/jars/artifact3-1.0.jar b/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/group3/jars/artifact3-1.0.jar
deleted file mode 100644
index 4f8efe9bb..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/group3/jars/artifact3-1.0.jar
+++ /dev/null
@@ -1 +0,0 @@
-group3-artifact3-1.0
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/group3/poms/artifact3-1.0.pom b/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/group3/poms/artifact3-1.0.pom
deleted file mode 100644
index 40c8661c8..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/group3/poms/artifact3-1.0.pom
+++ /dev/null
@@ -1,7 +0,0 @@
-
- 4.0.0
- group3
- artifact3
- jar
- 1.0
-
\ No newline at end of file
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/org.codehaus.plexus/jars/plexus-appserver-1.0-alpha-5-SNAPSHOT.jar b/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/org.codehaus.plexus/jars/plexus-appserver-1.0-alpha-5-SNAPSHOT.jar
deleted file mode 100644
index 2985220e2..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/org.codehaus.plexus/jars/plexus-appserver-1.0-alpha-5-SNAPSHOT.jar
+++ /dev/null
@@ -1 +0,0 @@
-plexus-plexus-0.14-SNAPSHOT
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/org.codehaus.plexus/jars/plexus-appserver-host-1.0.jar b/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/org.codehaus.plexus/jars/plexus-appserver-host-1.0.jar
deleted file mode 100644
index 2985220e2..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/org.codehaus.plexus/jars/plexus-appserver-host-1.0.jar
+++ /dev/null
@@ -1 +0,0 @@
-plexus-plexus-0.14-SNAPSHOT
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/org.codehaus.plexus/jars/plexus-container-default-1.0-alpha-7.jar b/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/org.codehaus.plexus/jars/plexus-container-default-1.0-alpha-7.jar
deleted file mode 100644
index 2985220e2..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/org.codehaus.plexus/jars/plexus-container-default-1.0-alpha-7.jar
+++ /dev/null
@@ -1 +0,0 @@
-plexus-plexus-0.14-SNAPSHOT
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/org.codehaus.plexus/jars/plexus-utils-1.0.4.jar b/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/org.codehaus.plexus/jars/plexus-utils-1.0.4.jar
deleted file mode 100644
index 2985220e2..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/org.codehaus.plexus/jars/plexus-utils-1.0.4.jar
+++ /dev/null
@@ -1 +0,0 @@
-plexus-plexus-0.14-SNAPSHOT
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/org.codehaus.plexus/poms/plexus-appserver-1.0-alpha-5-SNAPSHOT.pom b/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/org.codehaus.plexus/poms/plexus-appserver-1.0-alpha-5-SNAPSHOT.pom
deleted file mode 100644
index 4081d711c..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/org.codehaus.plexus/poms/plexus-appserver-1.0-alpha-5-SNAPSHOT.pom
+++ /dev/null
@@ -1,24 +0,0 @@
-
- 4.0.0
- plexus
- plexus
- jar
- Plexus
- 0.14-SNAPSHOT
-
-
- plexus
- plexus-dependency
- 1.0
- jar
- compile
-
-
- classworlds
- classworlds
- 1.1-alpha-2-SNAPSHOT
- jar
- compile
-
-
-
\ No newline at end of file
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/org.codehaus.plexus/poms/plexus-container-default-1.0-alpha-7.pom b/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/org.codehaus.plexus/poms/plexus-container-default-1.0-alpha-7.pom
deleted file mode 100644
index 1d64bc866..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/org.codehaus.plexus/poms/plexus-container-default-1.0-alpha-7.pom
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
- plexus-containers
- plexus
- 1.0.2
-
- 4.0.0
- org.codehaus.plexus
- plexus-container-default
- Default Plexus Container
- 1.0-alpha-7
-
-
-
- maven-surefire-plugin
- 2.0-beta-1
-
-
- **/Test*.java
- **/Abstract*.java
-
-
-
-
-
-
-
- junit
- junit
- 3.8.1
- compile
-
-
- plexus
- plexus-utils
- 1.0.2
-
-
- classworlds
- classworlds
- 1.1-alpha-2
-
-
-
- deployed
-
-
\ No newline at end of file
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/org.codehaus.plexus/poms/plexus-utils-1.0.4.pom b/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/org.codehaus.plexus/poms/plexus-utils-1.0.4.pom
deleted file mode 100644
index 4081d711c..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/org.codehaus.plexus/poms/plexus-utils-1.0.4.pom
+++ /dev/null
@@ -1,24 +0,0 @@
-
- 4.0.0
- plexus
- plexus
- jar
- Plexus
- 0.14-SNAPSHOT
-
-
- plexus
- plexus-dependency
- 1.0
- jar
- compile
-
-
- classworlds
- classworlds
- 1.1-alpha-2-SNAPSHOT
- jar
- compile
-
-
-
\ No newline at end of file
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/plexus/jars/plexus-container-artifact-1.0-alpha-2.jar b/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/plexus/jars/plexus-container-artifact-1.0-alpha-2.jar
deleted file mode 100644
index 2985220e2..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/plexus/jars/plexus-container-artifact-1.0-alpha-2.jar
+++ /dev/null
@@ -1 +0,0 @@
-plexus-plexus-0.14-SNAPSHOT
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/plexus/jars/plexus-dependency-1.0.jar b/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/plexus/jars/plexus-dependency-1.0.jar
deleted file mode 100644
index 036771eab..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/plexus/jars/plexus-dependency-1.0.jar
+++ /dev/null
@@ -1 +0,0 @@
-plexus-plexus-dependency-1.0
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/plexus/jars/plexus-runtime-builder-test-project-2.0-SNAPSHOT.jar b/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/plexus/jars/plexus-runtime-builder-test-project-2.0-SNAPSHOT.jar
deleted file mode 100644
index ba14ef40e..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/plexus/jars/plexus-runtime-builder-test-project-2.0-SNAPSHOT.jar
+++ /dev/null
@@ -1 +0,0 @@
-plexus-plexus-runtime-builder-test-project-2.0-SNAPSHOT
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/plexus/poms/plexus-container-artifact-1.0-alpha-2.pom b/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/plexus/poms/plexus-container-artifact-1.0-alpha-2.pom
deleted file mode 100644
index 423a8e279..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/plexus/poms/plexus-container-artifact-1.0-alpha-2.pom
+++ /dev/null
@@ -1,24 +0,0 @@
-
- 4.0.0
- plexus
- plexus
- jar
- Plexus
- 0.14-SNAPSHOT
-
-
- plexus
- plexus-dependency
- 1.0
- jar
- compile
-
-
- classworlds
- classworlds
- 1.1-alpha-2-SNAPSHOT
- jar
- compile
-
-
-
\ No newline at end of file
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/plexus/poms/plexus-dependency-1.0.pom b/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/plexus/poms/plexus-dependency-1.0.pom
deleted file mode 100644
index c0cc1b755..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/test/repository/plexus/poms/plexus-dependency-1.0.pom
+++ /dev/null
@@ -1,7 +0,0 @@
-
- 4.0.0
- plexus
- plexus-dependency
- jar
- 1.0
-
\ No newline at end of file
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/test/resources/conf/plexus.xml b/plexus-appserver/plexus-appserver-runtime-builder/src/test/resources/conf/plexus.xml
deleted file mode 100644
index 1e286015b..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/test/resources/conf/plexus.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/test/resources/configuration.properties b/plexus-appserver/plexus-appserver-runtime-builder/src/test/resources/configuration.properties
deleted file mode 100644
index 7aeacaff1..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/test/resources/configuration.properties
+++ /dev/null
@@ -1,19 +0,0 @@
-role = printer
-
-host = localhost
-port = 8080
-
-password.file = ${ebxmlms.plexus.home}/conf/msh_password
-hermes.url = http://localhost:8080/msh/
-transport.type = http
-
-xmlrpc.port = 9080
-
-tpi = ${plexus.home}/conf/tpi.xml
-id = 0
-san = 000-0000
-name = printer
-
-app.name=test app
-app.long.name=Plexus Test Application
-app.description=Hey yo!
\ No newline at end of file
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/test/resources/plexus-component.manifest b/plexus-appserver/plexus-appserver-runtime-builder/src/test/resources/plexus-component.manifest
deleted file mode 100644
index b2ad73ae7..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/test/resources/plexus-component.manifest
+++ /dev/null
@@ -1,12 +0,0 @@
-org.apache.plexus.velocity.DefaultVelocityComponent = plexus-velocity-1.0-alpha-5
-org.apache.plexus.summit.Summit = plexus-summit-1.0-alpha-5
-org.apache.plexus.summit.activity.DefaultActionEventService = plexus-activity-1.0-alpha-5
-org.apache.plexus.jcs.DefaultJCSComponent = plexus-jcs-1.0-alpha-5
-org.apache.plexus.jetty.JettyServletContainer = plexus-jetty-1.0-alpha-5
-org.apache.plexus.persister.OjbPersister = plexus-persister-1.0-alpha-5
-org.apache.plexus.summit.pull.DefaultPullService = plexus-pull-1.0-alpha-5
-org.apache.plexus.service.repository.factory.python.PythonComponentFactory = plexus-python-factory-1.0-alpha-5
-org.apache.plexus.scheduler.DefaultScheduler = plexus-scheduler-1.0-alpha-5
-org.apache.plexus.workflow.DefaultWfms = plexus-workflow-1.0-alpha-5
-org.apache.plexus.xmlrpc.DefaultXmlRpcComponent = plexus-xmlrpc-1.0-alpha-5
-org.apache.plexus.service.repository.factory.bsh.BshComponentFactory = plexus-bsh-factory-1.0-alpha-5
diff --git a/plexus-appserver/plexus-appserver-runtime-builder/src/test/resources/printer.properties b/plexus-appserver/plexus-appserver-runtime-builder/src/test/resources/printer.properties
deleted file mode 100644
index 9b1162bf5..000000000
--- a/plexus-appserver/plexus-appserver-runtime-builder/src/test/resources/printer.properties
+++ /dev/null
@@ -1,15 +0,0 @@
-role = printer
-
-host = localhost
-port = 8080
-
-password.file = ${ebxmlms.plexus.home}/conf/msh_password
-hermes.url = http://localhost:8080/msh/
-transport.type = http
-
-xmlrpc.port = 9080
-
-tpi = ${plexus.home}/conf/tpi.xml
-id = 0
-san = 000-0000
-name = printer
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/pom.xml b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/pom.xml
deleted file mode 100644
index cf7552716..000000000
--- a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/pom.xml
+++ /dev/null
@@ -1,95 +0,0 @@
-
-
- plexus-appserver-services
- org.codehaus.plexus
- 2.0-alpha-4-SNAPSHOT
-
- 4.0.0
- plexus-appserver-service-jetty
- plexus-service
- Plexus Jetty Service
-
-
-
- org.codehaus.plexus
- plexus-appserver-maven-plugin
- true
-
- jetty
- src/conf/plexus.xml
-
-
-
-
-
-
-
- ant
- ant
- 1.6.2
-
-
- jetty
- org.mortbay.jetty
- 5.1.10
-
-
- tomcat
- jasper-compiler
- 5.5.15
-
-
- tomcat
- jasper-runtime
- 5.5.15
-
-
- javax.servlet
- servlet-api
- 2.4
-
-
- javax.servlet
- jsp-api
- 2.0
-
-
- commons-el
- commons-el
- 1.0
- runtime
-
-
- log4j
- log4j
-
-
- commons-logging
- commons-logging
-
-
- logkit
- logkit
-
-
-
-
-
- jetty
- org.mortbay.jetty.plus
- 5.1.10
-
-
- commons-logging
- commons-logging-api
- 1.0.4
- test
-
-
- org.apache.derby
- derby
- 10.1.3.1
- test
-
-
-
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/conf/plexus.xml b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/conf/plexus.xml
deleted file mode 100644
index 3c102197b..000000000
--- a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/conf/plexus.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
- org.codehaus.plexus.appserver.service.PlexusService
- jetty
-
-
-
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/AbstractJettyServletContainer.java b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/AbstractJettyServletContainer.java
deleted file mode 100644
index 604fea365..000000000
--- a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/AbstractJettyServletContainer.java
+++ /dev/null
@@ -1,549 +0,0 @@
-package org.codehaus.plexus.jetty;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2006, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.codehaus.plexus.logging.AbstractLogEnabled;
-import org.codehaus.plexus.personality.plexus.lifecycle.phase.Startable;
-import org.codehaus.plexus.jetty.configuration.ProxyHttpListener;
-import org.codehaus.plexus.jetty.configuration.Webapp;
-import org.codehaus.plexus.jetty.configuration.WebContext;
-import org.codehaus.plexus.jetty.configuration.ServletContext;
-import org.codehaus.plexus.jetty.configuration.InitParameter;
-import org.codehaus.plexus.DefaultPlexusContainer;
-import org.codehaus.plexus.PlexusConstants;
-import org.codehaus.plexus.util.FileUtils;
-import org.codehaus.classworlds.ClassRealm;
-import org.mortbay.http.HttpContext;
-import org.mortbay.http.HttpListener;
-import org.mortbay.http.handler.ResourceHandler;
-import org.mortbay.util.InetAddrPort;
-import org.mortbay.jetty.servlet.ServletHttpContext;
-import org.mortbay.jetty.servlet.ServletHolder;
-import org.mortbay.jetty.servlet.WebApplicationContext;
-import org.mortbay.jetty.Server;
-
-import java.io.File;
-import java.io.IOException;
-import java.net.UnknownHostException;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.Map;
-
-/**
- * @author Trygve Laugstøl
- * @author Jason van Zyl
- * @version $Id: JettyServletContainer.java 4167 2006-09-20 20:31:27Z evenisse $
- * @todo need to be able to deploy individual servlets
- * @todo could we filter web.xml files via jetty somehow?
- */
-public abstract class AbstractJettyServletContainer
- extends AbstractLogEnabled
- implements ServletContainer, Startable
-{
- protected Server server;
-
- protected Map httpListeners = new HashMap();
-
- private Map classLoaders = new HashMap();
-
- private Map classRealms = new HashMap();
-
- public boolean hasContext( String contextPath )
- {
- HttpContext[] contexts = server.getContexts();
-
- HttpContext context;
-
- for ( int i = 0; i < contexts.length; i++ )
- {
- context = contexts[i];
-
- if ( context.getContextPath().equals( contextPath ) )
- {
- return true;
- }
- }
-
- return false;
- }
-
- public void addListener( org.codehaus.plexus.jetty.configuration.HttpListener listener )
- throws ServletContainerException, UnknownHostException
- {
- if ( isPortRegistered( listener ) )
- {
- updatePort( listener );
- }
- else
- {
- InetAddrPort addrPort = new InetAddrPort( listener.getHost(), listener.getPort() );
-
- try
- {
- HttpListener httpListener = server.addListener( addrPort );
-
- registerPort( listener, httpListener );
-
- httpListener.start();
- }
- catch ( IOException e )
- {
- throw new ServletContainerException( "Error while adding httpListener on address: '" + listener.getHost() +
- "', port: " + listener.getPort() + ".", e );
- }
- catch ( Exception e )
- {
- throw new ServletContainerException( "Error while starting httpListener on address: '" +
- listener.getHost() + "', port: " + listener.getPort() + ".", e );
- }
- }
- }
-
- public void addProxyListener( ProxyHttpListener listener )
- throws ServletContainerException, UnknownHostException
- {
- if ( isPortRegistered( listener ) )
- {
- updatePort( listener );
- }
- else
- {
- InetAddrPort addrPort = new InetAddrPort( listener.getHost(), listener.getPort() );
-
- JettyProxyHttpListener proxyListener = new JettyProxyHttpListener( addrPort );
-
- proxyListener.setForcedHost( listener.getProxyHost() + ":" + listener.getProxyPort() );
-
- server.addListener( proxyListener );
-
- registerPort( listener, proxyListener );
-
- try
- {
- proxyListener.start();
- }
- catch ( Exception e )
- {
- throw new ServletContainerException( "Error while starting proxyListener on address: '" +
- listener.getHost() + "', port: " + listener.getPort() + ".", e );
- }
- }
- }
-
- public void removeListener( org.codehaus.plexus.jetty.configuration.HttpListener listener )
- throws ServletContainerException
- {
- String port = Integer.toString( listener.getPort() );
-
- if ( httpListeners.containsKey( port ) )
- {
- HttpListenerReference httpListenerReference = ( HttpListenerReference ) httpListeners.get( port );
-
- if ( httpListenerReference.decrement().getRefCount() <= 0 )
- {
- ListenerStopThread stopThread = new ListenerStopThread( server,
- httpListenerReference.getListener() );
-
- try
- {
- httpListeners.remove( port );
- stopThread.start();
- }
- catch ( Exception ex )
- {
- getLogger().info( "Error Stopping Http Listener", ex );
- }
- }
- }
- }
-
- public void deployWarDirectory( File directory, DefaultPlexusContainer container, Webapp webapp )
- throws ServletContainerException
- {
- deployWAR( directory, false, null, container, webapp );
- }
-
- public void startApplication( String contextPath )
- throws ServletContainerException
- {
- try
- {
- HttpContext context = getContext( contextPath );
-
- getLogger().info( "Starting Jetty Context " + contextPath );
-
- context.start();
- }
- catch ( Exception e )
- {
- throw new ServletContainerException( "Error while starting the context " + contextPath, e );
- }
- }
-
- public void stopApplication( String contextPath )
- throws ServletContainerException
- {
- try
- {
- HttpContext context = getContext( contextPath );
-
- getLogger().info( "Starting Jetty Context " + contextPath );
-
- context.stop( true );
- }
- catch ( Exception e )
- {
- throw new ServletContainerException( "Error while stopping the context " + contextPath, e );
- }
- }
-
- public void deployContext( WebContext webContext )
- throws ServletContainerException
- {
- if ( hasContext( webContext.getContext() ) )
- {
- return;
- }
-
- HttpContext context = new HttpContext();
-
- context.setContextPath( webContext.getContext() );
-
- context.setResourceBase( webContext.getPath() );
-
- // This will setup a standard resource handler for document retrieval. If you want more
- // functionality like POST, or WebDAV type stuff that will need to be configurable.
- context.addHandler( new ResourceHandler() );
-
- addContext( context );
- }
-
- public void deployServletContext( ServletContext servletContext )
- throws ServletContainerException
- {
- if ( hasContext( servletContext.getContext() ) )
- {
- return;
- }
-
- ServletHttpContext context = new ServletHttpContext();
-
- context.setContextPath( servletContext.getContext() );
-
- try
- {
- ServletHolder servletHolder =
- context.addServlet( servletContext.getName(), servletContext.getPath(), servletContext.getServlet() );
-
- // ----------------------------------------------------------------------------
- // Setup any init parameters
- // ----------------------------------------------------------------------------
-
- if ( servletContext.getInitParameters() != null )
- {
- for ( Iterator i = servletContext.getInitParameters().iterator(); i.hasNext(); )
- {
- InitParameter param = (InitParameter) i.next();
-
- String name = param.getName();
-
- String value = param.getValue();
-
- getLogger().info( "Setting init-param [" + name + " = " + value + "]" );
-
- String directive = param.getDirective();
-
- if ( directive != null )
- {
- if ( directive.equals( "create-directory" ) )
- {
- FileUtils.mkdir( value );
- }
- }
-
- servletHolder.setInitParameter( name, value );
- }
- }
- }
- catch ( ClassNotFoundException e )
- {
- throw new ServletContainerException( "Cannot find the servlet " + servletContext.getServlet(), e );
- }
- catch ( InstantiationException e )
- {
- throw new ServletContainerException( "Cannot instantiate the servlet " + servletContext.getServlet(), e );
- }
- catch ( IllegalAccessException e )
- {
- throw new ServletContainerException(
- "Illegal access trying to use the servlet " + servletContext.getServlet(), e );
- }
-
- addContext( context );
- }
-
- private HttpContext getContext( String contextPath )
- throws ServletContainerException
- {
- HttpContext[] contexts = server.getContexts();
-
- HttpContext context;
-
- for ( int i = 0; i < contexts.length; i++ )
- {
- context = contexts[i];
-
- if ( context.getContextPath().equals( contextPath ) )
- {
- return context;
- }
- }
-
- throw new ServletContainerException( "No such context '" + contextPath + "'." );
- }
-
- private void deployWAR( File war, boolean extractWar, File extractionLocation, DefaultPlexusContainer container,
- Webapp webapp )
- throws ServletContainerException
- {
- String context = webapp.getContext();
-
- String virtualHost = webapp.getVirtualHost();
-
- boolean standardWebappClassloader = webapp.isStandardWebappClassloader();
-
- if ( war == null )
- {
- throw new ServletContainerException( "Invalid parameter: 'war' cannot be null." );
- }
-
- if ( context == null )
- {
- throw new ServletContainerException( "Invalid parameter: 'context' cannot be null." );
- }
-
- // ----------------------------------------------------------------------
- // Create the web appserver
- // ----------------------------------------------------------------------
-
- WebApplicationContext webappContext;
-
- if ( !hasContext( context ) )
- {
- try
- {
- if ( virtualHost != null )
- {
- webappContext = server.addWebApplication( virtualHost, context, war.getAbsolutePath() );
- }
- else
- {
- webappContext = server.addWebApplication( context, war.getAbsolutePath() );
- }
- }
- catch ( IOException e )
- {
- throw new ServletContainerException( "Error while deploying WAR.", e );
- }
-
- // ----------------------------------------------------------------------
- // Configure the appserver context
- // ----------------------------------------------------------------------
-
- webappContext.setExtractWAR( extractWar );
-
- if ( extractionLocation != null )
- {
- webappContext.setTempDirectory( extractionLocation );
- }
-
- if ( standardWebappClassloader )
- {
- getLogger().info( "Using standard webapp classloader for webapp." );
-
-/* try
- {
- // We need to start the context to trigger the unpacking so that we can
- // create a realm. We need to create a realm so that we can discover all
- // the components in the webapp.
-
- ClassRealm realm = container.getContainerRealm();
-*/
-// List jars = FileUtils.getFiles( war, "**/*.jar", null );
-/*
- // The webapp directory needs to be unpacked before we can pick up the files
-
- for ( Iterator i = jars.iterator(); i.hasNext(); )
- {
- File file = (File) i.next();
-
- realm.addConstituent( file.toURL() );
- }
-
- File webInf = new File( war, "WEB-INF" );
-
- realm.addConstituent( webInf.toURL() );
-
- File classes = new File( war, "WEB-INF/classes" );
-
- realm.addConstituent( classes.toURL() );
-
- webappContext.setClassLoader( realm.getClassLoader() );
-
- classRealms.put( webapp.getContext(), realm );
- }
- catch ( Exception e )
- {
- throw new ServletContainerException( "Error creating webapp classloader.", e );
- }
-*/
- }
- else
- {
- // Dirty hack, need better methods for classloaders because i can set the core realm but not get it,
- // or get the container realm but not set it. blah!
- webappContext.setClassLoader( container.getContainerRealm().getClassLoader() );
- }
-
- // Save the classloader for reloads
- classLoaders.put( webapp.getContext(), webappContext.getClassLoader() );
- }
- else
- {
- webappContext = (WebApplicationContext) getContext( webapp.getContext() );
-
- // We only need to reset the classloader if we're doing standard webapp loading. The stopping
- // of the Jetty context seems to whack the classloader so we need to reset it. If we are
- // using Plexus classloading then the classloader appears to resist the whacking. Not sure
- // what's happening here but classworlds is going to take a bath shortly anyway.
- if ( standardWebappClassloader )
- {
-
- webappContext.setClassLoader( (ClassLoader) classLoaders.get( webapp.getContext() ) );
- ClassRealm cr = (ClassRealm) classRealms.get( webapp.getContext() );
-
- container.setContainerRealm( cr );
- }
- }
-
- webappContext.getServletContext().setAttribute( PlexusConstants.PLEXUS_KEY, container );
- }
-
- protected HttpContext addContext( HttpContext context )
- {
- return server.addContext( context );
- }
-
- public void clearContexts()
- {
- HttpContext[] contexts = server.getContexts();
-
- for ( int i = 0; i < contexts.length; i++ )
- {
- HttpContext context = contexts[i];
-
- getLogger().info( "Removing context " + context.getContextPath() );
-
- server.removeContext( context );
- }
- }
-
- public void stop()
- {
- if ( server != null && server.isStarted() )
- {
- while ( true )
- {
- try
- {
- server.stop( true );
-
- break;
- }
- catch ( InterruptedException e )
- {
- continue;
- }
- }
-
- server.destroy();
- }
- }
-
- public boolean isPortRegistered( org.codehaus.plexus.jetty.configuration.HttpListener config )
- {
- return httpListeners.containsKey( Integer.toString( config.getPort() ) );
- }
-
- private void registerPort( org.codehaus.plexus.jetty.configuration.HttpListener config, HttpListener httpListener )
- {
- String port = Integer.toString( config.getPort() );
-
- if ( !httpListeners.containsKey( port ) )
- {
- HttpListenerReference httpRef = new HttpListenerReference( httpListener );
-
- httpListeners.put( port, httpRef );
- }
- }
-
- private void updatePort( org.codehaus.plexus.jetty.configuration.HttpListener config )
- {
- String port = Integer.toString( config.getPort() );
-
- if ( httpListeners.containsKey( port ) )
- {
- HttpListenerReference httpRef = (HttpListenerReference) httpListeners.get( port );
-
- httpRef.increment();
- }
- }
-
- class ListenerStopThread extends Thread
- {
- Server server;
-
- HttpListener listener;
-
- public ListenerStopThread( Server _server, HttpListener _listener )
- {
- server = _server;
- listener = _listener;
- }
-
- public void run()
- {
- try
- {
- Thread.sleep( 20000 );
- server.removeListener( listener );
- }
- catch (Exception ex)
- {
- //TODO:
- }
- }
- }
-}
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/HttpListenerReference.java b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/HttpListenerReference.java
deleted file mode 100644
index a39c8d615..000000000
--- a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/HttpListenerReference.java
+++ /dev/null
@@ -1,63 +0,0 @@
-package org.codehaus.plexus.jetty;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2006, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.mortbay.http.HttpListener;
-
-public class HttpListenerReference
-{
- private HttpListener listener;
-
- private int references = 1;
-
- public HttpListenerReference( HttpListener _listener)
- {
- listener = _listener;
- }
-
- synchronized public HttpListenerReference increment()
- {
- references++;
-
- return this;
- }
-
- synchronized public HttpListenerReference decrement()
- {
- references--;
-
- return this;
- }
-
- synchronized public int getRefCount()
- {
- return references;
- }
-
- public HttpListener getListener()
- {
- return listener;
- }
-}
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/JettyPlusServletContainer.java b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/JettyPlusServletContainer.java
deleted file mode 100644
index 75bee5b88..000000000
--- a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/JettyPlusServletContainer.java
+++ /dev/null
@@ -1,56 +0,0 @@
-package org.codehaus.plexus.jetty;
-
-import org.codehaus.plexus.personality.plexus.lifecycle.phase.StartingException;
-import org.mortbay.jetty.plus.Server;
-import org.mortbay.xml.XmlConfiguration;
-
-import java.io.File;
-
-public class JettyPlusServletContainer
- extends AbstractJettyServletContainer
-{
- private File jettyXmlFile;
-
- public void setJettyXmlFile( File jettyXmlFile )
- {
- this.jettyXmlFile = jettyXmlFile;
- }
-
- public File getJettyXmlFile()
- {
- return jettyXmlFile;
- }
-
- public void applyJettyXml()
- throws Exception
- {
- if ( jettyXmlFile == null )
- {
- return;
- }
-
- if ( jettyXmlFile.exists() )
- {
- getLogger().info( "Configuring Jetty from xml configuration file = " + jettyXmlFile.getCanonicalPath() );
- XmlConfiguration xmlConfiguration = new XmlConfiguration( jettyXmlFile.getCanonicalFile().toURL() );
- xmlConfiguration.configure( server );
- }
- }
-
- public void start()
- throws StartingException
- {
- server = new Server();
-
- try
- {
- applyJettyXml();
-
- server.start();
- }
- catch ( Exception e )
- {
- throw new StartingException( "Error while starting Jetty", e );
- }
- }
-}
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/JettyProxyHttpListener.java b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/JettyProxyHttpListener.java
deleted file mode 100644
index 6154ac3aa..000000000
--- a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/JettyProxyHttpListener.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package org.codehaus.plexus.jetty;
-
-/*
- * 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.
- */
-
-import org.mortbay.http.HttpFields;
-import org.mortbay.http.HttpMessage;
-import org.mortbay.http.HttpRequest;
-import org.mortbay.http.SocketListener;
-import org.mortbay.util.InetAddrPort;
-
-import java.net.Socket;
-
-/**
- * Forced Host Listener
- * this simple listener extention forces the host header to be set to a specific value.
- * It is useful when deployed behind old apache mod_proxy implementations that
- * lie about the real host used by the client.
- */
-public class JettyProxyHttpListener
- extends SocketListener
-{
- String forcedHost;
-
- public JettyProxyHttpListener()
- {
- }
-
- public JettyProxyHttpListener( InetAddrPort address )
- {
- super( address );
- }
-
- public String getForcedHost()
- {
- return forcedHost;
- }
-
- public void setForcedHost( String host )
- {
- forcedHost = host;
- }
-
- protected void customizeRequest( Socket socket, HttpRequest request )
- {
- request.setState( HttpMessage.__MSG_EDITABLE );
-
- if ( forcedHost == null )
- {
- request.removeField( HttpFields.__Host );
- }
- else
- {
- request.setField( HttpFields.__Host, forcedHost );
- }
-
- request.setState( HttpMessage.__MSG_RECEIVED );
-
- super.customizeRequest( socket, request );
- }
-}
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/JettyServletContainer.java b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/JettyServletContainer.java
deleted file mode 100644
index 31802c0d3..000000000
--- a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/JettyServletContainer.java
+++ /dev/null
@@ -1,47 +0,0 @@
-package org.codehaus.plexus.jetty;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.codehaus.plexus.personality.plexus.lifecycle.phase.StartingException;
-import org.mortbay.jetty.Server;
-
-public class JettyServletContainer
- extends AbstractJettyServletContainer
-{
- public void start()
- throws StartingException
- {
- server = new Server();
-
- try
- {
- server.start();
- }
- catch ( Exception e )
- {
- throw new StartingException( "Error while starting Jetty", e );
- }
- }
-}
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/ServletContainer.java b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/ServletContainer.java
deleted file mode 100644
index 98a9ba7d6..000000000
--- a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/ServletContainer.java
+++ /dev/null
@@ -1,79 +0,0 @@
-package org.codehaus.plexus.jetty;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.codehaus.plexus.DefaultPlexusContainer;
-import org.codehaus.plexus.jetty.configuration.HttpListener;
-import org.codehaus.plexus.jetty.configuration.ProxyHttpListener;
-import org.codehaus.plexus.jetty.configuration.ServletContext;
-import org.codehaus.plexus.jetty.configuration.WebContext;
-import org.codehaus.plexus.jetty.configuration.Webapp;
-
-import java.io.File;
-import java.net.UnknownHostException;
-
-/**
- * @author Trygve Laugstøl
- * @author Jason van Zyl
- * @version $Id$
- */
-public interface ServletContainer
-{
- String ROLE = ServletContainer.class.getName();
-
- boolean hasContext( String contextPath );
-
- void addListener( HttpListener listener )
- throws ServletContainerException, UnknownHostException;
-
- void removeListener( HttpListener listener )
- throws ServletContainerException;
-
- void addProxyListener( ProxyHttpListener listener )
- throws ServletContainerException, UnknownHostException;
-
- void startApplication( String contextPath )
- throws ServletContainerException;
-
- void stopApplication( String contextPath )
- throws ServletContainerException;
-
- // ----------------------------------------------------------------------------
- // For simple document serving
- // ----------------------------------------------------------------------------
-
- void deployWarDirectory( File directory, DefaultPlexusContainer container, Webapp webapp )
- throws ServletContainerException;
-
- public void deployServletContext( ServletContext servletContext )
- throws ServletContainerException;
-
- void deployContext( WebContext webContext )
- throws ServletContainerException;
-
- void clearContexts();
-
- boolean isPortRegistered( HttpListener listener );
-}
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/ServletContainerException.java b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/ServletContainerException.java
deleted file mode 100644
index 1fc7cd3cb..000000000
--- a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/ServletContainerException.java
+++ /dev/null
@@ -1,43 +0,0 @@
-package org.codehaus.plexus.jetty;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-/**
- * @author Trygve Laugstøl
- * @version $Id$
- */
-public class ServletContainerException
- extends Exception
-{
- public ServletContainerException( String message )
- {
- super( message );
- }
-
- public ServletContainerException( String message, Throwable cause )
- {
- super( message, cause );
- }
-}
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/configuration/HttpListener.java b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/configuration/HttpListener.java
deleted file mode 100644
index cf13f66a3..000000000
--- a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/configuration/HttpListener.java
+++ /dev/null
@@ -1,45 +0,0 @@
-package org.codehaus.plexus.jetty.configuration;
-
-/*
- * 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 Trygve Laugstøl
- * @version $Id$
- */
-public class HttpListener
-{
- private String id;
-
- private String host;
-
- private int port;
-
- public String getId()
- {
- return id;
- }
-
- public String getHost()
- {
- return host;
- }
-
- public int getPort()
- {
- return port;
- }
-}
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/configuration/InitParameter.java b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/configuration/InitParameter.java
deleted file mode 100644
index 4e6aa73fa..000000000
--- a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/configuration/InitParameter.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package org.codehaus.plexus.jetty.configuration;
-
-/**
- * @author Jason van Zyl
- */
-public class InitParameter
-{
- private String name;
-
- private String value;
-
- private String directive;
-
- public String getName()
- {
- return name;
- }
-
- public String getValue()
- {
- return value;
- }
-
- public String getDirective()
- {
- return directive;
- }
-}
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/configuration/ProxyHttpListener.java b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/configuration/ProxyHttpListener.java
deleted file mode 100644
index 7a9ab0b0a..000000000
--- a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/configuration/ProxyHttpListener.java
+++ /dev/null
@@ -1,39 +0,0 @@
-package org.codehaus.plexus.jetty.configuration;
-
-/*
- * 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 Trygve Laugstøl
- * @version $Id$
- */
-public class ProxyHttpListener
- extends HttpListener
-{
- private String proxyHost;
-
- private int proxyPort;
-
- public String getProxyHost()
- {
- return proxyHost;
- }
-
- public int getProxyPort()
- {
- return proxyPort;
- }
-}
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/configuration/ServiceConfiguration.java b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/configuration/ServiceConfiguration.java
deleted file mode 100644
index d52a52c6e..000000000
--- a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/configuration/ServiceConfiguration.java
+++ /dev/null
@@ -1,56 +0,0 @@
-package org.codehaus.plexus.jetty.configuration;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004-2005, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * @author Trygve Laugstøl
- * @version $Id$
- */
-public class ServiceConfiguration
-{
- private List webapps = new ArrayList();
-
- private List webContexts = new ArrayList();
-
- private List servletContexts = new ArrayList();
-
- public List getWebapps()
- {
- return webapps;
- }
-
- public List getWebContexts()
- {
- return webContexts;
- }
-
- public List getServletContexts()
- {
- return servletContexts;
- }
-}
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/configuration/ServletContext.java b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/configuration/ServletContext.java
deleted file mode 100644
index 27260677d..000000000
--- a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/configuration/ServletContext.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package org.codehaus.plexus.jetty.configuration;
-
-import java.util.List;
-
-/**
- * @author Jason van Zyl
- */
-public class ServletContext
- extends WebContext
-{
- private String name;
-
- private String path;
-
- private String servlet;
-
- private List initParameters;
-
- public String getName()
- {
- return name;
- }
-
- public String getPath()
- {
- return path;
- }
-
- public String getServlet()
- {
- return servlet;
- }
-
- public List getInitParameters()
- {
- return initParameters;
- }
-}
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/configuration/WebContext.java b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/configuration/WebContext.java
deleted file mode 100644
index 32d4755e7..000000000
--- a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/configuration/WebContext.java
+++ /dev/null
@@ -1,41 +0,0 @@
-package org.codehaus.plexus.jetty.configuration;
-
-import java.util.List;
-
-/**
- * @author Trygve Laugstøl
- * @author Jason van Zyl
- * @version $Id$
- */
-public class WebContext
-{
- private String path;
-
- private String context;
-
- private List listeners;
-
- private String virtualHost;
-
- private List initParameters;
-
- public String getPath()
- {
- return path;
- }
-
- public String getContext()
- {
- return context;
- }
-
- public String getVirtualHost()
- {
- return virtualHost;
- }
-
- public List getListeners()
- {
- return listeners;
- }
-}
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/configuration/Webapp.java b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/configuration/Webapp.java
deleted file mode 100644
index 58b172aeb..000000000
--- a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/configuration/Webapp.java
+++ /dev/null
@@ -1,55 +0,0 @@
-package org.codehaus.plexus.jetty.configuration;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004-2005, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-/**
- * @author Trygve Laugstøl
- * @author Jason van Zyl
- * @version $Id$
- */
-public class Webapp
- extends WebContext
-{
- private String file;
-
- private String extractionPath;
-
- private boolean standardWebappClassloader;
-
- public String getFile()
- {
- return file;
- }
-
- public String getExtractionPath()
- {
- return extractionPath;
- }
-
- public boolean isStandardWebappClassloader()
- {
- return standardWebappClassloader;
- }
-}
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/configuration/builder/DefaultServiceConfigurationBuilder.java b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/configuration/builder/DefaultServiceConfigurationBuilder.java
deleted file mode 100644
index bb6bdd6d4..000000000
--- a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/configuration/builder/DefaultServiceConfigurationBuilder.java
+++ /dev/null
@@ -1,53 +0,0 @@
-package org.codehaus.plexus.jetty.configuration.builder;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004-2005, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.codehaus.classworlds.ClassRealm;
-import org.codehaus.plexus.component.configurator.ComponentConfigurationException;
-import org.codehaus.plexus.component.configurator.ComponentConfigurator;
-import org.codehaus.plexus.configuration.PlexusConfiguration;
-import org.codehaus.plexus.jetty.configuration.ServiceConfiguration;
-import org.codehaus.plexus.logging.AbstractLogEnabled;
-
-/**
- * @author Trygve Laugstøl
- * @version $Id$
- */
-public class DefaultServiceConfigurationBuilder
- extends AbstractLogEnabled
- implements ServiceConfigurationBuilder
-{
- private ComponentConfigurator configurator;
-
- public ServiceConfiguration buildConfiguration( PlexusConfiguration serviceConfiguration, ClassRealm realm )
- throws ComponentConfigurationException
- {
- ServiceConfiguration configuration = new ServiceConfiguration();
-
- configurator.configureComponent( configuration, serviceConfiguration, realm );
-
- return configuration;
- }
-}
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/configuration/builder/ServiceConfigurationBuilder.java b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/configuration/builder/ServiceConfigurationBuilder.java
deleted file mode 100644
index 94cc5d095..000000000
--- a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/jetty/configuration/builder/ServiceConfigurationBuilder.java
+++ /dev/null
@@ -1,42 +0,0 @@
-package org.codehaus.plexus.jetty.configuration.builder;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004-2005, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.codehaus.classworlds.ClassRealm;
-import org.codehaus.plexus.component.configurator.ComponentConfigurationException;
-import org.codehaus.plexus.configuration.PlexusConfiguration;
-import org.codehaus.plexus.jetty.configuration.ServiceConfiguration;
-
-/**
- * @author Trygve Laugstøl
- * @version $Id$
- */
-public interface ServiceConfigurationBuilder
-{
- String ROLE = ServiceConfigurationBuilder.class.getName();
-
- ServiceConfiguration buildConfiguration( PlexusConfiguration serviceConfiguration, ClassRealm realm )
- throws ComponentConfigurationException;
-}
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/service/jetty/JettyPlexusService.java b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/service/jetty/JettyPlexusService.java
deleted file mode 100644
index 1e7e6bc9d..000000000
--- a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/service/jetty/JettyPlexusService.java
+++ /dev/null
@@ -1,319 +0,0 @@
-package org.codehaus.plexus.service.jetty;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.codehaus.classworlds.ClassRealm;
-import org.codehaus.plexus.DefaultPlexusContainer;
-import org.codehaus.plexus.appserver.application.profile.AppRuntimeProfile;
-import org.codehaus.plexus.appserver.service.AbstractPlexusService;
-import org.codehaus.plexus.configuration.PlexusConfiguration;
-import org.codehaus.plexus.jetty.ServletContainer;
-import org.codehaus.plexus.jetty.ServletContainerException;
-import org.codehaus.plexus.jetty.configuration.HttpListener;
-import org.codehaus.plexus.jetty.configuration.ProxyHttpListener;
-import org.codehaus.plexus.jetty.configuration.ServiceConfiguration;
-import org.codehaus.plexus.jetty.configuration.ServletContext;
-import org.codehaus.plexus.jetty.configuration.WebContext;
-import org.codehaus.plexus.jetty.configuration.Webapp;
-import org.codehaus.plexus.jetty.configuration.builder.ServiceConfigurationBuilder;
-import org.codehaus.plexus.util.FileUtils;
-
-import java.io.File;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Set;
-
-/**
- * @author Trygve Laugstøl
- * @author Jason van Zyl
- * @version $Id$
- * @todo how to make the servlet container here be the standard plexus-jetty, we shouldn't need to copy
- * the component here to make it work as a service.
- */
-public class JettyPlexusService
- extends AbstractPlexusService
-{
- /**
- * @plexus.requirement
- */
- private ServiceConfigurationBuilder configurationBuilder;
-
- /**
- * @plexus.requirement
- */
- private ServletContainer servletContainer;
-
- /**
- * Set of ports to be activated. The port can only be used once.
- * @deprecated
- */
- private Set activePorts = new HashSet();
-
- // ----------------------------------------------------------------------
- // PlexusService Implementation
- // ----------------------------------------------------------------------
-
- public void beforeApplicationStart( AppRuntimeProfile runtimeProfile, PlexusConfiguration serviceConfiguration )
- throws Exception
- {
- // We probably need to stop running contexts here ...
-
- ServiceConfiguration configuration = configurationBuilder.buildConfiguration( serviceConfiguration,
- runtimeProfile.getApplicationServerContainer().getContainerRealm() );
-
- runtimeProfile.addServiceConfiguration( this, configuration );
-
- for ( Iterator it = configuration.getWebapps().iterator(); it.hasNext(); )
- {
- Webapp webapp = (Webapp) it.next();
-
- // Stop the webapp context if it is running.
-
- if ( servletContainer.hasContext( webapp.getContext() ) )
- {
- servletContainer.stopApplication( webapp.getContext() );
- }
-
- File webAppDir;
-
- if ( webapp.getPath() == null )
- {
- // ----------------------------------------------------------------------
- // Extract the jar
- // ----------------------------------------------------------------------
-
- expand( getFile( webapp.getFile() ), getFile( webapp.getExtractionPath() ), false );
-
- webAppDir = getFile( webapp.getExtractionPath() );
- }
- else
- {
- webAppDir = getFile( webapp.getPath() );
- }
-
- if ( !webAppDir.isDirectory() )
- {
- throw new Exception( "The webapp isn't a directory: '" + webAppDir.getAbsolutePath() + "'." );
- }
-
- try
- {
- getLogger().info( "Deploying " + webAppDir + " with context path of " + webapp.getContext() );
-
- servletContainer.deployWarDirectory( webAppDir, runtimeProfile.getApplicationContainer(), webapp );
- }
- catch ( ServletContainerException e )
- {
- getLogger().error( "Error while deploying WAR '" + webAppDir.getAbsolutePath() + "'.", e );
- }
- }
-
- // ----------------------------------------------------------------------------
- // Web contexts
- // ----------------------------------------------------------------------------
-
- for ( Iterator i = configuration.getWebContexts().iterator(); i.hasNext(); )
- {
- WebContext webContext = (WebContext) i.next();
-
- getLogger().info(
- "Deploying " + webContext.getPath() + " with context path of " + webContext.getContext() );
-
- servletContainer.deployContext( webContext );
- }
-
- // ----------------------------------------------------------------------------
- // Servlet contexts
- // ----------------------------------------------------------------------------
-
- for ( Iterator i = configuration.getServletContexts().iterator(); i.hasNext(); )
- {
- ServletContext servletContext = (ServletContext) i.next();
-
- getLogger().info( "Deploying servlet " + servletContext.getName() + " with context path of " +
- servletContext.getContext() );
-
- servletContainer.deployServletContext( servletContext );
- }
- }
-
- public void afterApplicationStart( AppRuntimeProfile appRuntimeProfile, PlexusConfiguration serviceConfiguration )
- throws Exception
- {
- ServiceConfiguration configuration = configurationBuilder.buildConfiguration( serviceConfiguration,
- appRuntimeProfile.getApplicationServerContainer().getContainerRealm() );
-
- for ( Iterator it = configuration.getWebapps().iterator(); it.hasNext(); )
- {
- Webapp application = (Webapp) it.next();
-
- processWebContextConfiguration( application, appRuntimeProfile );
-
- //if ( !servletContainer.hasContext( application.getContext() ) )
- //{
- // ----------------------------------------------------------------------------
- // Now we need to find all the components that might be included in the webapp.
- // We have to do this here because now the container is initialized which
- // means discovery can occur.
- // ----------------------------------------------------------------------------
-
- DefaultPlexusContainer c = appRuntimeProfile.getApplicationContainer();
-
- ClassRealm realm = c.getContainerRealm();
-
- c.discoverComponents( realm );
- //}
-
- servletContainer.startApplication( application.getContext() );
- }
-
- for ( Iterator i = configuration.getWebContexts().iterator(); i.hasNext(); )
- {
- WebContext webContext = (WebContext) i.next();
-
- processWebContextConfiguration( webContext, appRuntimeProfile );
-
- servletContainer.startApplication( webContext.getContext() );
- }
-
- for ( Iterator i = configuration.getServletContexts().iterator(); i.hasNext(); )
- {
- ServletContext servletContext = (ServletContext) i.next();
-
- processWebContextConfiguration( servletContext, appRuntimeProfile );
-
- servletContainer.startApplication( servletContext.getContext() );
- }
- }
-
- // ----------------------------------------------------------------------------
- //
- // ----------------------------------------------------------------------------
-
- private void processWebContextConfiguration( WebContext context, AppRuntimeProfile profile )
- throws Exception
- {
- if ( context.getVirtualHost() == null )
- {
- getLogger().info( "Deploying appserver '" + profile.getName() + "'." );
- }
- else
- {
- getLogger().info( "Deploying appserver '" + profile.getName() + "' " + "on virtual host '" +
- context.getVirtualHost() + "'." );
- }
-
- HttpListener httpListener;
-
- String port;
-
- String listener;
-
- for ( Iterator j = context.getListeners().iterator(); j.hasNext(); )
- {
- httpListener = (HttpListener) j.next();
-
- port = Integer.toString( httpListener.getPort() );
-
- listener = ( httpListener.getHost() != null ) ? httpListener.getHost() : "*";
-
- listener += port;
-
- if ( httpListener instanceof ProxyHttpListener )
- {
- ProxyHttpListener proxyHttpListener = (ProxyHttpListener) httpListener;
-
- String proxyListener = ( proxyHttpListener.getHost() != null ) ? proxyHttpListener.getHost() : "*";
-
- proxyListener += port;
-
- getLogger().info( "Adding HTTP proxy listener on " + listener + " for " + proxyListener );
-
- servletContainer.addProxyListener( proxyHttpListener );
- }
- else
- {
- getLogger().info( "Adding HTTP listener on " + listener );
-
- servletContainer.addListener( httpListener );
- }
- }
- }
-
- public void applicationStop( AppRuntimeProfile runtimeProfile )
- throws Exception
- {
- ServiceConfiguration configuration = (ServiceConfiguration) runtimeProfile.getServiceConfiguration( this );
-
- removeContexts( configuration.getWebContexts() );
-
- removeContexts( configuration.getServletContexts() );
-
- Webapp webapp;
-
- for ( Iterator iterator = configuration.getWebapps().iterator(); iterator.hasNext(); )
- {
- webapp = (Webapp) iterator.next();
-
- if ( servletContainer.hasContext( webapp.getContext() ) )
- {
- removeListeners( webapp.getListeners() );
- servletContainer.stopApplication( webapp.getContext() );
- }
- }
- }
-
-
- private void removeContexts( List contexts )
- throws Exception
- {
- WebContext context;
-
- for (Iterator iterator = contexts.iterator(); iterator.hasNext(); )
- {
- context = (WebContext) iterator.next();
- removeListeners( context.getListeners() );
- }
- }
-
- private void removeListeners( List listeners )
- throws Exception
- {
- HttpListener listener;
-
- for (Iterator listenerIterator = listeners.iterator(); listenerIterator.hasNext(); )
- {
- listener = ( HttpListener ) listenerIterator.next();
-
- servletContainer.removeListener( listener );
- }
- }
-
- private File getFile( String path )
- {
- return FileUtils.resolveFile( new File( "." ), path );
- }
-}
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/service/jetty/JettyPlexusServiceException.java b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/service/jetty/JettyPlexusServiceException.java
deleted file mode 100644
index d5facd50c..000000000
--- a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/java/org/codehaus/plexus/service/jetty/JettyPlexusServiceException.java
+++ /dev/null
@@ -1,43 +0,0 @@
-package org.codehaus.plexus.service.jetty;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-/**
- * @author Trygve Laugstøl
- * @version $Id$
- */
-public class JettyPlexusServiceException
- extends Exception
-{
- public JettyPlexusServiceException( String message )
- {
- super( message );
- }
-
- public JettyPlexusServiceException( String message, Throwable cause )
- {
- super( message, cause );
- }
-}
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/resources/META-INF/plexus/components.xml b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/resources/META-INF/plexus/components.xml
deleted file mode 100644
index 47ef0e572..000000000
--- a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/resources/META-INF/plexus/components.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
- org.codehaus.plexus.appserver.service.PlexusService
- jetty
- org.codehaus.plexus.service.jetty.JettyPlexusService
-
-
- org.codehaus.plexus.jetty.ServletContainer
- jetty
-
-
- org.codehaus.plexus.jetty.configuration.builder.ServiceConfigurationBuilder
-
-
-
-
- org.codehaus.plexus.jetty.ServletContainer
- jetty-plus
- org.codehaus.plexus.jetty.JettyPlusServletContainer
-
- ${plexus.home}/conf/jetty.xml
-
-
-
- org.codehaus.plexus.jetty.ServletContainer
- org.codehaus.plexus.jetty.JettyServletContainer
- jetty
-
-
- org.codehaus.plexus.jetty.configuration.builder.ServiceConfigurationBuilder
- org.codehaus.plexus.jetty.configuration.builder.DefaultServiceConfigurationBuilder
-
-
- org.codehaus.plexus.component.configurator.ComponentConfigurator
- basic
-
-
-
-
-
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/resources/jndi.properties b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/resources/jndi.properties
deleted file mode 100644
index 63b57accb..000000000
--- a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/main/resources/jndi.properties
+++ /dev/null
@@ -1 +0,0 @@
-java.naming.factory.initial=org.mortbay.jndi.InitialContextFactory
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/test/java/org/codehaus/plexus/jetty/JettyPlusServletContainerTest.java b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/test/java/org/codehaus/plexus/jetty/JettyPlusServletContainerTest.java
deleted file mode 100644
index 1c0869fe5..000000000
--- a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/test/java/org/codehaus/plexus/jetty/JettyPlusServletContainerTest.java
+++ /dev/null
@@ -1,64 +0,0 @@
-package org.codehaus.plexus.jetty;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2006, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.codehaus.plexus.PlexusTestCase;
-
-import javax.naming.Context;
-import javax.naming.InitialContext;
-import javax.sql.DataSource;
-import java.sql.Connection;
-
-/**
- * Test the JettyPlusServletContainer class.
- */
-public class JettyPlusServletContainerTest
- extends PlexusTestCase
-{
- public void testJndi()
- throws Exception
- {
- JettyPlusServletContainer container = (JettyPlusServletContainer) lookup( ServletContainer.ROLE, "jetty-plus" );
- container.setJettyXmlFile( getTestFile( "target/test-classes/jetty.xml" ) );
-
- try
- {
- container.start();
-
- Context ctx = new InitialContext();
- ctx = (Context) ctx.lookup( "java:comp/env" );
-
- DataSource dataSource = (DataSource) ctx.lookup( "jdbc/testDS" );
- assertNotNull( dataSource );
- Connection conn = dataSource.getConnection();
- assertNotNull( conn );
- conn.close();
- }
- finally
- {
- container.stop();
- }
- }
-}
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/test/java/org/codehaus/plexus/jetty/configuration/builder/DefaultServiceConfigurationBuilderTest.java b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/test/java/org/codehaus/plexus/jetty/configuration/builder/DefaultServiceConfigurationBuilderTest.java
deleted file mode 100644
index 53b785779..000000000
--- a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/test/java/org/codehaus/plexus/jetty/configuration/builder/DefaultServiceConfigurationBuilderTest.java
+++ /dev/null
@@ -1,166 +0,0 @@
-package org.codehaus.plexus.jetty.configuration.builder;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004-2005, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.codehaus.plexus.PlexusTestCase;
-import org.codehaus.plexus.configuration.PlexusConfiguration;
-import org.codehaus.plexus.configuration.xml.XmlPlexusConfiguration;
-import org.codehaus.plexus.jetty.configuration.HttpListener;
-import org.codehaus.plexus.jetty.configuration.ProxyHttpListener;
-import org.codehaus.plexus.jetty.configuration.ServiceConfiguration;
-import org.codehaus.plexus.jetty.configuration.WebContext;
-import org.codehaus.plexus.jetty.configuration.Webapp;
-import org.codehaus.plexus.util.xml.Xpp3Dom;
-import org.codehaus.plexus.util.xml.Xpp3DomBuilder;
-
-import java.io.FileReader;
-import java.util.List;
-
-/**
- * @author Trygve Laugstøl
- * @version $Id$
- */
-public class DefaultServiceConfigurationBuilderTest
- extends PlexusTestCase
-{
- public void testBasic()
- throws Exception
- {
- ServiceConfigurationBuilder configurationBuilder =
- (ServiceConfigurationBuilder) lookup( ServiceConfigurationBuilder.ROLE );
-
- Xpp3Dom dom = Xpp3DomBuilder.build(
- new FileReader( getTestFile( "src/test/resources/full-configuration-example.xml" ) ) );
-
- PlexusConfiguration plexusConfiguration = new XmlPlexusConfiguration( dom );
-
- ServiceConfiguration configuration =
- configurationBuilder.buildConfiguration( plexusConfiguration, getContainer().getContainerRealm() );
-
- assertNotNull( configuration );
-
- assertNotNull( configuration.getWebapps() );
-
- assertEquals( 1, configuration.getWebapps().size() );
-
- // ----------------------------------------------------------------------
- // Assert the Webapp
- // ----------------------------------------------------------------------
-
- Webapp webapp = (Webapp) configuration.getWebapps().get( 0 );
-
- assertEquals( "/continuum", webapp.getContext() );
-
- assertEquals( "${plexus.home}/webapp", webapp.getExtractionPath() );
-
- assertEquals( "${plexus.home}/lib/continuum-web-1.0-alpha-3-SNAPSHOT.jar", webapp.getFile() );
-
- assertNull( webapp.getPath() );
-
- assertEquals( "www.foo.com", webapp.getVirtualHost() );
-
- assertTrue( webapp.isStandardWebappClassloader() );
-
- // ----------------------------------------------------------------------
- // Assert the listeners
- // ----------------------------------------------------------------------
-
- List listeners = webapp.getListeners();
-
- assertNotNull( listeners );
-
- assertEquals( 2, listeners.size() );
-
- assertEquals( HttpListener.class, listeners.get( 0 ).getClass() );
-
- HttpListener httpListener = (HttpListener) listeners.get( 0 );
-
- assertNull( httpListener.getHost() );
-
- assertEquals( 123, httpListener.getPort() );
-
- assertEquals( ProxyHttpListener.class, listeners.get( 1 ).getClass() );
-
- ProxyHttpListener proxyHttpListener = (ProxyHttpListener) listeners.get( 1 );
-
- assertNull( proxyHttpListener.getHost() );
-
- assertEquals( 8090, proxyHttpListener.getPort() );
-
- assertEquals( "localhost", proxyHttpListener.getProxyHost() );
-
- assertEquals( 80, proxyHttpListener.getProxyPort() );
-
- // ----------------------------------------------------------------------------
- // Test the web contexts
- // ----------------------------------------------------------------------------
-
- assertNotNull( configuration.getWebContexts() );
-
- assertEquals( 1, configuration.getWebContexts().size() );
-
- // ----------------------------------------------------------------------
- // Assert the Webapp
- // ----------------------------------------------------------------------
-
- WebContext webContext = (WebContext) configuration.getWebContexts().get( 0 );
-
- assertEquals( "/repository", webContext.getContext() );
-
- assertEquals( "/path/to/repository", webContext.getPath() );
-
- assertEquals( "www.foo.com", webContext.getVirtualHost() );
-
- // ----------------------------------------------------------------------
- // Assert the listeners
- // ----------------------------------------------------------------------
-
- listeners = webContext.getListeners();
-
- assertNotNull( listeners );
-
- assertEquals( 2, listeners.size() );
-
- assertEquals( HttpListener.class, listeners.get( 0 ).getClass() );
-
- httpListener = (HttpListener) listeners.get( 0 );
-
- assertNull( httpListener.getHost() );
-
- assertEquals( 123, httpListener.getPort() );
-
- assertEquals( ProxyHttpListener.class, listeners.get( 1 ).getClass() );
-
- proxyHttpListener = (ProxyHttpListener) listeners.get( 1 );
-
- assertNull( proxyHttpListener.getHost() );
-
- assertEquals( 8090, proxyHttpListener.getPort() );
-
- assertEquals( "localhost", proxyHttpListener.getProxyHost() );
-
- assertEquals( 80, proxyHttpListener.getProxyPort() );
- }
-}
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/test/java/org/codehaus/plexus/service/jetty/JettyServiceTest.java b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/test/java/org/codehaus/plexus/service/jetty/JettyServiceTest.java
deleted file mode 100644
index f4fd61b81..000000000
--- a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/test/java/org/codehaus/plexus/service/jetty/JettyServiceTest.java
+++ /dev/null
@@ -1,35 +0,0 @@
-package org.codehaus.plexus.service.jetty;
-
-import org.codehaus.plexus.PlexusTestCase;
-import org.codehaus.plexus.PlexusContainer;
-import org.codehaus.plexus.DefaultPlexusContainer;
-import org.codehaus.plexus.appserver.application.profile.AppRuntimeProfile;
-import org.codehaus.plexus.appserver.service.PlexusService;
-import org.codehaus.plexus.configuration.PlexusConfiguration;
-import org.codehaus.plexus.configuration.xml.XmlPlexusConfiguration;
-import org.codehaus.plexus.util.xml.Xpp3Dom;
-import org.codehaus.plexus.util.xml.Xpp3DomBuilder;
-
-import java.io.FileReader;
-
-public class JettyServiceTest
- extends PlexusTestCase
-{
- public void testJettyService()
- throws Exception
- {
- PlexusService service = (PlexusService) lookup( PlexusService.ROLE, "jetty" );
-
- DefaultPlexusContainer container = (DefaultPlexusContainer) getContainer();
- AppRuntimeProfile profile = new AppRuntimeProfile( "test", null, null, container, container, null );
-
- Xpp3Dom dom = Xpp3DomBuilder.build( new FileReader( getTestFile( "src/test/resources/test-service.xml" ) ) );
-
- PlexusConfiguration configuration = new XmlPlexusConfiguration( dom );
-
- service.beforeApplicationStart( profile, configuration );
-
- service.afterApplicationStart( profile, configuration );
-
- }
-}
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/test/resources/full-configuration-example.xml b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/test/resources/full-configuration-example.xml
deleted file mode 100644
index 7ce41b74c..000000000
--- a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/test/resources/full-configuration-example.xml
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
- ${plexus.home}/lib/continuum-web-1.0-alpha-3-SNAPSHOT.jar
- /continuum
- true
- ${plexus.home}/webapp
- www.foo.com
-
-
-
- 123
-
-
- 8090
- localhost
- 80
-
-
-
-
-
-
- /repository
- /path/to/repository
- www.foo.com
-
-
-
- 123
-
-
- 8090
- localhost
- 80
-
-
-
-
-
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/test/resources/jetty.xml b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/test/resources/jetty.xml
deleted file mode 100644
index bf7dbb589..000000000
--- a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/test/resources/jetty.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
-
-
-
-
- DataSourceService
-
-
-
- java:comp/env/jdbc/testDS
-
-
- target/database
- sa
- create
-
-
-
-
-
-
-
-
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/test/resources/test-service.xml b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/test/resources/test-service.xml
deleted file mode 100644
index 2fd59c6f1..000000000
--- a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/test/resources/test-service.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
- /
- src/test/webapp
-
-
- localhost
- 12345
-
-
-
-
-
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/test/webapp/WEB-INF/web.xml b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/test/webapp/WEB-INF/web.xml
deleted file mode 100644
index 63d27096f..000000000
--- a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-jetty/src/test/webapp/WEB-INF/web.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
- Test
-
-
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-xmlrpc/pom.xml b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-xmlrpc/pom.xml
deleted file mode 100644
index cb278b5c2..000000000
--- a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-xmlrpc/pom.xml
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
- plexus-appserver-services
- org.codehaus.plexus
- 2.0-alpha-4-SNAPSHOT
-
- 4.0.0
- plexus-appserver-service-xmlrpc
- 2.0-alpha-5-SNAPSHOT
- plexus-service
- Plexus XMLRPC Service
-
-
-
- org.codehaus.plexus
- plexus-appserver-maven-plugin
- true
-
- xmlrpc
- src/conf/plexus.xml
-
-
-
-
-
-
- xmlrpc
- xmlrpc
- 1.2
-
-
- servletapi
- servletapi
- 2.3
-
-
- org.codehaus.plexus
- plexus-xmlrpc
- 1.0-beta-4
-
-
-
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-xmlrpc/src/conf/plexus.xml b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-xmlrpc/src/conf/plexus.xml
deleted file mode 100644
index 3a74b789b..000000000
--- a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-xmlrpc/src/conf/plexus.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
- org.codehaus.plexus.appserver.service.PlexusService
- xml-rpc
-
-
-
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-xmlrpc/src/main/java/org/codehaus/plexus/service/xmlrpc/XmlRpcPlexusService.java b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-xmlrpc/src/main/java/org/codehaus/plexus/service/xmlrpc/XmlRpcPlexusService.java
deleted file mode 100644
index e2e6a6bbd..000000000
--- a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-xmlrpc/src/main/java/org/codehaus/plexus/service/xmlrpc/XmlRpcPlexusService.java
+++ /dev/null
@@ -1,193 +0,0 @@
-package org.codehaus.plexus.service.xmlrpc;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.apache.xmlrpc.XmlRpcException;
-import org.codehaus.plexus.appserver.application.profile.AppRuntimeProfile;
-import org.codehaus.plexus.appserver.service.PlexusService;
-import org.codehaus.plexus.configuration.PlexusConfiguration;
-import org.codehaus.plexus.logging.AbstractLogEnabled;
-import org.codehaus.plexus.personality.plexus.lifecycle.phase.Startable;
-import org.codehaus.plexus.personality.plexus.lifecycle.phase.StartingException;
-import org.codehaus.plexus.service.xmlrpc.configuration.ServiceConfiguration;
-import org.codehaus.plexus.service.xmlrpc.configuration.XmlRpcService;
-import org.codehaus.plexus.service.xmlrpc.configuration.builder.ServiceConfigurationBuilder;
-import org.codehaus.plexus.util.StringUtils;
-import org.codehaus.plexus.xmlrpc.XmlRpcServer;
-
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.Set;
-
-/**
- * @author Trygve Laugstøl
- * @author Emmanuel VEnisse
- * @version $Id$
- */
-public class XmlRpcPlexusService
- extends AbstractLogEnabled
- implements PlexusService, Startable
-{
- /**
- * @plexus.requirement
- */
- private ServiceConfigurationBuilder configurationBuilder;
-
- /**
- * @requirement
- */
- private XmlRpcServer xmlRpcServer;
-
- /**
- * port activity flag
- */
- int port = -1;
-
- /**
- * Set of ports to be activated. The port can only be used once.
- */
- private Set activePorts = new HashSet();
-
- // ----------------------------------------------------------------------
- // Component Lifecycle
- // ----------------------------------------------------------------------
-
- public void start()
- throws StartingException
- {
- getLogger().info( "Starting XML-RPC service." );
- }
-
- public void stop()
- {
- getLogger().info( "Stopping XML-RPC service." );
-
- if ( port == -1 )
- {
- return;
- }
-
- try
- {
- xmlRpcServer.removeListener( null, port );
- }
- catch ( XmlRpcException e )
- {
- getLogger().error( "Error while stopping the XML-RPC server.", e );
- }
- }
-
- // ----------------------------------------------------------------------
- // PlexusService Implementation
- // ----------------------------------------------------------------------
-
- public void beforeApplicationStart( AppRuntimeProfile appRuntimeProfile, PlexusConfiguration serviceConfiguration )
- throws Exception
- {
- ServiceConfiguration configuration = configurationBuilder.buildConfiguration( serviceConfiguration );
-
- for ( Iterator it = configuration.getXmlRpcServices().iterator(); it.hasNext(); )
- {
- XmlRpcService service = (XmlRpcService) it.next();
-
- try
- {
- String activePort = Integer.toString( service.getPort() );
-
- if ( activePorts.contains( activePort ) )
- {
- continue;
- }
-
- activePorts.add( activePort );
-
- xmlRpcServer.addListener( null, service.getPort(), false );
-
- xmlRpcServer.startListener( null, service.getPort() );
-
- port = service.getPort();
- }
- catch ( XmlRpcException e )
- {
- throw new StartingException( "Error while starting XML-RPC server on port " + service.getPort() + ".",
- e );
- }
- }
- }
-
- public void afterApplicationStart( AppRuntimeProfile appRuntimeProfile, PlexusConfiguration serviceConfiguration )
- throws Exception
- {
- if ( port == -1 )
- {
- return;
- }
-
- PlexusConfiguration[] handlers = serviceConfiguration.getChild( "handlers" ).getChildren( "handler" );
-
- for ( int i = 0; i < handlers.length; i++ )
- {
- PlexusConfiguration handler = handlers[i];
-
- String role = handler.getChild( "role" ).getValue();
-
- String name = handler.getChild( "name" ).getValue();
-
- if ( StringUtils.isEmpty( role ) )
- {
- getLogger().error( "Error in configurator: Missing 'role' child element of 'handler' element." );
-
- break;
- }
-
- if ( StringUtils.isEmpty( name ) )
- {
- getLogger().error( "Error in configurator: Missing 'name' child element of 'handler' element." );
-
- break;
- }
-
- if ( !appRuntimeProfile.getApplicationServerContainer().hasComponent( role ) )
- {
- getLogger().error( "No component with the role '" + role + "' available." );
-
- break;
- }
-
- Object component = appRuntimeProfile.getApplicationServerContainer().lookup( role );
-
- getLogger().info( "Adding XML-RPC handler for role '" + role + " to name '" + name + "'." );
-
- xmlRpcServer.addHandler( null, name, port, component );
- }
- }
-
- public void applicationStop( AppRuntimeProfile runtimeProfile )
- throws Exception
- {
-
- }
-
-}
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-xmlrpc/src/main/java/org/codehaus/plexus/service/xmlrpc/configuration/ServiceConfiguration.java b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-xmlrpc/src/main/java/org/codehaus/plexus/service/xmlrpc/configuration/ServiceConfiguration.java
deleted file mode 100644
index a94beaf13..000000000
--- a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-xmlrpc/src/main/java/org/codehaus/plexus/service/xmlrpc/configuration/ServiceConfiguration.java
+++ /dev/null
@@ -1,47 +0,0 @@
-package org.codehaus.plexus.service.xmlrpc.configuration;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004-2005, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * @author Emmanuel VEnisse
- * @version $Id$
- */
-public class ServiceConfiguration
-{
- private List xmlRpcServices = new ArrayList();
-
- public void addXmlRpcService( XmlRpcService xmlRpcService )
- {
- xmlRpcServices.add( xmlRpcService );
- }
-
- public List getXmlRpcServices()
- {
- return xmlRpcServices;
- }
-}
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-xmlrpc/src/main/java/org/codehaus/plexus/service/xmlrpc/configuration/XmlRpcService.java b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-xmlrpc/src/main/java/org/codehaus/plexus/service/xmlrpc/configuration/XmlRpcService.java
deleted file mode 100644
index 61ce7b652..000000000
--- a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-xmlrpc/src/main/java/org/codehaus/plexus/service/xmlrpc/configuration/XmlRpcService.java
+++ /dev/null
@@ -1,44 +0,0 @@
-package org.codehaus.plexus.service.xmlrpc.configuration;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004-2005, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-/**
- * @author Emmanuel VEnisse
- * @version $Id$
- */
-public class XmlRpcService
-{
- private int port;
-
- public XmlRpcService( int port )
- {
- this.port = port;
- }
-
- public int getPort()
- {
- return port;
- }
-}
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-xmlrpc/src/main/java/org/codehaus/plexus/service/xmlrpc/configuration/builder/DefaultServiceConfigurationBuilder.java b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-xmlrpc/src/main/java/org/codehaus/plexus/service/xmlrpc/configuration/builder/DefaultServiceConfigurationBuilder.java
deleted file mode 100644
index b38c501e7..000000000
--- a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-xmlrpc/src/main/java/org/codehaus/plexus/service/xmlrpc/configuration/builder/DefaultServiceConfigurationBuilder.java
+++ /dev/null
@@ -1,81 +0,0 @@
-package org.codehaus.plexus.service.xmlrpc.configuration.builder;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004-2005, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.codehaus.plexus.configuration.PlexusConfiguration;
-import org.codehaus.plexus.logging.AbstractLogEnabled;
-import org.codehaus.plexus.service.xmlrpc.configuration.ServiceConfiguration;
-import org.codehaus.plexus.service.xmlrpc.configuration.XmlRpcService;
-import org.codehaus.plexus.util.StringUtils;
-
-/**
- * @author Emmanuel VEnisse
- * @version $Id$
- */
-public class DefaultServiceConfigurationBuilder
- extends AbstractLogEnabled
- implements ServiceConfigurationBuilder
-{
- public ServiceConfiguration buildConfiguration( PlexusConfiguration serviceConfiguration )
- {
- ServiceConfiguration configuration = new ServiceConfiguration();
-
- PlexusConfiguration xmlrpc = serviceConfiguration.getChild( "xmlrpc" );
-
- int port = getPort( xmlrpc );
-
- if ( port != -1 )
- {
- XmlRpcService xmlrpcService = new XmlRpcService( port );
-
- configuration.addXmlRpcService( xmlrpcService );
- }
-
- return configuration;
- }
-
- private int getPort( PlexusConfiguration xmlrpc )
- {
- String portString = xmlrpc.getChild( "port" ).getValue( null );
-
- if ( StringUtils.isEmpty( portString ) )
- {
- getLogger().warn( "Error while deploying xml-rpc service: 'port' has to be a integer." );
-
- return -1;
- }
-
- try
- {
- return Integer.parseInt( portString );
- }
- catch ( NumberFormatException e )
- {
- getLogger().warn( "Error while deploying xml-rpc service: 'port' has to be a integer." );
-
- return -1;
- }
- }
-}
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-xmlrpc/src/main/java/org/codehaus/plexus/service/xmlrpc/configuration/builder/ServiceConfigurationBuilder.java b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-xmlrpc/src/main/java/org/codehaus/plexus/service/xmlrpc/configuration/builder/ServiceConfigurationBuilder.java
deleted file mode 100644
index 427db1ab4..000000000
--- a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-xmlrpc/src/main/java/org/codehaus/plexus/service/xmlrpc/configuration/builder/ServiceConfigurationBuilder.java
+++ /dev/null
@@ -1,39 +0,0 @@
-package org.codehaus.plexus.service.xmlrpc.configuration.builder;
-
-/*
- * The MIT License
- *
- * Copyright (c) 2004-2005, The Codehaus
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import org.codehaus.plexus.configuration.PlexusConfiguration;
-import org.codehaus.plexus.service.xmlrpc.configuration.ServiceConfiguration;
-
-/**
- * @author Emmanuel VEnisse
- * @version $Id$
- */
-public interface ServiceConfigurationBuilder
-{
- String ROLE = ServiceConfigurationBuilder.class.getName();
-
- ServiceConfiguration buildConfiguration( PlexusConfiguration serviceConfiguration );
-}
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-xmlrpc/src/main/resources/META-INF/plexus/components.xml b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-xmlrpc/src/main/resources/META-INF/plexus/components.xml
deleted file mode 100644
index fbd33cf9e..000000000
--- a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-xmlrpc/src/main/resources/META-INF/plexus/components.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
- org.codehaus.plexus.appserver.service.PlexusService
- xml-rpc
- org.codehaus.plexus.service.xmlrpc.XmlRpcPlexusService
-
-
- org.codehaus.plexus.xmlrpc.XmlRpcServer
-
-
- org.codehaus.plexus.service.xmlrpc.configuration.builder.ServiceConfigurationBuilder
-
-
-
-
-
- org.codehaus.plexus.service.xmlrpc.configuration.builder.ServiceConfigurationBuilder
- org.codehaus.plexus.service.xmlrpc.configuration.builder.DefaultServiceConfigurationBuilder
-
-
-
-
diff --git a/plexus-appserver/plexus-appserver-services/plexus-appserver-service-xmlrpc/src/plexus.properties b/plexus-appserver/plexus-appserver-services/plexus-appserver-service-xmlrpc/src/plexus.properties
deleted file mode 100644
index e69de29bb..000000000
diff --git a/plexus-appserver/plexus-appserver-services/pom.xml b/plexus-appserver/plexus-appserver-services/pom.xml
deleted file mode 100644
index c27af603d..000000000
--- a/plexus-appserver/plexus-appserver-services/pom.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-
- 4.0.0
-
- org.codehaus.plexus
- plexus-appserver
- 2.0-alpha-4-SNAPSHOT
-
- plexus-appserver-services
- pom
- Plexus App Server Services
-
-
- org.codehaus.plexus
- plexus-appserver-host
- 2.0-alpha-4-SNAPSHOT
-
-
-
- plexus-appserver-service-jetty
- plexus-appserver-service-xmlrpc
-
-
diff --git a/plexus-appserver/pom.xml b/plexus-appserver/pom.xml
deleted file mode 100644
index 0fca1ca8d..000000000
--- a/plexus-appserver/pom.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-
- 4.0.0
-
- plexus
- org.codehaus.plexus
- 1.0.8
-
- plexus-appserver
- 2.0-alpha-4-SNAPSHOT
- Plexus Application Server
- pom
-
-
- org.codehaus.plexus
- plexus-container-default
- 1.0-alpha-10
-
-
- org.codehaus.plexus
- plexus-utils
- 1.3
-
-
-
- plexus-appserver-host
- plexus-appserver-maven-plugin
- plexus-appserver-services
- plexus-appserver-runtime-builder
-
-
diff --git a/plexus-appserver/src/site/apt/appserver.apt b/plexus-appserver/src/site/apt/appserver.apt
deleted file mode 100644
index 541c5ebc8..000000000
--- a/plexus-appserver/src/site/apt/appserver.apt
+++ /dev/null
@@ -1,14 +0,0 @@
- -----
- Plexus Appserver
- -----
- Jason van Zyl
- -----
- 26 April 2006
- -----
-
-Plexus Appserver
-
-* Lifecycle
-
- services are processed
- applications are deployed
\ No newline at end of file
diff --git a/plexus-appserver/src/site/apt/plexus-runtime.apt b/plexus-appserver/src/site/apt/plexus-runtime.apt
deleted file mode 100644
index ec531667c..000000000
--- a/plexus-appserver/src/site/apt/plexus-runtime.apt
+++ /dev/null
@@ -1,43 +0,0 @@
- -----
- Plexus Runtime Builder
- -----
- Jason van Zyl
- -----
- 24 April 2006
-
-Plexus Runtime Builder
-
------
-
-
-
-
- org.codehaus.plexus
- plexus-maven-plugin
- true
-
-
-
- runtime
- add-app
- add-services
-
-
-
-
- The app and runtime should really be configured separately!
-
- src/conf/application.xml
- src/conf
- src/plexus.properties
- testapp
-
- src/conf/plexus.xml
- src/plexus.properties
- target/plexus-test-runtime
-
-
-
-
-
------
\ No newline at end of file
diff --git a/plexus-appserver/todo.txt b/plexus-appserver/todo.txt
deleted file mode 100644
index 5f3f3e2e4..000000000
--- a/plexus-appserver/todo.txt
+++ /dev/null
@@ -1,12 +0,0 @@
-[ ] web console for app server
-[ ] apps need to be shutdown and dispose called
-[ ] xmlrpc interface to the app server
-[ ] need to know the application class so that it can be shutdown, anything that started up must be shutdown
-[ ] REST interface for the app server
-[ ] Research the generation of xfire services for applications.
-[ ] loggers in plexus should be able to have their threshold set
-[ ] design the activity and action flows for plexus apps. use plexus
-[ ] actions instead of xwork actions. use id for action exceptions.
-[ ] integrate m2 plexus which i have lying around
-[ ] general plugin framework - take out of maven and use in modello
-[ ] using acegi in plexus
\ No newline at end of file
diff --git a/plexus-archetypes/plexus-application-view-web/pom.xml b/plexus-archetypes/plexus-application-view-web/pom.xml
deleted file mode 100644
index 5c242df4b..000000000
--- a/plexus-archetypes/plexus-application-view-web/pom.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-
- 4.0.0
-
- plexus-archetypes
- org.codehaus.plexus
- 1.0-alpha-1-SNAPSHOT
-
- plexus-application-view-web
- 1.0-alpha-1-SNAPSHOT
- Plexus Archetype View Web
-
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/forms/addProjectPomUrl.xml b/plexus-archetypes/plexus-application-view-web/src/main/resources/forms/addProjectPomUrl.xml
deleted file mode 100644
index f749f5827..000000000
--- a/plexus-archetypes/plexus-application-view-web/src/main/resources/forms/addProjectPomUrl.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/forms/addProjectScm.xml b/plexus-archetypes/plexus-application-view-web/src/main/resources/forms/addProjectScm.xml
deleted file mode 100644
index 9c70fb673..000000000
--- a/plexus-archetypes/plexus-application-view-web/src/main/resources/forms/addProjectScm.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/forms/addShellProjectPomUrl.xml b/plexus-archetypes/plexus-application-view-web/src/main/resources/forms/addShellProjectPomUrl.xml
deleted file mode 100644
index 7f74b4cd0..000000000
--- a/plexus-archetypes/plexus-application-view-web/src/main/resources/forms/addShellProjectPomUrl.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/forms/login.xml b/plexus-archetypes/plexus-application-view-web/src/main/resources/forms/login.xml
deleted file mode 100644
index 544613208..000000000
--- a/plexus-archetypes/plexus-application-view-web/src/main/resources/forms/login.xml
+++ /dev/null
@@ -1,26 +0,0 @@
-
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/localization/Continuum.properties b/plexus-archetypes/plexus-application-view-web/src/main/resources/localization/Continuum.properties
deleted file mode 100644
index 01034fc97..000000000
--- a/plexus-archetypes/plexus-application-view-web/src/main/resources/localization/Continuum.properties
+++ /dev/null
@@ -1,49 +0,0 @@
-// ----------------------------------------------------------------------
-// Form: Login
-// ----------------------------------------------------------------------
-
-login.title = Login
-login.username.label = Login
-login.username.message = Please enter your username
-login.username.error = Field is invalid
-login.password.label = Password
-login.password.message = Please enter your password
-login.password.error = Field is invalid
-
-// ----------------------------------------------------------------------
-// Form: addProject Scm/Url
-// ----------------------------------------------------------------------
-
-addProjectScm.title=Add Project - SCM
-addProjectPomUrl.title=Add Project - POM URL
-
-addProject.name.label = Project Name
-addProject.name.message = Please enter the project name.
-addProject.name.error = The project name is invalid.
-
-addProject.scm.label = Scm Url
-addProject.scm.message = Please enter the project's scm url.
-addProject.scm.error = The scm url is invalid.
-
-addProject.nagEmailAddress.label = Nag email address
-addProject.nagEmailAddress.message = Please enter the project's nag email address.
-addProject.nagEmailAddress.error = The nag email address is invalid.
-
-addProject.version.label = Version
-addProject.version.message = Please enter the project's version.
-addProject.version.error = The version is invalid.
-
-addProject.pomUrl.label = Pom Url
-addProject.pomUrl.message = Please enter a URL to the pom.
-addProject.pomUrl.error = The pom url is invalid.
-
-// ----------------------------------------------------------------------
-// Project states
-// ----------------------------------------------------------------------
-
-org.codehaus.continuum.project.state.new=new
-org.codehaus.continuum.project.state.ok=ok
-org.codehaus.continuum.project.state.failed=failed
-org.codehaus.continuum.project.state.error=error
-org.codehaus.continuum.project.state.building=building
-org.codehaus.continuum.project.state.signaled=build signaled
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/WEB-INF/web.xml b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/WEB-INF/web.xml
deleted file mode 100644
index 471273e5f..000000000
--- a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/WEB-INF/web.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
- continuum
- org.codehaus.plexus.summit.Summit
- 5
-
-
- continuum
- /continuum/*
-
-
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/css/inst.css b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/css/inst.css
deleted file mode 100644
index 9929a3018..000000000
--- a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/css/inst.css
+++ /dev/null
@@ -1,146 +0,0 @@
-/* $Id$
-
-This file contains rules that extend or override the more basic formatting defined in tigris.css. Edit it to customize the look of applications using tigris.css (instances). You are responsible for maintaining your own set of (optional) deltas from tigris.css defaults; this file is intended as an example.
-
-*/
-
-/* colors, backgrounds, borders, link indication */
-#cn {
- background-image: url(../images/corporate_logo.gif);
- display: block;
- height: 17px;
- width: 138px;
-}
-
-#poweredby {
- background-image: url(../images/poweredby_036.gif);
- display: block;
- height: 38px;
- width: 102px;
-}
-
-#sc {
- background-image: url(../images/product_logo.gif);
- display: block;
- height: 25px;
- width: 138px;
-}
-
-#toptabs td, #toptabs th {
- background-image: url(../images/nw_min_036.gif);
-}
-
-.app h3, #banner, #banner td, #toptabs {
- background-color: #036;
- color: #fff;
-}
-
-body #banner td a, .app h3 a, .app h4 a {
- color: #fff !important;
-}
-
-#banner {
- border-top: 1px solid #369;
-}
-
-#mytools .label, #projecttools .label, #admintools .label, #communitytools .label {
- background-color: #ddd;
- border: none;
-}
-
-#mytools .body, #projecttools .body, #admintools .body, #communitytools .body {
- background-color: #fff;
- border-right: none;
- border-bottom: none;
- border-top: 1px solid #999;
-}
-
-#mytools, #projecttools, #admintools, #communitytools {
- background-color: #ddd;
- border-right: 1px solid #666;
- border-bottom: 1px solid #666;
-}
-
-#helptext {
- background-color: #ffc;
-}
-
-#helptext .label {
- border-bottom: 1px solid #996;
- border-right: 1px solid #996;
- background-color: #cc9;
-}
-
-#helptext .body {
- border-bottom: 1px solid #cc9;
- border-right: 1px solid #cc9;
-}
-
-#topmodule {
- background-color: #ddd;
- border-top: 1px solid #fff;
- border-bottom: 1px solid #aaa;
-}
-
-#topmodule #issueid {
- border-right: 1px solid #aaa;
-}
-
-#login a:link, #login a:visited {
- color: white;
- text-decoration: underline;
-}
-
-#banner a:active, #banner a:hover {
- color: #f90 !important;
-}
-
-#toptabs td {
- border-bottom: 1px solid #666;
- border-right: 1px solid #333;
- border-left: 1px solid #036;
-}
-
-#toptabs th {
- border-left: 1px solid #036;
-}
-
-/* font and text properties, exclusive of link indication, alignment, text-indent */
-#bodycol h2 {
- font-family: Tahoma, Verdana, Helvetica, Arial, sans-serif;
- font-size: 1.5em;
- font-weight: normal;
-}
-
-/* box properties (exclusive of borders), positioning, alignments, list types, text-indent */
-#toptabs {
- margin: 0;
- padding-top: .67em;
- padding-left: 8px;
-}
-
-#topmodule {
- margin: -4px -4px 0 -4px;
-}
-
-#topmodule td {
- vertical-align: middle;
- padding: 2px 8px;
-}
-
-#navcolumn {
- margin-right: -4px;
-}
-
-#mytools .body, #projecttools .body, #admintools .body, #communitytools .body {
- padding-top: .33em;
-}
-
-#mytools, #projecttools, #admintools, #communitytools {
- padding: 0 6px 6px 6px;
- margin: -4px 0 6px -4px;
-}
-
-#mytools .label, #projecttools .label, #admintools .label, #communitytools .label {
- padding-left: 2px;
-}
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/css/ns4_only.css b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/css/ns4_only.css
deleted file mode 100644
index 274e0a397..000000000
--- a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/css/ns4_only.css
+++ /dev/null
@@ -1,254 +0,0 @@
-/* $Id$
-
-simple rules suitable for Netscape 4.x only; richer rules are in tigris.css. see */
-
-/* colors, backgrounds, borders, link indication */
-
-body {
- background: #fff;
- color: #000;
- }
-#leftcol a:link, #leftcol a:visited {
- color: blue;
- }
-a:active, a:hover, #leftcol a:active, #leftcol a:hover {
- color: #f30;
- }
-#login a:link, #login a:visited {
- color: white;
- text-decoration: underline;
- }
-#banner a:active, #banner a:hover {
- color: #f90;
- }
-#leftcol a, #breadcrumbs a {
- text-decoration: none;
- }
-#apphead h2 em {
- color: #777
- }
-.a td {
- background: #ddd;
- }
-.b td {
- background: #efefef;
- }
-.tabs th {
- background-color: #ddd;
- color: #fff;
- }
-.tabs td {
- background-color: #666;
- }
-.tabs th, .tabs th a:link, .tabs th a:visited {
- color: #333;
- }
-.tabs td, .tabs td a:link, .tabs td a:visited {
- color: #fff;
- }
-.app th {
- background-color: #bbb;
- }
-.app .axial th {
- background-color: #ddd;
- color: black
- }
-.alert {
- color: #c00;
- }
-.confirm {
- color: green;
- }
-.info {
- color: blue;
- }
-.selection {
- background: #ffc;
- }
-#login {
- color: #fff;
- }
-#banner, #banner td {
- background: #036;
- color: #fff;
- }
-body #banner #login a {
- color: white;
- }
-.cvsdiff, .cvsblame {
- background-color: #ccc;
- }
-.cvsdiffadd {
- background-color: #afa;
- }
-.cvsdiffremove {
- background-color: #faa;
- }
-.cvsdiffchanges1 {
- background-color: #ff7;
- }
-.cvsdiffchanges2 {
- background-color: #ff7;
- }
-.band1 {
- color: #fff;
- background-color: #663;
-}
-
-.band2 {
- color: #fff;
- background-color: #66C;
-}
-
-.band3 {
- background-color: #C99;
-}
-
-.band4 {
- background-color: #CFF;
-}
-
-.band5 {
- color: #fff;
- background-color: #336;
-}
-
-.band6 {
- color: #fff;
- background-color: #966;
-}
-
-.band7 {
- background-color: #9CC;
-}
-
-.band8 {
- background-color: #FFC;
-}
-
-.band9 {
- color: #fff;
- background-color: #633;
-}
-
-.band10 {
- color: #fff;
- background-color: #699;
-}
-
-.band11 {
- background-color: #CC9;
-}
-
-.band12 {
- background-color: #CCF;
-}
-
-.band13 {
- color: #fff;
- background-color: #366;
-}
-
-.band14 {
- color: #fff;
- background-color: #996;
-}
-
-.band15 {
- background-color: #99C;
-}
-
-.band16 {
- background-color: #FCC;
-}
-
-
-
-/* font and text properties, exclusive of link indication, alignment, text-indent */
-
-body, div, p, th, td, li, dl, dd {
- font-family: Lucida, Arial, Helvetica, sans-serif;
- }
-code, pre {
- font-family: 'Andale Mono', Courier, monospace;
- }
-h2, h3, h4 {
- font-family: Tahoma, Verdana, Helvetica, Arial, sans-serif;
- }
-.selection {
- font-weight: bold
- }
-#login .username {
- font-weight: bold;
- }
-#apphead h2 em {
- font-style: normal;
- }
-.tabs th {
- font-weight: bold
- }
-
-/* box properties (exclusive of borders), positioning, alignments, list types, text-indent */
-
-th, td {
- text-align: left;
- vertical-align: top
- }
-.right {
- text-align: right;
- }
-.center {
- text-align: center;
- }
-body .app .axial th {
- text-align: right;
- }
-.app .axial td th {
- text-align: left;
- }
-body td .stb {
- margin-top: 1em;
- text-indent: 0;
- }
-body td .mtb {
- margin-top: 2em;
- text-indent: 0;
- }
-dd {
- margin-bottom: .67em;
- }
-#footer, #breadcrumbs {
- margin: 4px
- }
-.courtesylinks {
- margin-top: 1em;
- padding-top: 1em
- }
-#navcolumn .toolgroup {
- margin-bottom: 1em;
- margin-left: 4px;
- }
-#navcolumn .body div {
- margin-top: .3em;
- padding-left: 1em;
- }
-#banner, #banner td {
- vertical-align: middle;
- }
-body.docs, body.nonav {
- margin: 1em
- }
-.tier1 { margin-left: 0 }
-.tier2 { margin-left: 1.5em }
-.tier3 { margin-left: 3em }
-.tier4 { margin-left: 4.5em }
-.tier5 { margin-left: 6em }
-.tier6 { margin-left: 7.5em }
-.tier7 { margin-left: 9em }
-.tier8 { margin-left: 10.5em }
-.tier9 { margin-left: 12em }
-.tier10 { margin-left: 13.5em }
-
-.messagechild {
- padding-left: 34px;
-}
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/css/print.css b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/css/print.css
deleted file mode 100644
index b08e30242..000000000
--- a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/css/print.css
+++ /dev/null
@@ -1,9 +0,0 @@
-/* $Id$ */
-
-#banner, #footer, #leftcol, #breadcrumbs, .docs #toc, .docs .courtesylinks {
- display: none;
- }
-body.docs div.docs {
- margin: 0 !important;
- border: none !important
- }
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/css/tigris.css b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/css/tigris.css
deleted file mode 100644
index 8adb0fc4b..000000000
--- a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/css/tigris.css
+++ /dev/null
@@ -1,797 +0,0 @@
-/* $Id$
-
- This file defines basic default formatting for HTML conforming to Tigris application style. To extend or override these rules for your instance, edit inst.css instead of this file. */
-
-/* colors, backgrounds, borders, link indication */
-body {
- background: #fff;
- color: #000;
-}
-
-.app h3, .app h4, .tabs td, .tabs th, .functnbar {
- background-image: url(../images/nw_maj_rond.gif);
- background-repeat: no-repeat;
-}
-
-.functnbar, .functnbar2 {
- background-color: #aaa;
-}
-
-.functnbar2, .functnbar3 {
- background-color: #aaa;
- background-image: url(../images/sw_maj_rond.gif);
- background-repeat: no-repeat;
- background-position: bottom left;
-}
-
-.functnbar3 {
- background-color: #ddd;
- background-image: url(../images/sw_med_rond.gif);
-}
-
-.functnbar, .functnbar2, .functnbar3 {
- color: #000;
-}
-
-.functnbar a, .functnbar2 a, .functnbar3 a {
- color: #000;
- text-decoration: underline;
-}
-
-#navcolumn .body div, body.docs #toc li li {
- background-image: url(../images/strich.gif);
- background-repeat: no-repeat;
- background-position: .5em .5em;
-}
-
-#searchbox .body div, #navcolumn .body .heading {
- background-image: none;
-}
-
-a:link, #navcolumn a:visited, .app a:visited, .tasknav a:visited {
- color: blue;
-}
-
-a:link.selfref, a:visited.selfref {
- color: #555 !important;
- text-decoration: none;
-}
-
-a:active, a:hover, #leftcol a:active, #leftcol a:hover {
- color: #f30 !important;
-}
-
-#leftcol a, #breadcrumbs a {
- text-decoration: none;
-}
-
-.app h3, .app h4 {
- color: #fff;
-}
-
-.app h3 {
- background-color: #333;
-}
-
-.app h3 a:link, .app h3 a:visited, .app h4 a:link, .app h4 a:visited {
- color: #fff !important;
- text-decoration: underline;
-}
-
-.app h4 {
- background-color: #888;
-}
-
-.a td {
- background: #ddd;
-}
-
-.b td {
- background: #efefef;
-}
-
-.warning td {
- background: #cc0000;
-}
-
-table, th, td {
- border: none;
-}
-
-div.colbar {
- background: #eee;
- border-color: #999 #EEE #EEE #999;
- border-width: 1px;
- border-style: solid;
-}
-
-.toolgroup {
- background: #efefef;
-}
-
-.toolgroup .label {
- border-bottom: 1px solid #666;
- border-right: 1px solid #666;
- background: #ddd;
- color: #555;
-}
-
-.toolgroup .body {
- border-right: 1px solid #aaa;
- border-bottom: 1px solid #aaa;
-}
-
-#breadcrumbs {
- border-top: 1px solid #fff;
- background-color: #ccc;
-}
-
-#main {
- border-top: 1px solid #999;
-}
-
-#rightcol div.www, #rightcol div.help {
- border: 1px solid #ddd;
-}
-
-body.docs div.docs {
- background-color: #fff;
- border-left: 1px solid #ddd;
- border-top: 1px solid #ddd;
-}
-
-#helptext .label {
- background-image: url(../images/icon_help_sml.gif);
- background-repeat: no-repeat;
- background-position: 97%;
-}
-
-body.docs {
- background: #eee url(../images/help_logo.gif) top right no-repeat !important;
-}
-
-.docs h3, .docs h4 {
- border-top: solid 1px #000;
-}
-
-#apphead h2 em {
- color: #777;
-}
-
-.app th {
- background-color: #bbb;
-}
-
-.tabs th {
- border-right: 1px solid #333;
- background-color: #ddd;
- color: #fff;
- border-left: 1px solid #fff;
-}
-
-.tabs td {
- background-color: #999;
- border-bottom: 1px solid #fff;
- border-right: 1px solid #fff;
- border-left: 1px solid #fff;
-}
-
-.tabs {
- border-bottom: 6px #ddd solid;
-}
-
-.tabs th, .tabs th a:link, .tabs th a:visited {
- color: #555;
-}
-
-.tabs td, .tabs td a:link, .tabs td a:visited {
- color: #fff;
-}
-
-.tabs a {
- text-decoration: none;
-}
-
-.axial th {
- background-color: #ddd;
- color: black;
-}
-
-.alert {
- background-color: #ff9;
-}
-
-.expandedwaste {
- background: url(../images/icon_arrowwaste2_sml.gif) no-repeat;
-}
-
-.collapsedwaste {
- background: url(../images/icon_arrowwaste1_sml.gif) no-repeat;
-}
-
-.filebrowse .expanded, .filebrowse-alt .expanded {
- background-image: url(../images/icon_arrowfolderopen2_sml.gif);
- background-repeat: no-repeat;
-}
-
-.filebrowse .collapsed, .filebrowse-alt .collapsed {
- background-image: url(../images/icon_arrowfolderclosed1_sml.gif);
- background-repeat: no-repeat;
-}
-
-.filebrowse .leafnode, .filebrowse-alt .leafnode {
- background-image: url(../images/icon_folder_sml.gif);
- background-repeat: no-repeat;
-}
-
-.filebrowse .leaf, .filebrowse-alt .leaf {
- background-image: url(../images/icon_doc_sml.gif);
- background-repeat: no-repeat;
-}
-
-.sortup {
- background: url(../images/icon_sortup.gif) no-repeat;
-}
-
-.sortdown {
- background: url(../images/icon_sortdown.gif) no-repeat;
-}
-
-.collapsedwaste {
- background: url(../images/icon_arrowwaste1_sml.gif) no-repeat;
-}
-
-body .grid td {
- border-top: 1px solid #ccc;
- border-left: 1px solid #ccc;
- background-color: transparent;
-}
-
-.confirm {
- color: #090;
-}
-
-.info {
- color: #069;
-}
-
-.errormessage, .warningmessage, .donemessage, .infomessage {
- border-top: 5px solid #900;
- border-left: 1px solid #900;
- background-image: url(../images/icon_error_lrg.gif);
- background-repeat: no-repeat;
- background-position: 5px 1.33em;
-}
-
-.warningmessage {
- background-image: url(../images/icon_warning_lrg.gif);
- border-color: #c60;
-}
-
-.donemessage {
- background-image: url(../images/icon_success_lrg.gif);
- border-color: #090;
-}
-
-.infomessage {
- background-image: url(../images/icon_info_lrg.gif);
- border-color: #069;
-}
-
-.docinfo {
- background: url(../images/icon_doc_lrg.gif) no-repeat;
-}
-
-.dirinfo {
- background: url(../images/icon_folder_lrg.gif) no-repeat;
-}
-
-.memberinfo {
- background: url(../images/icon_members_lrg.gif) no-repeat;
-}
-
-.usergroupinfo {
- background: url(../images/icon_usergroups_lrg.gif) no-repeat;
-}
-
-.errormark, .warningmark, .donemark, .infomark {
- background: url(../images/icon_error_sml.gif) no-repeat;
-}
-
-.warningmark {
- background-image: url(../images/icon_warning_sml.gif);
-}
-
-.donemark {
- background-image: url(../images/icon_success_sml.gif);
-}
-
-.infomark {
- background-image: url(../images/icon_info_sml.gif);
-}
-
-.cvsdiff, .cvsblame {
- background-color: #ccc;
-}
-
-.cvsdiffadd {
- background-color: #afa;
-}
-
-.cvsdiffremove {
- background-color: #faa;
-}
-
-.cvsdiffchanges1 {
- background-color: #ff7;
-}
-
-.cvsdiffchanges2 {
- background-color: #ff7;
-}
-
-li.selection ul a {
- background: #fff;
-}
-
-.band1 {
- color: #fff;
- background-color: #663;
-}
-
-.band2 {
- color: #fff;
- background-color: #66C;
-}
-
-.band3 {
- background-color: #C99;
-}
-
-.band4 {
- background-color: #CFF;
-}
-
-.band5 {
- color: #fff;
- background-color: #336;
-}
-
-.band6 {
- color: #fff;
- background-color: #966;
-}
-
-.band7 {
- background-color: #9CC;
-}
-
-.band8 {
- background-color: #FFC;
-}
-
-.band9 {
- color: #fff;
- background-color: #633;
-}
-
-.band10 {
- color: #fff;
- background-color: #699;
-}
-
-.band11 {
- background-color: #CC9;
-}
-
-.band12 {
- background-color: #CCF;
-}
-
-.band13 {
- color: #fff;
- background-color: #366;
-}
-
-.band14 {
- color: #fff;
- background-color: #996;
-}
-
-.band15 {
- background-color: #99C;
-}
-
-.band16 {
- background-color: #FCC;
-}
-
-.app .helplink, #helptext .helplink {
- cursor: help;
-}
-
-.legend th, .bars th {
- background-color: #fff;
-}
-
-/* font and text properties, exclusive of link indication, alignment, text-indent */
-body, th, td, input, select {
- font-family: Verdana, Helvetica, Arial, sans-serif;
-}
-
-code, pre {
- font-family: 'Andale Mono', Courier, monospace;
-}
-
-body, .app h3, .app h4, #rightcol h3, pre, code, #apphead h2 small {
- font-size: x-small;
- voice-family: "\"}\"";
- voice-family: inherit;
- font-size: small;
-}
-
-small, div#footer, div#login, div.tabs th, div.tabs td, input, select, .paginate, .functnbar, .functnbar2, .functnbar3, #breadcrumbs, .courtesylinks, #rightcol div.help, .colbar, .tasknav, body.docs div#toc, #leftcol, .legend, .bars {
- font-size: xx-small;
- voice-family: "\"}\"";
- voice-family: inherit;
- font-size: x-small;
-}
-
-.tabs td, .tabs th, dt, .tasknav .selfref, #login .username, .selection {
- font-weight: bold;
-}
-
-li.selection ul {
- font-weight: normal;
-}
-
-h4, table {
- font-size: 1em;
-}
-
-#apphead h2 em {
- font-style: normal;
-}
-
-#banner h1 {
- font-size: 1.25em;
-}
-
-/* box properties (exclusive of borders), positioning, alignments, list types, text-indent */
-#bodycol h2 {
- margin-top: .3em;
- margin-bottom: .5em;
-}
-
-p, ul, ol, dl, .bars table {
- margin-top: .67em;
- margin-bottom: .67em;
-}
-
-h3, h4 {
- margin-bottom: 0;
-}
-
-form {
- margin: 0;
-}
-
-#bodycol {
- padding-left: 12px;
- padding-right: 12px;
- width: 100%;
- voice-family: "\"}\"";
- voice-family: inherit;
- width: auto;
-}
-
-html>body #bodycol {
- width: auto;
-}
-
-.docs {
- line-height: 1.4;
-}
-
-ol ol {
- list-style-type: lower-alpha;
-}
-
-ol ol ol {
- list-style-type: lower-roman;
-}
-
-.app h3, .app h4 {
- padding: 5px;
- margin-right: 2px;
- margin-left: 2px;
-}
-
-.app td, .app th {
- padding: 2px 3px;
-}
-
-.h3 p, .h4 p, .h3 dt, .h4 dt {
- margin-right: 7px;
- margin-left: 7px;
-}
-
-.tasknav {
- margin-bottom: 1.33em;
-}
-
-div.colbar {
- padding: 3px;
- margin: 2px 2px 0;
-}
-
-.tabs {
- margin-top: .67em;
- margin-right: 2px;
- margin-left: 2px;
- padding-left: 8px;
-}
-
-.tabs td, .tabs th {
- padding: 3px 9px;
-}
-
-#rightcol div.www, #rightcol div.help {
- padding: 0 .5em;
-}
-
-body.docs #toc {
- position: absolute;
- top: 15px;
- left: 0px;
- width: 120px;
- padding: 0 20px 0 0;
-}
-
-body.docs #toc ul, #toc ol {
- margin-left: 0;
- padding-left: 0;
-}
-
-body.docs #toc li {
- margin-top: 7px;
- padding-left: 10px;
- list-style-type: none;
-}
-
-body.docs div.docs {
- margin: 61px 0 0 150px;
- padding: 1em 2em 1em 1em !important;
-}
-
-.docs p+p {
- text-indent: 5%;
- margin-top: -.67em;
-}
-
-.docs h3, .docs h4 {
- margin-bottom: .1em;
- padding-top: .3em;
-}
-
-.functnbar, .functnbar2, .functnbar3 {
- padding: 5px;
- margin: .67em 2px;
-}
-
-.functnbar3 {
- margin-top: 0;
-}
-
-body {
- padding: 1em;
-}
-
-body.composite, body.docs {
- margin: 0;
- padding: 0;
-}
-
-th, td {
- text-align: left;
- vertical-align: top;
-}
-
-.right {
- text-align: right !important;
-}
-
-.center {
- text-align: center !important;
-}
-
-.axial th, .axial th .strut {
- text-align: right;
-}
-
-.app .axial td th {
- text-align: left;
-}
-
-body .stb {
- margin-top: 1em;
- text-indent: 0;
-}
-
-body .mtb {
- margin-top: 2em;
- text-indent: 0;
-}
-
-.courtesylinks {
- margin-top: 1em;
- padding-top: 1em;
-}
-
-dd {
- margin-bottom: .67em;
-}
-
-.toolgroup {
- margin-bottom: 6px;
-}
-
-.toolgroup .body {
- padding: 4px 4px 4px 0;
-}
-
-.toolgroup .label {
- padding: 4px;
-}
-
-.toolgroup .body div {
- padding-bottom: .3em;
- padding-left: 1em;
-}
-
-.toolgroup .body div div {
- margin-top: .3em;
- padding-bottom: 0;
-}
-
-.tier1 {
- margin-left: 0;
-}
-
-.tier2 {
- margin-left: 1.5em;
-}
-
-.tier3 {
- margin-left: 3em;
-}
-
-.tier4 {
- margin-left: 4.5em;
-}
-
-.tier5 {
- margin-left: 6em;
-}
-
-.tier6 {
- margin-left: 7.5em;
-}
-
-.tier7 {
- margin-left: 9em;
-}
-
-.tier8 {
- margin-left: 10.5em;
-}
-
-.tier9 {
- margin-left: 12em;
-}
-
-.tier10 {
- margin-left: 13.5em;
-}
-
-.filebrowse .expanded, .filebrowse .collapsed {
- padding-left: 34px;
-}
-
-.filebrowse .leafnode, .filebrowse .leaf {
- padding-left: 20px;
-}
-
-.messagechild {
- padding-left: 34px;
-}
-
-.filebrowse-alt .expanded, .filebrowse-alt .collapsed, .filebrowse-alt .leaf, .filebrowse-alt .leafnode, .expandedwaste, .collapsedwaste, .sortup, .sortdown {
- /* hide from macie5\*/
- float: left;
- /* resume */
- display: inline-block;
- height: 15px;
- width: 34px;
- padding-left: 0 !important;
-}
-
-.filebrowse-alt .leaf, .filebrowse-alt .leafnode, .sortup, .sortdown {
- width: 20px;
-}
-
-.filebrowse ul, .filebrowse-alt ul {
- list-style-type: none;
- padding-left: 0;
- margin-left: 0;
-}
-
-.filebrowse ul ul, .filebrowse-alt ul ul {
- margin-left: 1.5em;
- margin-top: 0;
- padding-top: .67em;
-}
-
-.filebrowse li, .filebrowse-alt li {
- margin-bottom: .67em;
-}
-
-td.filebrowse h3 {
- margin-top: 0;
-}
-
-.errormessage, .warningmessage, .donemessage, .infomessage, .docinfo, .dirinfo, .memberinfo, .usergroupinfo {
- margin: .67em 0;
- padding: .33em 0 .67em 42px;
- min-height: 32px;
-}
-
-.errormark, .warningmark, .donemark, .infomark {
- padding-left: 20px;
- min-height: 15px;
-}
-
-.alt {
- display: none;
-}
-
-#banner h1 {
- margin: 0;
-}
-
-#leftcol {
- width: 14em;
-}
-
-.axial th, .axial th .strut, #leftcol .strut {
- width: 12em;
-}
-
-#breadcrumbs {
- padding: 2px 8px;
-}
-
-.app h3, .app h4, .bars {
- clear: both;
-}
-
-.legend {
- float: right;
-}
-
-.legend th, .bars th {
- text-align: right;
- padding-left: 1em;
-}
-
-.bars table {
- table-layout: fixed;
-}
-
-.bars th {
- width: 12em;
-}
-
-#projectdocumentlist td.filebrowse-alt {
- padding-right: .75em;
-}
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/codehaus-small.png b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/codehaus-small.png
deleted file mode 100644
index d4b837187..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/codehaus-small.png and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/continuum_logo.png b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/continuum_logo.png
deleted file mode 100644
index 0559f4152..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/continuum_logo.png and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/corporate_logo.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/corporate_logo.gif
deleted file mode 100644
index b291fb7a7..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/corporate_logo.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/docorama.png b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/docorama.png
deleted file mode 100644
index 5635609d2..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/docorama.png and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/file.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/file.gif
deleted file mode 100644
index 72c13cc75..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/file.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/folder-closed.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/folder-closed.gif
deleted file mode 100644
index 2baed621d..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/folder-closed.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/folder-open.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/folder-open.gif
deleted file mode 100644
index 3955d19e5..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/folder-open.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/help_logo.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/help_logo.gif
deleted file mode 100644
index cc25c033e..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/help_logo.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_alert.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_alert.gif
deleted file mode 100644
index 4968bca45..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_alert.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_alertsml.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_alertsml.gif
deleted file mode 100644
index 641308d18..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_alertsml.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_arrowfolder1_sml.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_arrowfolder1_sml.gif
deleted file mode 100644
index 89408afae..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_arrowfolder1_sml.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_arrowfolder2_sml.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_arrowfolder2_sml.gif
deleted file mode 100644
index d9e7e1cf9..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_arrowfolder2_sml.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_arrowfolderclosed1_sml.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_arrowfolderclosed1_sml.gif
deleted file mode 100644
index c48e8b649..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_arrowfolderclosed1_sml.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_arrowfolderopen2_sml.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_arrowfolderopen2_sml.gif
deleted file mode 100644
index 477e327cb..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_arrowfolderopen2_sml.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_arrowmembers1_sml.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_arrowmembers1_sml.gif
deleted file mode 100644
index b4dea8301..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_arrowmembers1_sml.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_arrowmembers2_sml.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_arrowmembers2_sml.gif
deleted file mode 100644
index 0e743574f..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_arrowmembers2_sml.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_arrowusergroups1_sml.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_arrowusergroups1_sml.gif
deleted file mode 100644
index 5177959c3..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_arrowusergroups1_sml.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_arrowusergroups2_sml.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_arrowusergroups2_sml.gif
deleted file mode 100644
index 574bb4561..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_arrowusergroups2_sml.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_arrowwaste1_sml.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_arrowwaste1_sml.gif
deleted file mode 100644
index 25d75f73b..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_arrowwaste1_sml.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_arrowwaste2_sml.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_arrowwaste2_sml.gif
deleted file mode 100644
index 54dbf4259..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_arrowwaste2_sml.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_confirmsml.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_confirmsml.gif
deleted file mode 100644
index ca3c810bd..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_confirmsml.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_doc_lrg.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_doc_lrg.gif
deleted file mode 100644
index b4582671a..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_doc_lrg.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_doc_sml.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_doc_sml.gif
deleted file mode 100644
index 239bfaadb..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_doc_sml.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_error_lrg.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_error_lrg.gif
deleted file mode 100644
index fccffd17d..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_error_lrg.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_error_sml.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_error_sml.gif
deleted file mode 100644
index 61132ef2b..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_error_sml.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_folder_lrg.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_folder_lrg.gif
deleted file mode 100644
index 3683e75ce..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_folder_lrg.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_folder_sml.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_folder_sml.gif
deleted file mode 100644
index 8e26f89ab..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_folder_sml.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_help_lrg.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_help_lrg.gif
deleted file mode 100644
index c2162957f..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_help_lrg.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_help_sml.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_help_sml.gif
deleted file mode 100644
index 43bfd56ff..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_help_sml.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_info_lrg.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_info_lrg.gif
deleted file mode 100644
index b390fd4ac..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_info_lrg.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_info_sml.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_info_sml.gif
deleted file mode 100644
index c6cb9ad7c..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_info_sml.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_infosml.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_infosml.gif
deleted file mode 100644
index 1aa2d30ac..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_infosml.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_members_lrg.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_members_lrg.gif
deleted file mode 100644
index 7ba2df6b9..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_members_lrg.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_members_sml.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_members_sml.gif
deleted file mode 100644
index 997e6998f..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_members_sml.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_sortdown.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_sortdown.gif
deleted file mode 100644
index 9561bbe2a..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_sortdown.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_sortleft.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_sortleft.gif
deleted file mode 100644
index 4fd21e8c0..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_sortleft.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_sortright.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_sortright.gif
deleted file mode 100644
index ea8076e3e..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_sortright.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_sortup.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_sortup.gif
deleted file mode 100644
index 61942d6d1..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_sortup.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_success_lrg.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_success_lrg.gif
deleted file mode 100644
index 9af317d84..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_success_lrg.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_success_sml.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_success_sml.gif
deleted file mode 100644
index 52e85a430..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_success_sml.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_usergroups_lrg.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_usergroups_lrg.gif
deleted file mode 100644
index 3a4e35693..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_usergroups_lrg.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_usergroups_sml.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_usergroups_sml.gif
deleted file mode 100644
index 923610139..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_usergroups_sml.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_warning_lrg.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_warning_lrg.gif
deleted file mode 100644
index 83359d818..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_warning_lrg.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_warning_sml.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_warning_sml.gif
deleted file mode 100644
index 873bbb52c..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_warning_sml.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_waste_lrg.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_waste_lrg.gif
deleted file mode 100644
index e5434aa48..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_waste_lrg.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_waste_sml.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_waste_sml.gif
deleted file mode 100644
index 6dd046d46..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/icon_waste_sml.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/nw_maj.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/nw_maj.gif
deleted file mode 100644
index 452296b7b..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/nw_maj.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/nw_maj_hi.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/nw_maj_hi.gif
deleted file mode 100644
index 54c39336e..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/nw_maj_hi.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/nw_maj_rond.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/nw_maj_rond.gif
deleted file mode 100644
index add42a402..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/nw_maj_rond.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/nw_med.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/nw_med.gif
deleted file mode 100644
index d2b6d91de..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/nw_med.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/nw_med_hi.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/nw_med_hi.gif
deleted file mode 100644
index 0c2db4cf6..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/nw_med_hi.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/nw_med_rond.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/nw_med_rond.gif
deleted file mode 100644
index 8aaa564ef..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/nw_med_rond.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/nw_min.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/nw_min.gif
deleted file mode 100644
index bf4bc759c..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/nw_min.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/nw_min_036.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/nw_min_036.gif
deleted file mode 100644
index eb344a8fd..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/nw_min_036.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/nw_min_hi.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/nw_min_hi.gif
deleted file mode 100644
index a8a30abf4..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/nw_min_hi.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/poweredby_036.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/poweredby_036.gif
deleted file mode 100644
index 49d0345da..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/poweredby_036.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/product_logo.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/product_logo.gif
deleted file mode 100644
index 327b83886..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/product_logo.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/se_maj_rond.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/se_maj_rond.gif
deleted file mode 100644
index da2510e98..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/se_maj_rond.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/strich.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/strich.gif
deleted file mode 100644
index a33e79d96..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/strich.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/sw_maj_rond.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/sw_maj_rond.gif
deleted file mode 100644
index 110bdf4e3..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/sw_maj_rond.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/sw_med_rond.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/sw_med_rond.gif
deleted file mode 100644
index 6671c3d0d..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/sw_med_rond.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/sw_min.gif b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/sw_min.gif
deleted file mode 100644
index d96369d4e..000000000
Binary files a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/images/sw_min.gif and /dev/null differ
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/scripts/tigris.js b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/scripts/tigris.js
deleted file mode 100644
index 5c9bb152b..000000000
--- a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/scripts/tigris.js
+++ /dev/null
@@ -1,61 +0,0 @@
-// Write the Netscape 4-specific stylesheet.
-if (document.layers) {
- document.writeln('')
-}
-
-
-// Focus on user name input (the "loginform.loginID" field).
-function focus() {
- if (document.loginform) {
- document.loginform.loginID.focus();
- }
-}
-
-/* Open popup widows of (mostly) predetermined types.
-
- windowURL -- The URL to load in the new browser window.
- type -- The (predetermined) type of window to launch.
- acceptable values for type:
- 1: a help window
- 2: a 400x400 window
- 3: Issuezilla assignable users popup window
- ... and you can hard code others yourself inside the function.
- atts -- (optional) If the window you wish to create is unique and you do
- not want to set up a "type" for it, or if you want to pass
- additional attributes for a certain "type", you can pass its
- attributes directly to the function via this parameter.
-*/
-
-var tigrisPopupCounter = 0;
-
-function launch(windowURL, type, atts) {
- tigrisPopupCounter += 1;
-
- var windowName = 'SourceCast' + type;
- if (atts) {
- windowName += tigrisPopupCounter;
- }
-
- var windowAttributes;
- if (type == 1) {
- windowAttributes = 'resizable=yes,left=10,top=10,screenX=12,screenY=12,height=485,width=724,status=yes,scrollbars=yes,toolbar=yes,menubar=yes,location=yes'
- }
- else if (type == 2) {
- windowAttributes = 'resizable=yes,left=10,top=10,screenX=12,screenY=12,height=400,width=400';
- }
- else if (type == 3) {
- windowAttributes = 'resizable=yes,left=10,top=10,screenX=12,screenY=12,height=440,width=600,scrollbars=yes';
- }
- if (atts) {
- windowAttributes += ',' + atts;
- }
-
- var windowObj = window.open(windowURL, windowName, windowAttributes);
-
- if (windowObj) {
- return false;
- }
- else {
- return true;
- }
-}
diff --git a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/templates/CommonMacros.vm b/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/templates/CommonMacros.vm
deleted file mode 100644
index 058dfb27f..000000000
--- a/plexus-archetypes/plexus-application-view-web/src/main/resources/web/continuumweb/templates/CommonMacros.vm
+++ /dev/null
@@ -1,253 +0,0 @@
-#macro ( keyField $entity $label $key $value $help )
-
";
- }
-}
diff --git a/plexus-archetypes/plexus-archetype-webapp/src/main/resources/archetype-resources/src/main/java/HelloWorld.java b/plexus-archetypes/plexus-archetype-webapp/src/main/resources/archetype-resources/src/main/java/HelloWorld.java
deleted file mode 100644
index f647e8aec..000000000
--- a/plexus-archetypes/plexus-archetype-webapp/src/main/resources/archetype-resources/src/main/java/HelloWorld.java
+++ /dev/null
@@ -1,25 +0,0 @@
-package $package;
-
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServletResponse;
-import javax.servlet.http.HttpServletRequest;
-
-import org.codehaus.plexus.servlet.PlexusServlet;
-
-import java.io.IOException;
-import java.io.OutputStreamWriter;
-
-public class HelloWorld
- extends PlexusServlet
-{
- public void doGet(HttpServletRequest req, HttpServletResponse res)
- throws ServletException, IOException
- {
- if ( !hasComponent( Component.class.getName() ) )
- throw new ServletException("No component implementation available");
-
- Component component = (Component) lookup( Component.class.getName() );
-
- new OutputStreamWriter( res.getOutputStream() ).write( component.sayHello() );
- }
-}
diff --git a/plexus-archetypes/plexus-archetype-webapp/src/main/resources/archetype-resources/src/main/resources/META-INF/plexus/application.xml b/plexus-archetypes/plexus-archetype-webapp/src/main/resources/archetype-resources/src/main/resources/META-INF/plexus/application.xml
deleted file mode 100644
index 379925a99..000000000
--- a/plexus-archetypes/plexus-archetype-webapp/src/main/resources/archetype-resources/src/main/resources/META-INF/plexus/application.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
diff --git a/plexus-archetypes/plexus-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/plexus.xml b/plexus-archetypes/plexus-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/plexus.xml
deleted file mode 100644
index 339a976e3..000000000
--- a/plexus-archetypes/plexus-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/plexus.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-
-
diff --git a/plexus-archetypes/plexus-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml b/plexus-archetypes/plexus-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
deleted file mode 100644
index 81305c64e..000000000
--- a/plexus-archetypes/plexus-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-
-
- Plexus Test Webapp
-
-
- org.codehaus.plexus.servlet.PlexusServletContextListener
-
-
-
- HelloWorld
- ${package}.HelloWorld
-
-
-
- HelloWorld
- /HelloWorld
-
-
-
- HelloWorld
-
-
diff --git a/plexus-archetypes/plexus-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/index.jsp b/plexus-archetypes/plexus-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/index.jsp
deleted file mode 100644
index f6b07cb47..000000000
--- a/plexus-archetypes/plexus-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/index.jsp
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/plexus-archetypes/plexus-archetype-webwork-application/pom.xml b/plexus-archetypes/plexus-archetype-webwork-application/pom.xml
deleted file mode 100644
index c715045d7..000000000
--- a/plexus-archetypes/plexus-archetype-webwork-application/pom.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
- plexus-archetypes
- org.codehaus.plexus
- 1.0-alpha-1-SNAPSHOT
-
- 4.0.0
- plexus-archetype-webwork-application
- jar
- 1.0-alpha-1-SNAPSHOT
- Plexus Archetype Webwork Application
-
diff --git a/plexus-archetypes/plexus-archetype-webwork-application/src/main/resources/META-INF/archetype.xml b/plexus-archetypes/plexus-archetype-webwork-application/src/main/resources/META-INF/archetype.xml
deleted file mode 100644
index bc8e78c0a..000000000
--- a/plexus-archetypes/plexus-archetype-webwork-application/src/main/resources/META-INF/archetype.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
- plexus-archetype-webwork-application
-
- src/main/java/HelloWorld.java
- src/main/java/DefaultHelloWorld.java
- src/main/java/Person.java
-
-
-
- src/main/resources/META-INF/plexus/application.xml
- src/main/resources/webwork.properties
- src/main/resources/xwork.xml
- src/main/webapp/index.jsp
- src/main/webapp/success.jsp
- src/main/webapp/WEB-INF/plexus.xml
- src/main/webapp/WEB-INF/web.xml
-
-
diff --git a/plexus-archetypes/plexus-archetype-webwork-application/src/main/resources/archetype-resources/pom.xml b/plexus-archetypes/plexus-archetype-webwork-application/src/main/resources/archetype-resources/pom.xml
deleted file mode 100644
index 16dfdbdb5..000000000
--- a/plexus-archetypes/plexus-archetype-webwork-application/src/main/resources/archetype-resources/pom.xml
+++ /dev/null
@@ -1,57 +0,0 @@
-
- 4.0.0
- ${groupId}
- ${artifactId}
- ${version}
- war
-
-
- org.codehaus.plexus
- plexus-xwork-integration
- 1.0-alpha-2-SNAPSHOT
-
-
- junit
- junit
- 3.8.1
- test
-
-
-
-
-
- org.codehaus.plexus
- plexus-maven-plugin
-
-
-
- com.opensymphony.xwork.Action
- per-lookup
-
-
-
-
-
-
- descriptor
-
-
-
-
-
- org.mortbay.jetty
- maven-jetty-plugin
-
- 10
- /
-
-
- 9090
- 60000
-
-
-
-
-
-
-
diff --git a/plexus-archetypes/plexus-archetype-webwork-application/src/main/resources/archetype-resources/src/main/java/DefaultHelloWorld.java b/plexus-archetypes/plexus-archetype-webwork-application/src/main/resources/archetype-resources/src/main/java/DefaultHelloWorld.java
deleted file mode 100644
index cb4573ada..000000000
--- a/plexus-archetypes/plexus-archetype-webwork-application/src/main/resources/archetype-resources/src/main/java/DefaultHelloWorld.java
+++ /dev/null
@@ -1,35 +0,0 @@
-package $package;
-
-import com.opensymphony.xwork.ActionContext;
-import com.opensymphony.xwork.ActionSupport;
-
-import java.util.Map;
-
-/**
- * @plexus.component role="com.opensymphony.xwork.Action" role-hint="helloAction"
- */
-public class DefaultHelloWorld
- extends ActionSupport
- implements HelloWorld
-{
- public Person getPerson() {
- Map session = ActionContext.getContext().getSession();
-
- Person person = (Person) session.get( "person" );
-
- if ( person == null )
- {
- person = new Person();
-
- session.put( "person", person );
- }
-
- return person;
- }
-
- public String execute()
- throws Exception
- {
- return SUCCESS;
- }
-}
diff --git a/plexus-archetypes/plexus-archetype-webwork-application/src/main/resources/archetype-resources/src/main/java/HelloWorld.java b/plexus-archetypes/plexus-archetype-webwork-application/src/main/resources/archetype-resources/src/main/java/HelloWorld.java
deleted file mode 100644
index dfacd6b3d..000000000
--- a/plexus-archetypes/plexus-archetype-webwork-application/src/main/resources/archetype-resources/src/main/java/HelloWorld.java
+++ /dev/null
@@ -1,9 +0,0 @@
-package $package;
-
-/**
- *
- */
-public interface HelloWorld
-{
- Person getPerson();
-}
diff --git a/plexus-archetypes/plexus-archetype-webwork-application/src/main/resources/archetype-resources/src/main/java/Person.java b/plexus-archetypes/plexus-archetype-webwork-application/src/main/resources/archetype-resources/src/main/java/Person.java
deleted file mode 100644
index db4b18cd6..000000000
--- a/plexus-archetypes/plexus-archetype-webwork-application/src/main/resources/archetype-resources/src/main/java/Person.java
+++ /dev/null
@@ -1,31 +0,0 @@
-package $package;
-
-/**
- *
- */
-public class Person
-{
- String firstName = "World";
-
- String lastName;
-
- public String getFirstName()
- {
- return firstName;
- }
-
- public void setFirstName( String firstName )
- {
- this.firstName = firstName;
- }
-
- public String getLastName()
- {
- return lastName;
- }
-
- public void setLastName( String lastName )
- {
- this.lastName = lastName;
- }
-}
\ No newline at end of file
diff --git a/plexus-archetypes/plexus-archetype-webwork-application/src/main/resources/archetype-resources/src/main/resources/META-INF/plexus/application.xml b/plexus-archetypes/plexus-archetype-webwork-application/src/main/resources/archetype-resources/src/main/resources/META-INF/plexus/application.xml
deleted file mode 100644
index 379925a99..000000000
--- a/plexus-archetypes/plexus-archetype-webwork-application/src/main/resources/archetype-resources/src/main/resources/META-INF/plexus/application.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
diff --git a/plexus-archetypes/plexus-archetype-webwork-application/src/main/resources/archetype-resources/src/main/resources/webwork.properties b/plexus-archetypes/plexus-archetype-webwork-application/src/main/resources/archetype-resources/src/main/resources/webwork.properties
deleted file mode 100644
index 50bb4b873..000000000
--- a/plexus-archetypes/plexus-archetype-webwork-application/src/main/resources/archetype-resources/src/main/resources/webwork.properties
+++ /dev/null
@@ -1,21 +0,0 @@
-webwork.objectFactory = org.codehaus.plexus.xwork.PlexusObjectFactory
-#webwork.tag.altSyntax = true
-
-##################################
-# Theme
-##################################
-#webwork.ui.theme = default
-
-##################################
-# Locale
-##################################
-#webwork.locale=en_EN
-
-##################################
-# Upload
-##################################
-webwork.multipart.parser = jakarta
-# default saveDir is defined by javax.servlet.context.tempdir property
-#webwork.multipart.saveDir =
-# default max size is 2097152 (2MB)
-#webwork.multipart.maxSize =
diff --git a/plexus-archetypes/plexus-archetype-webwork-application/src/main/resources/archetype-resources/src/main/resources/xwork.xml b/plexus-archetypes/plexus-archetype-webwork-application/src/main/resources/archetype-resources/src/main/resources/xwork.xml
deleted file mode 100644
index 9650c8b1d..000000000
--- a/plexus-archetypes/plexus-archetype-webwork-application/src/main/resources/archetype-resources/src/main/resources/xwork.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- /success.jsp
-
-
-
-
-
-
diff --git a/plexus-archetypes/plexus-archetype-webwork-application/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/plexus.xml b/plexus-archetypes/plexus-archetype-webwork-application/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/plexus.xml
deleted file mode 100644
index 339a976e3..000000000
--- a/plexus-archetypes/plexus-archetype-webwork-application/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/plexus.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-
-
diff --git a/plexus-archetypes/plexus-archetype-webwork-application/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml b/plexus-archetypes/plexus-archetype-webwork-application/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
deleted file mode 100644
index ab0020508..000000000
--- a/plexus-archetypes/plexus-archetype-webwork-application/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-
-
- Plexus and WebWork Test App
-
-
- webwork
- com.opensymphony.webwork.dispatcher.FilterDispatcher
-
-
-
- webwork
- /*
-
-
-
- org.codehaus.plexus.xwork.PlexusLifecycleListener
-
-
-
- Index.action
-
-
diff --git a/plexus-archetypes/plexus-archetype-webwork-application/src/main/resources/archetype-resources/src/main/webapp/index.jsp b/plexus-archetypes/plexus-archetype-webwork-application/src/main/resources/archetype-resources/src/main/webapp/index.jsp
deleted file mode 100644
index b03023dbe..000000000
--- a/plexus-archetypes/plexus-archetype-webwork-application/src/main/resources/archetype-resources/src/main/webapp/index.jsp
+++ /dev/null
@@ -1,13 +0,0 @@
-<%@ taglib prefix="ww" uri="/webwork" %>
-
-
- Hello
-
-
-
-
-
-
-
-
-
diff --git a/plexus-archetypes/plexus-archetype-webwork-application/src/main/resources/archetype-resources/src/main/webapp/success.jsp b/plexus-archetypes/plexus-archetype-webwork-application/src/main/resources/archetype-resources/src/main/webapp/success.jsp
deleted file mode 100644
index e54cbff24..000000000
--- a/plexus-archetypes/plexus-archetype-webwork-application/src/main/resources/archetype-resources/src/main/webapp/success.jsp
+++ /dev/null
@@ -1,4 +0,0 @@
-<%@ taglib uri="/webwork" prefix="ww" %>
-
-Hello
-
diff --git a/plexus-archetypes/pom.xml b/plexus-archetypes/pom.xml
deleted file mode 100644
index 2687e3962..000000000
--- a/plexus-archetypes/pom.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
- 4.0.0
-
- plexus
- org.codehaus.plexus
- 1.0.8
-
- pom
- plexus-archetypes
- 1.0-alpha-1-SNAPSHOT
- Plexus Archetype
-
- plexus-application-view-web
- plexus-archetype-application
- plexus-archetype-component-simple
- plexus-archetype-runtime
- plexus-archetype-webwork-application
- plexus-archetype-webapp
-
-
diff --git a/plexus-avalon-components/activity/LICENSE.txt b/plexus-avalon-components/activity/LICENSE.txt
deleted file mode 100644
index a69a954da..000000000
--- a/plexus-avalon-components/activity/LICENSE.txt
+++ /dev/null
@@ -1,57 +0,0 @@
-
-
-/* ----------------------------------------------------------------------------
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 2000-2002 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * 3. The end-user documentation included with the redistribution, if
- * any, must include the following acknowlegement:
- * "This product includes software developed by the
- * Apache Software Foundation (http://www.apache.org/)."
- * Alternately, this acknowlegement may appear in the software itself,
- * if and wherever such third-party acknowlegements normally appear.
- *
- * 4. The names "The Jakarta Project", "Plexus", and "Apache Software
- * Foundation" must not be used to endorse or promote products derived
- * from this software without prior written permission. For written
- * permission, please contact apache@apache.org.
- *
- * 5. Products derived from this software may not be called "Apache"
- * nor may "Apache" appear in their names without prior written
- * permission of the Apache Group.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ----------------------------------------------------------------------------
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Apache Software Foundation. For more
- * information on the Apache Software Foundation, please see
- * .
- *
- * ----------------------------------------------------------------------------
- */
diff --git a/plexus-avalon-components/activity/pom.xml b/plexus-avalon-components/activity/pom.xml
deleted file mode 100644
index 9942fcc89..000000000
--- a/plexus-avalon-components/activity/pom.xml
+++ /dev/null
@@ -1,65 +0,0 @@
-
- 4.0.0
-
- plexus-components-avalon
- plexus
- 1.0.1-SNAPSHOT
-
- plexus-activity
- 1.0-beta-2-SNAPSHOT
- Plexus Activity Component
- Activity services that interact with templates.
-
-
- jvanzyl
- Jason van Zyl
- jason@zenplex.com
- Zenplex
-
- Architect
- Release Manager
-
-
-
- kaz
- Pete Kazmier
-
-
-
- Developer
-
-
-
- jtaylor
- James Taylor
- james@jamestaylor.org
-
-
- Developer
-
-
-
- dandiep
- Dan Diephouse
- dan@envoisolutions.com
- Envoi solutions
-
- Developer
-
-
-
-
-
- plexus
- plexus-summit
- 1.0-beta-2
- compile
-
-
- servletapi
- servletapi
- 2.3
- compile
-
-
-
diff --git a/plexus-avalon-components/activity/project.xml b/plexus-avalon-components/activity/project.xml
deleted file mode 100644
index a6703f10e..000000000
--- a/plexus-avalon-components/activity/project.xml
+++ /dev/null
@@ -1,70 +0,0 @@
-
-
- ${maven.repo.local}/plexus/poms/plexus-components-avalon-1.0.pom
- plexus-activity
- plexus-activity
- Activity Services
- 1.0-beta-1
- Activity services that interact with templates.
-
-
- Activity services that interact with templates.
-
-
-
-
- Jason van Zyl
- jvanzyl
- jason@zenplex.com
- Zenplex
-
- Architect
- Release Manager
-
-
-
- Pete Kazmier
- kaz
-
-
-
- Developer
-
-
-
- James Taylor
- jtaylor
- james@jamestaylor.org
-
-
- Developer
-
-
-
- Dan Diephouse
- dandiep
- dan@envoisolutions.com
- Envoi solutions
-
- Developer
-
-
-
-
-
-
-
- plexus
- plexus-summit
- 1.0-beta-2
-
-
-
- servletapi
- servletapi
- 2.3
-
-
-
-
-
diff --git a/plexus-avalon-components/activity/src/main/org/codehaus/plexus/summit/activity/ActionEventService.java b/plexus-avalon-components/activity/src/main/org/codehaus/plexus/summit/activity/ActionEventService.java
deleted file mode 100644
index 279c9e0c2..000000000
--- a/plexus-avalon-components/activity/src/main/org/codehaus/plexus/summit/activity/ActionEventService.java
+++ /dev/null
@@ -1,81 +0,0 @@
-package org.codehaus.plexus.summit.activity;
-
-/* ----------------------------------------------------------------------------
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 2000-2002 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * 3. The end-user documentation included with the redistribution, if
- * any, must include the following acknowlegement:
- * "This product includes software developed by the
- * Apache Software Foundation (http://www.apache.org/)."
- * Alternately, this acknowlegement may appear in the software itself,
- * if and wherever such third-party acknowlegements normally appear.
- *
- * 4. The names "The Jakarta Project", "Plexus", and "Apache Software
- * Foundation" must not be used to endorse or promote products derived
- * from this software without prior written permission. For written
- * permission, please contact apache@apache.org.
- *
- * 5. Products derived from this software may not be called "Apache"
- * nor may "Apache" appear in their names without prior written
- * permission of the Apache Group.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ----------------------------------------------------------------------------
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Apache Software Foundation. For more
- * information on the Apache Software Foundation, please see
- * .
- *
- * ----------------------------------------------------------------------------
- */
-
-import org.codehaus.plexus.summit.rundata.RunData;
-
-/**
- * ActionEventService provides a way for form actions to execute Java methods. It is
- * a service which inspects RunData and then executes a method. The way this
- * service does this is highly dependent on the implementation.
- *
- * @author Dan Diephouse
- * @since Mar 1, 2003
- */
-public interface ActionEventService
-{
- public static final String ROLE = ActionEventService.class.getName();
-
- /**
- * Perform actions using RunData to find out which actions to perform.
- * Each implementation will have its own way of doing this.
- *
- * @param data
- * @throws Exception
- */
- void perform( RunData data ) throws Exception;
-}
diff --git a/plexus-avalon-components/activity/src/main/org/codehaus/plexus/summit/activity/ActionEventValve.java b/plexus-avalon-components/activity/src/main/org/codehaus/plexus/summit/activity/ActionEventValve.java
deleted file mode 100644
index aaafac9c0..000000000
--- a/plexus-avalon-components/activity/src/main/org/codehaus/plexus/summit/activity/ActionEventValve.java
+++ /dev/null
@@ -1,100 +0,0 @@
-package org.codehaus.plexus.summit.activity;
-
-/* ----------------------------------------------------------------------------
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 2000-2002 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * 3. The end-user documentation included with the redistribution, if
- * any, must include the following acknowlegement:
- * "This product includes software developed by the
- * Apache Software Foundation (http://www.apache.org/)."
- * Alternately, this acknowlegement may appear in the software itself,
- * if and wherever such third-party acknowlegements normally appear.
- *
- * 4. The names "The Jakarta Project", "Plexus", and "Apache Software
- * Foundation" must not be used to endorse or promote products derived
- * from this software without prior written permission. For written
- * permission, please contact apache@apache.org.
- *
- * 5. Products derived from this software may not be called "Apache"
- * nor may "Apache" appear in their names without prior written
- * permission of the Apache Group.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ----------------------------------------------------------------------------
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Apache Software Foundation. For more
- * information on the Apache Software Foundation, please see
- * .
- *
- * ----------------------------------------------------------------------------
- */
-
-import java.io.IOException;
-
-import org.apache.avalon.framework.service.ServiceException;
-import org.codehaus.plexus.summit.exception.SummitException;
-import org.codehaus.plexus.summit.pipeline.valve.AbstractValve;
-import org.codehaus.plexus.summit.rundata.RunData;
-
-/**
- * Locates the ActionEventService and uses it to perform actions.
- *
- * @author Dan Diephouse
- * @since Mar 2, 2003
- */
-public class ActionEventValve
- extends AbstractValve
-{
-
- /**
- * @see org.codehaus.plexus.summit.pipeline.valve.Valve#invoke(RunData, ValveContext)
- */
- public void invoke( RunData data )
- throws IOException, SummitException
- {
- try
- {
- ActionEventService actionEvent = ( ActionEventService )
- data.getServiceManager().lookup( ActionEventService.ROLE );
-
- actionEvent.perform( data );
- }
- catch (ServiceException e)
- {
- throw new SummitException(
- "Could not find the ActionEvent service.", e );
- }
- catch (Exception e)
- {
- throw new SummitException(
- "There was a problem executing the action.", e );
- }
- }
-}
diff --git a/plexus-avalon-components/activity/src/main/org/codehaus/plexus/summit/activity/DefaultActionEventService.java b/plexus-avalon-components/activity/src/main/org/codehaus/plexus/summit/activity/DefaultActionEventService.java
deleted file mode 100644
index 64041583e..000000000
--- a/plexus-avalon-components/activity/src/main/org/codehaus/plexus/summit/activity/DefaultActionEventService.java
+++ /dev/null
@@ -1,347 +0,0 @@
-package org.codehaus.plexus.summit.activity;
-
-/* ----------------------------------------------------------------------------
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 2000-2002 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * 3. The end-user documentation included with the redistribution, if
- * any, must include the following acknowlegement:
- * "This product includes software developed by the
- * Apache Software Foundation (http://www.apache.org/)."
- * Alternately, this acknowlegement may appear in the software itself,
- * if and wherever such third-party acknowlegements normally appear.
- *
- * 4. The names "The Jakarta Project", "Plexus", and "Apache Software
- * Foundation" must not be used to endorse or promote products derived
- * from this software without prior written permission. For written
- * permission, please contact apache@apache.org.
- *
- * 5. Products derived from this software may not be called "Apache"
- * nor may "Apache" appear in their names without prior written
- * permission of the Apache Group.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ----------------------------------------------------------------------------
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Apache Software Foundation. For more
- * information on the Apache Software Foundation, please see
- * .
- *
- * ----------------------------------------------------------------------------
- */
-
-import java.lang.reflect.InvocationTargetException;
-import java.lang.reflect.Method;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import org.apache.avalon.framework.thread.ThreadSafe;
-import org.apache.avalon.framework.configuration.Configurable;
-import org.apache.avalon.framework.configuration.Configuration;
-import org.apache.avalon.framework.configuration.ConfigurationException;
-import org.codehaus.plexus.summit.exception.SummitRuntimeException;
-import org.codehaus.plexus.summit.rundata.RunData;
-import org.apache.avalon.framework.logger.AbstractLogEnabled;
-
-/**
- *
- * This service allows you to execute methods on action classes. Action classes
- * are just classes who follow the method naming conventions described below.
- * They do not need to inherit from any base class.
- *
- * Actions are looked for based on the "action" parameter in the
- * RequestParameters. The packages specified in the configuration are then
- * searched for this action. For example, if the action is "Order.Submit" and
- * we are to look in package "org.codehaus.plexus.summit.modules," the service
- * attempts to load "org.codehaus.plexus.summit.modules.Order.Submit" and execute
- * a method on.
- *
- * The method is specified with the submit button name. The name must be
- * prefixed with "eventSubmit_". For example, if the submit button is named
- * "eventSubmit_doMyaction" then this service tries to execute the method
- * "doMyaction" on the specified action.
- *
- *
Limitations:
- *
- *
- * Because ParameterParser makes all the key values lowercase, we have
- * to do some work to format the string into a method name. For
- * example, a button name eventSubmit_doDelete gets converted into
- * eventsubmit_dodelete. Thus, we need to form some sort of naming
- * convention so that dodelete can be turned into doDelete.
- *
- *
- * Thus, the convention is this:
- *
- *
- *
The variable name MUST have the prefix "eventSubmit_".
- *
The variable name after the prefix MUST begin with the letters
- * "do".
- *
The first letter after the "do" will be capitalized and the
- * rest will be lowercase
- *
- *
- * If you follow these conventions, then you should be ok with your
- * method naming in your Action class.
- *
- * @author Dan Diephouse
- * @author Jon S. Stevens
- * @since Mar 1, 2003
- */
-public class DefaultActionEventService
- extends AbstractLogEnabled
- implements ActionEventService, Configurable, ThreadSafe
-{
- /** Whether or not the method name's case is folded. */
- private boolean foldCase;
-
- /** The configuration key determining the case folding. */
- protected static final String FOLD_CASE_KEY = "fold-method-case";
-
- /** The default case folding value. */
- protected static final boolean FOLD_CASE_DEFAULT = true;
-
- /** The default method to execute */
- protected static final String DEFAULT_METHOD = "doPerform";
-
- /** The name of the button to look for. */
- protected static final String BUTTON = "eventSubmit_";
-
- /** The length of the button to look for. */
- protected static final int BUTTON_LENGTH = BUTTON.length();
-
- /** The prefix of the method name. */
- protected static final String METHOD_NAME_PREFIX = "do";
-
- /** The length of the method name. */
- protected static final int METHOD_NAME_LENGTH = METHOD_NAME_PREFIX.length();
-
- List actionPackages;
-
- public DefaultActionEventService()
- {
- actionPackages = new ArrayList();
- }
-
- /**
- * @see org.apache.avalon.framework.configuration.Configurable#configure(org.apache.avalon.framework.configuration.Configuration)
- */
- public void configure(Configuration config) throws ConfigurationException
- {
- foldCase = config.getAttributeAsBoolean( FOLD_CASE_KEY,
- FOLD_CASE_DEFAULT );
-
- Configuration[] packages = config.getChild( "actionPackages" )
- .getChildren( "actionPackage" );
-
- // If the user does not define any modules, use the default package.
- if ( packages == null || packages.length == 0 )
- {
- actionPackages.add( "" );
- }
- else
- {
- for ( int i = 0; i < packages.length; i++ )
- {
- getLogger().info( "Adding package " + packages[i].getValue() );
- actionPackages.add( packages[i].getValue() );
- }
- }
- }
-
- /**
- * @see org.codehaus.plexus.summit.activity.ActionEventService#perform(org.codehaus.plexus.summit.rundata.RunData)
- */
- public void perform(RunData data) throws Exception
- {
- String action = data.getParameters().getString("action");
-
- if ( action != null )
- {
- String methodName = null;
- try
- {
- methodName = getMethodName( data, DEFAULT_METHOD );
-
- Class actionClass = getClass( action );
-
- Method method = getMethod( actionClass, data.getClass(), methodName, DEFAULT_METHOD );
-
- // The arguments to pass to the method to execute.
- Object[] args = new Object[1];
- args[0] = data;
-
- method.invoke( actionClass.newInstance(), args );
- }
- catch ( ClassNotFoundException e )
- {
- getLogger().debug( "Could not find the action.", e );
- }
- catch (InvocationTargetException ite)
- {
- // I have not seen this exception, in stacktraces generated
- // while doing my own testing on jdk1.3.1 and earlier. But
- // see it increasingly from stacktraces reported by others.
- // Its printStackTrace method should do The Right Thing, but
- // I suspect some implementation is not.
- // Unwrap it here, so that the original cause does not get lost.
- Throwable t = ite.getTargetException();
- if (t instanceof Exception)
- {
- throw (Exception)t;
- }
- else if (t instanceof java.lang.Error)
- {
- throw (java.lang.Error)t;
- }
- else
- {
- // this should not happen, but something could throw
- // an instance of Throwable
- throw new SummitRuntimeException("",t);
- }
- }
- }
- }
-
- /**
- * Find the method to execute for the action.
- *
- * @param methodName The name of the method.
- * @param actionClass The class which the method is on.
- * @return Method
- * @throws NoSuchMethodException
- */
- protected Method getMethod( Class actionClass,
- Class rundataClass,
- String methodName,
- String defaultName )
- throws NoSuchMethodException, ClassNotFoundException
- {
- // The arguments to the method to find.
- Class[] classes = new Class[1];
- classes[0] = rundataClass;
-
- try
- {
- return actionClass.getMethod(methodName, classes);
- }
- catch ( NoSuchMethodException e )
- {
- return actionClass.getMethod(defaultName, classes);
- }
- }
-
- /**
- * Find the appropriate method name to execute.
- *
- * @param data
- * @return String
- */
- protected String getMethodName( RunData data, String defaultName )
- {
- for ( Iterator iter = data.getParameters().keys(); iter.hasNext(); )
- {
- String key = (String) iter.next();
- if ( key.startsWith( BUTTON ) )
- {
- return formatString(key);
- }
- }
-
- return defaultName;
- }
-
- /**
- * This method does the conversion of the lowercase method name
- * into the proper case.
- *
- * @param input The unconverted method name.
- * @return A string with the method name in the proper case.
- */
- protected final String formatString(String input)
- {
- String methodName = input;
-
- if ( foldCase )
- {
- methodName =
- methodName.substring(BUTTON_LENGTH + METHOD_NAME_LENGTH);
-
- return (METHOD_NAME_PREFIX + firstLetterCaps(methodName));
- }
- else
- {
- return methodName.substring(BUTTON_LENGTH);
- }
- }
-
- /**
- * Finds the class correspond to the action.
- *
- * @param action
- * @return Class
- */
- protected Class getClass(String action) throws ClassNotFoundException
- {
- for ( Iterator iter = actionPackages.iterator(); iter.hasNext(); )
- {
- // Try to load the action from the possible action packages.
- String actionPackage = (String) iter.next();
- try
- {
- Class actionClass =
- getClass().getClassLoader().loadClass(actionPackage +
- "." + action );
- return actionClass;
- }
- catch (ClassNotFoundException e)
- {
- // Continue on, it could be in another package.
- }
- }
- throw new ClassNotFoundException( "Could not find a class for action " +
- action + "." );
- }
-
-
- /**
- * Makes the first letter caps and the rest lowercase.
- *
- * @param data The input string.
- * @return A string with the described case.
- */
- protected final String firstLetterCaps( String data )
- {
- String firstLetter = data.substring(0, 1).toUpperCase();
- String restLetters = data.substring(1).toLowerCase();
- return firstLetter + restLetters;
- }
-}
diff --git a/plexus-avalon-components/activity/src/test/org/codehaus/plexus/summit/activity/DefaultActionEventTest.java b/plexus-avalon-components/activity/src/test/org/codehaus/plexus/summit/activity/DefaultActionEventTest.java
deleted file mode 100644
index de942fda5..000000000
--- a/plexus-avalon-components/activity/src/test/org/codehaus/plexus/summit/activity/DefaultActionEventTest.java
+++ /dev/null
@@ -1,64 +0,0 @@
-package org.codehaus.plexus.summit.activity;
-
-import java.lang.reflect.Method;
-
-import org.codehaus.plexus.PlexusTestCase;
-import org.codehaus.plexus.summit.rundata.RunData;
-
-/**
- * Tests the DefaultActionEvent service.
- *
- * @author Dan Diephouse
- * @since Mar 1, 2003
- */
-public class DefaultActionEventTest extends PlexusTestCase
-{
- DefaultActionEventService actionEvent;
-
- /**
- * @param name
- */
- public DefaultActionEventTest(String name)
- {
- super(name);
- }
-
- public void setUp() throws Exception
- {
- super.setUp();
-
- actionEvent = ( DefaultActionEventService ) lookup( ActionEventService.ROLE );
- }
-
- public void testMethodNaming() throws Exception
- {
- // Test template name to method name conversion
- String method = actionEvent.formatString( "eventSubmit_doMyMethod" );
-
- assertTrue( method.equals("doMymethod") );
- }
-
- public void testClassFinder() throws Exception
- {
- Class testClass = actionEvent.getClass( "activity.SomeAction" );
- Object someAction = testClass.newInstance();
-
- assertTrue( someAction instanceof SomeAction );
- }
-
- public void testMethodLookup() throws Exception
- {
- Class testClass = actionEvent.getClass( "activity.SomeAction" );
- Method myMethod = actionEvent.getMethod( testClass,
- RunData.class,
- "doMymethod",
- "doPerform" );
- assertTrue( myMethod.getName().equals("doMymethod") );
-
- myMethod = actionEvent.getMethod( testClass,
- RunData.class,
- "eventSubmit_doNoMethod",
- "doPerform" );
- assertTrue( myMethod.getName().equals("doPerform") );
- }
-}
diff --git a/plexus-avalon-components/activity/src/test/org/codehaus/plexus/summit/activity/DefaultActionEventTest.xml b/plexus-avalon-components/activity/src/test/org/codehaus/plexus/summit/activity/DefaultActionEventTest.xml
deleted file mode 100644
index d9c35073b..000000000
--- a/plexus-avalon-components/activity/src/test/org/codehaus/plexus/summit/activity/DefaultActionEventTest.xml
+++ /dev/null
@@ -1,52 +0,0 @@
-
-
-
-
- avalon
-
-
- avalon
- Avalon Lifecycle Handler
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- org.codehaus.plexus.summit.activity.ActionEventService
- org.codehaus.plexus.summit.activity.DefaultActionEventService
-
-
- org.codehaus.plexus.summit
-
-
-
-
-
-
diff --git a/plexus-avalon-components/activity/src/test/org/codehaus/plexus/summit/activity/SomeAction.java b/plexus-avalon-components/activity/src/test/org/codehaus/plexus/summit/activity/SomeAction.java
deleted file mode 100644
index 91725cebb..000000000
--- a/plexus-avalon-components/activity/src/test/org/codehaus/plexus/summit/activity/SomeAction.java
+++ /dev/null
@@ -1,22 +0,0 @@
-package org.codehaus.plexus.summit.activity;
-
-import org.codehaus.plexus.summit.rundata.RunData;
-
-/**
- * A class to test the DefaultActionEvent service with.
- *
- * @author Dan Diephouse
- * @since Mar 1, 2003
- */
-public class SomeAction
-{
- public void doPerform( RunData data )
- {
-
- }
-
- public void doMymethod( RunData data )
- {
-
- }
-}
diff --git a/plexus-avalon-components/formproc/LICENSE.txt b/plexus-avalon-components/formproc/LICENSE.txt
deleted file mode 100644
index a69a954da..000000000
--- a/plexus-avalon-components/formproc/LICENSE.txt
+++ /dev/null
@@ -1,57 +0,0 @@
-
-
-/* ----------------------------------------------------------------------------
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 2000-2002 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * 3. The end-user documentation included with the redistribution, if
- * any, must include the following acknowlegement:
- * "This product includes software developed by the
- * Apache Software Foundation (http://www.apache.org/)."
- * Alternately, this acknowlegement may appear in the software itself,
- * if and wherever such third-party acknowlegements normally appear.
- *
- * 4. The names "The Jakarta Project", "Plexus", and "Apache Software
- * Foundation" must not be used to endorse or promote products derived
- * from this software without prior written permission. For written
- * permission, please contact apache@apache.org.
- *
- * 5. Products derived from this software may not be called "Apache"
- * nor may "Apache" appear in their names without prior written
- * permission of the Apache Group.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ----------------------------------------------------------------------------
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Apache Software Foundation. For more
- * information on the Apache Software Foundation, please see
- * .
- *
- * ----------------------------------------------------------------------------
- */
diff --git a/plexus-avalon-components/formproc/pom.xml b/plexus-avalon-components/formproc/pom.xml
deleted file mode 100644
index 54a58473d..000000000
--- a/plexus-avalon-components/formproc/pom.xml
+++ /dev/null
@@ -1,54 +0,0 @@
-
- 4.0.0
-
- plexus-components-avalon
- plexus
- 1.0.1-SNAPSHOT
-
- plexus
- plexus-formproc
- 1.0-alpha-7-SNAPSHOT
- Plexus FormProc Component
-
-
- commons-logging
- commons-logging
- 1.0.2
-
-
- commons-vfs
- commons-vfs
- SNAPSHOT
-
-
- edenlib
- edenlib
- 1.3
-
-
- formproc
- formproc
- 1.3
-
-
- oro
- oro
- 2.0.6
-
-
- plexus
- plexus-pull
- 1.0-beta-2
-
-
- plexus
- plexus-summit
- 1.0-beta-2
-
-
- servletapi
- servletapi
- 2.3
-
-
-
diff --git a/plexus-avalon-components/formproc/project.xml b/plexus-avalon-components/formproc/project.xml
deleted file mode 100644
index 5021602c3..000000000
--- a/plexus-avalon-components/formproc/project.xml
+++ /dev/null
@@ -1,60 +0,0 @@
-
-
- ${maven.repo.local}/plexus/poms/plexus-components-avalon-1.0.pom
- plexus-formproc
- plexus-formproc
- Plexus FormProc Component
- 1.0-beta-1
-
-
-
-
- commons-logging
- commons-logging
- 1.0.2
-
-
-
- commons-vfs
- commons-vfs
- SNAPSHOT
-
-
-
- edenlib
- edenlib
- 1.3
-
-
-
- formproc
- formproc
- 1.3
-
-
-
- oro
- oro
- 2.0.6
-
-
-
- plexus
- plexus-summit
- 1.0-beta-2
-
-
-
- servletapi
- servletapi
- 2.3
-
-
-
-
-
- org.codehaus.plexus.formproc.DefaultFormProcService
-
-
-
-
diff --git a/plexus-avalon-components/formproc/src/main/org/codehaus/plexus/formproc/DefaultFormProcService.java b/plexus-avalon-components/formproc/src/main/org/codehaus/plexus/formproc/DefaultFormProcService.java
deleted file mode 100644
index 8c8e56bf1..000000000
--- a/plexus-avalon-components/formproc/src/main/org/codehaus/plexus/formproc/DefaultFormProcService.java
+++ /dev/null
@@ -1,58 +0,0 @@
-package org.codehaus.plexus.formproc;
-
-import java.io.File;
-
-import org.apache.avalon.framework.activity.Initializable;
-import org.apache.avalon.framework.configuration.Configurable;
-import org.apache.avalon.framework.configuration.Configuration;
-import org.apache.avalon.framework.configuration.ConfigurationException;
-import org.formproc.FormManager;
-
-/**
- * @author Dan Diephouse
- * @since May 15, 2003
- */
-public class DefaultFormProcService
- implements FormProcService, Configurable, Initializable
-{
- protected final static String CONFIGURATION = "formproc-config";
-
- private FormManager manager;
-
- private String configuration;
-
- /**
- * @see org.codehaus.plexus.formproc.FormProcService#getFormManager()
- */
- public FormManager getFormManager()
- {
- return manager;
- }
-
- /**
- * @see org.apache.avalon.framework.configuration.Configurable#configure(org.apache.avalon.framework.configuration.Configuration)
- */
- public void configure(Configuration config) throws ConfigurationException
- {
- configuration = config.getAttribute( CONFIGURATION, "formproc.xml" );
- }
-
- /**
- * @see org.apache.avalon.framework.activity.Initializable#initialize()
- */
- public void initialize() throws Exception
- {
- File configFile = new File( configuration );
-
- if ( configFile.exists() )
- {
- manager = new FormManager( configFile );
- }
- else
- {
- manager = new FormManager(
- getClass().getResourceAsStream( configuration ) );
- }
- }
-
-}
diff --git a/plexus-avalon-components/formproc/src/main/org/codehaus/plexus/formproc/FormProcService.java b/plexus-avalon-components/formproc/src/main/org/codehaus/plexus/formproc/FormProcService.java
deleted file mode 100644
index e56747c90..000000000
--- a/plexus-avalon-components/formproc/src/main/org/codehaus/plexus/formproc/FormProcService.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package org.codehaus.plexus.formproc;
-
-import org.formproc.FormManager;
-
-/**
- * @author Dan Diephouse
- * @since May 5, 2003
- */
-public interface FormProcService
-{
- final public static String ROLE = FormProcService.class.getName();
-
- FormManager getFormManager();
-}
diff --git a/plexus-avalon-components/formproc/src/main/org/codehaus/plexus/formproc/FormTool.java b/plexus-avalon-components/formproc/src/main/org/codehaus/plexus/formproc/FormTool.java
deleted file mode 100644
index 464d2fcbf..000000000
--- a/plexus-avalon-components/formproc/src/main/org/codehaus/plexus/formproc/FormTool.java
+++ /dev/null
@@ -1,123 +0,0 @@
-package org.codehaus.plexus.formproc;
-
-import org.apache.avalon.framework.service.ServiceException;
-import org.apache.avalon.framework.service.ServiceManager;
-import org.apache.avalon.framework.service.Serviceable;
-import org.codehaus.plexus.summit.SummitConstants;
-import org.codehaus.plexus.summit.pull.RequestTool;
-import org.codehaus.plexus.summit.rundata.RunData;
-import org.codehaus.plexus.summit.view.ViewContext;
-import org.formproc.Form;
-import org.formproc.FormManager;
-import org.formproc.FormResult;
-import org.formproc.servlet.HttpForm;
-
-/**
- * A template tool that provides easy access to FormProc.
- *
- * @author Dan Diephouse
- * @since May 15, 2003
- */
-public class FormTool
- implements RequestTool, Serviceable
-{
- private static final String FORM_KEY = "form";
-
- private ServiceManager manager;
-
- private RunData data;
-
- public HttpForm getForm()
- {
- HttpForm form;
-
- if ( data.getSession().getAttribute( FORM_KEY ) != null )
- {
- form = (HttpForm) data.getSession().getAttribute( FORM_KEY );
- }
- else
- {
- form = new HttpForm();
- data.getSession().setAttribute( FORM_KEY, form );
- }
- return form;
- }
-
- public HttpForm getForm( String name, Object target ) throws Exception
- {
- HttpForm form;
-
- if ( data.getSession().getAttribute( FORM_KEY ) != null )
- {
- form = (HttpForm) data.getSession().getAttribute( FORM_KEY );
- }
- else
- {
- form = new HttpForm();
- data.getSession().setAttribute( FORM_KEY, form );
- }
-
- form.setName(name);
- form.setTarget(target);
- configure( form );
-
- return form;
- }
-
- /**
- * When processing a form, this method will retrieve the value from the
- * FormResult (via getOriginalValue()). However, if there is no FormResult
- * yet (ie, a form that is modifying values on an object), it will return
- * the value that you specify.
- *
- * @param name
- * @param value
- * @return
- */
- public Object getValue( String name, Object value )
- {
- ViewContext context =
- (ViewContext) data.getMap().get( SummitConstants.VIEW_CONTEXT );
-
- if ( context.get( "results" ) != null )
- {
- FormResult result = (FormResult) context.get( "results" );
- return result.getOriginalValue( name );
- }
-
- return value;
- }
-
- public FormManager getFormManager() throws ServiceException
- {
- return ((FormProcService) manager.lookup(FormProcService.ROLE)).getFormManager();
- }
-
- public void configure( Form form ) throws Exception
- {
- getFormManager().configure( form );
- }
-
- /**
- * @see org.codehaus.plexus.summit.pull.RequestTool#setRunData(org.codehaus.plexus.summit.rundata.RunData)
- */
- public void setRunData(RunData data)
- {
- this.data = data;
- }
-
- /**
- * @see org.codehaus.plexus.summit.pull.RequestTool#refresh()
- */
- public void refresh()
- {
- }
-
- /**
- * @see org.apache.avalon.framework.service.Serviceable#service(org.apache.avalon.framework.service.ServiceManager)
- */
- public void service(ServiceManager manager) throws ServiceException
- {
- this.manager = manager;
- }
-}
diff --git a/plexus-avalon-components/formproc/src/test/org/codehaus/plexus/formproc/DefaultFormProcServiceTest.java b/plexus-avalon-components/formproc/src/test/org/codehaus/plexus/formproc/DefaultFormProcServiceTest.java
deleted file mode 100644
index 8296d4512..000000000
--- a/plexus-avalon-components/formproc/src/test/org/codehaus/plexus/formproc/DefaultFormProcServiceTest.java
+++ /dev/null
@@ -1,57 +0,0 @@
-package org.codehaus.plexus.formproc;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.codehaus.plexus.PlexusTestCase;
-import org.formproc.Form;
-import org.formproc.FormData;
-import org.formproc.FormManager;
-import org.formproc.FormResult;
-
-/**
- * TODO Document DefaultFormProcServiceTest
- *
- * @author Dan Diephouse
- * @since May 15, 2003
- */
-public class DefaultFormProcServiceTest
- extends PlexusTestCase
-{
- public DefaultFormProcServiceTest(String name)
- {
- super(name);
- }
-
- public void testService() throws Exception
- {
- FormProcService service = (FormProcService) lookup( FormProcService.ROLE );
-
- FormManager man = service.getFormManager();
-
- List values = new ArrayList();
- values.add( new FormData("firstName", "Dan"));
- values.add( new FormData("lastName", "Diephouse"));
- values.add( new FormData("age", "21"));
- values.add( new FormData("skill", "Obfuscator"));
-
- Form f = new Form( );
- f.setName( "test" );
- man.configure( f );
-
- FormResult result = f.process( values );
-
- if ( !result.isValid() )
- {
- System.out.println( result.getErrorOrMessage( "firstName") );
- System.out.println( result.getOriginalValue( "firstName") );
- System.out.println( result.getErrorOrMessage( "lastName") );
- System.out.println( result.getOriginalValue( "lastName") );
- System.out.println( result.getErrorOrMessage( "skill") );
- System.out.println( result.getOriginalValue( "skill") );
- fail( "Form wasn't valid." );
- }
-
- release(service);
- }
-}
diff --git a/plexus-avalon-components/formproc/src/test/org/codehaus/plexus/formproc/DefaultFormProcServiceTest.xml b/plexus-avalon-components/formproc/src/test/org/codehaus/plexus/formproc/DefaultFormProcServiceTest.xml
deleted file mode 100644
index d6e60c4cc..000000000
--- a/plexus-avalon-components/formproc/src/test/org/codehaus/plexus/formproc/DefaultFormProcServiceTest.xml
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
-
- avalon
-
-
- avalon
- Avalon Lifecycle Handler
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- org.codehaus.plexus.formproc.FormProcService
- org.codehaus.plexus.formproc.DefaultFormProcService
-
-
-
-
diff --git a/plexus-avalon-components/formproc/src/test/org/codehaus/plexus/formproc/example-form.xml b/plexus-avalon-components/formproc/src/test/org/codehaus/plexus/formproc/example-form.xml
deleted file mode 100644
index a0951b5dc..000000000
--- a/plexus-avalon-components/formproc/src/test/org/codehaus/plexus/formproc/example-form.xml
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
diff --git a/plexus-avalon-components/formproc/src/test/org/codehaus/plexus/formproc/formproc-include.xml b/plexus-avalon-components/formproc/src/test/org/codehaus/plexus/formproc/formproc-include.xml
deleted file mode 100644
index 1cfba458b..000000000
--- a/plexus-avalon-components/formproc/src/test/org/codehaus/plexus/formproc/formproc-include.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
-
-
-
-
- org.formproc.example.IsIntRule
- Valid number required
- L'âge valide a exigé.
-
-
- [1-9][0-9]*
- Age must be 1 or greater
-
-
-
-
-
\ No newline at end of file
diff --git a/plexus-avalon-components/formproc/src/test/org/codehaus/plexus/formproc/formproc.xml b/plexus-avalon-components/formproc/src/test/org/codehaus/plexus/formproc/formproc.xml
deleted file mode 100644
index aaa53cfcb..000000000
--- a/plexus-avalon-components/formproc/src/test/org/codehaus/plexus/formproc/formproc.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- .{1,}
- The field is required.
- Exig�e
-
-
-
-
-
-
-
-
-
-
diff --git a/plexus-avalon-components/hibernate/LICENSE.txt b/plexus-avalon-components/hibernate/LICENSE.txt
deleted file mode 100644
index a69a954da..000000000
--- a/plexus-avalon-components/hibernate/LICENSE.txt
+++ /dev/null
@@ -1,57 +0,0 @@
-
-
-/* ----------------------------------------------------------------------------
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 2000-2002 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * 3. The end-user documentation included with the redistribution, if
- * any, must include the following acknowlegement:
- * "This product includes software developed by the
- * Apache Software Foundation (http://www.apache.org/)."
- * Alternately, this acknowlegement may appear in the software itself,
- * if and wherever such third-party acknowlegements normally appear.
- *
- * 4. The names "The Jakarta Project", "Plexus", and "Apache Software
- * Foundation" must not be used to endorse or promote products derived
- * from this software without prior written permission. For written
- * permission, please contact apache@apache.org.
- *
- * 5. Products derived from this software may not be called "Apache"
- * nor may "Apache" appear in their names without prior written
- * permission of the Apache Group.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ----------------------------------------------------------------------------
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Apache Software Foundation. For more
- * information on the Apache Software Foundation, please see
- * .
- *
- * ----------------------------------------------------------------------------
- */
diff --git a/plexus-avalon-components/hibernate/pom.xml b/plexus-avalon-components/hibernate/pom.xml
deleted file mode 100644
index 848afc91f..000000000
--- a/plexus-avalon-components/hibernate/pom.xml
+++ /dev/null
@@ -1,72 +0,0 @@
-
- 4.0.0
-
- plexus-components-avalon
- plexus
- 1.0.1-SNAPSHOT
-
- plexus-jasf
- jar
- 0.5-SNAPSHOT
- Avalon Hibernate component
- 2002
-
-
- dandiep
- Dan Diephouse
- diephouse@envoisolutions.com
- Envoi Solutions
-
-
-
-
- commons-attributes
- commons-attributes-api
- 2.0alpha
-
-
- commons-collections
- commons-collections
- 2.1
-
-
- commons-digester
- commons-digester
- 1.2
-
-
- commons-logging
- commons-logging
- 1.0.2
-
-
- commons-beanutils
- commons-beanutils
- 1.6.1
-
-
- plexus
- plexus-summit
- 1.0-beta-2
-
-
- plexus
- plexus-activity
- 1.0-alpha-6
-
-
- qdox
- qdox
- 1.1
-
-
- servletapi
- servletapi
- 2.2
-
-
-
- Envoi Solutions
- http://envoisolutions.com
-
-
diff --git a/plexus-avalon-components/hibernate/project.xml b/plexus-avalon-components/hibernate/project.xml
deleted file mode 100644
index 037d88b1d..000000000
--- a/plexus-avalon-components/hibernate/project.xml
+++ /dev/null
@@ -1,79 +0,0 @@
-
-
- ${maven.repo.local}/plexus/poms/plexus-components-avalon-1.0.pom
- plexus-hibernate
- plexus-hibernate
- Plexus Hibernate Component
- 1.0-beta-2
-
-
-
-
- commons-lang
- commons-lang
- 1.0.1
-
-
-
- dom4j
- dom4j
- 1.4
-
-
-
- hibernate
- hibernate
- 2.0.3
-
-
-
- servletapi
- servletapi
- 2.3
-
-
-
-
- commons-logging
- commons-logging
- 1.0.3
-
-
-
- commons-beanutils
- commons-beanutils
- 1.6
-
-
-
- commons-collections
- commons-collections
- 3.0
-
-
-
- cglib
- cglib
- 1.0
-
-
-
- bcel
- bcel
- 5.0
-
-
-
- hsqldb
- hsqldb
- 1.7.1
-
-
-
-
-
- org.codehaus.plexus.hibernate.HibernateService
-
-
-
-
diff --git a/plexus-avalon-components/hibernate/src/main/META-INF/plexus/components.xml b/plexus-avalon-components/hibernate/src/main/META-INF/plexus/components.xml
deleted file mode 100644
index 902210b58..000000000
--- a/plexus-avalon-components/hibernate/src/main/META-INF/plexus/components.xml
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- avalon
- Avalon Lifecycle Handler
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- wasabi.service.Persister
- wasabi.service.impl.DefaultPersister
- per-lookup
- avalon
-
-
-
-
- org.codehaus.plexus.hibernate.HibernateSessionService
- org.codehaus.plexus.hibernate.DefaultHibernateSessionService
- singleton
- avalon
-
-
-
-
-
diff --git a/plexus-avalon-components/hibernate/src/main/org/codehaus/plexus/hibernate/DefaultHibernateService.java b/plexus-avalon-components/hibernate/src/main/org/codehaus/plexus/hibernate/DefaultHibernateService.java
deleted file mode 100644
index aed19f934..000000000
--- a/plexus-avalon-components/hibernate/src/main/org/codehaus/plexus/hibernate/DefaultHibernateService.java
+++ /dev/null
@@ -1,100 +0,0 @@
-package org.codehaus.plexus.hibernate;
-
-import java.util.Properties;
-
-import org.apache.avalon.framework.activity.Initializable;
-import org.apache.avalon.framework.configuration.Configurable;
-import org.apache.avalon.framework.configuration.Configuration;
-import org.apache.avalon.framework.configuration.ConfigurationException;
-import org.apache.avalon.framework.logger.AbstractLogEnabled;
-
-import net.sf.hibernate.HibernateException;
-import net.sf.hibernate.MappingException;
-import net.sf.hibernate.SessionFactory;
-
-/**
- * Hibernate service.
- *
- * @author Dan Diephouse
- * @since May 10, 2003
- */
-public class DefaultHibernateService
- extends AbstractLogEnabled
- implements HibernateService, Configurable, Initializable
-{
- SessionFactory sessionFactory;
- net.sf.hibernate.cfg.Configuration hibConfig;
-
- /**
- * @see org.codehaus.plexus.hibernate.HibernateService#getSessionFactory()
- */
- public SessionFactory getSessionFactory()
- {
- return sessionFactory;
- }
-
- /**
- * @see org.apache.avalon.framework.configuration.Configurable#configure(org.apache.avalon.framework.configuration.Configuration)
- */
- public void configure(Configuration config) throws ConfigurationException
- {
- hibConfig = new net.sf.hibernate.cfg.Configuration();
-
- String mapping = config.getAttribute( "mapping" );
- try
- {
- getLogger().debug("Configuration mapping " + mapping);
- hibConfig.configure( mapping );
- }
- catch (HibernateException e)
- {
- throw new ConfigurationException( "Mapping problem.", e );
- }
-
- Configuration[] classes = config.getChild( "classes" ).getChildren();
- if ( classes != null )
- {
- configureClasses( classes );
- }
-
- Configuration[] properties = config.getChild( "properties" ).getChildren();
- Properties props = new Properties();
- for ( int i = 0; i < properties.length; i++ )
- {
- props.setProperty( properties[i].getAttribute("name"),
- properties[i].getAttribute("value") );
- }
-
- hibConfig.addProperties( props );
- }
-
- private void configureClasses(Configuration[] classes) throws ConfigurationException
- {
- for ( int i = 0; i < classes.length; i++ )
- {
- try
- {
- hibConfig.addClass( Class.forName( classes[i].getValue() ) );
- }
- catch ( ClassNotFoundException e )
- {
- throw new ConfigurationException( "Could not find class "
- + classes[i].getValue(),
- e );
- }
- catch (MappingException e)
- {
- throw new ConfigurationException( "Mapping problem.", e );
- }
- }
- }
-
- /**
- * @see org.apache.avalon.framework.activity.Initializable#initialize()
- */
- public void initialize() throws Exception
- {
- getLogger().info( "Initializing Hibernate." );
- sessionFactory = hibConfig.buildSessionFactory();
- }
-}
diff --git a/plexus-avalon-components/hibernate/src/main/org/codehaus/plexus/hibernate/DefaultHibernateSessionService.java b/plexus-avalon-components/hibernate/src/main/org/codehaus/plexus/hibernate/DefaultHibernateSessionService.java
deleted file mode 100644
index 9e62785de..000000000
--- a/plexus-avalon-components/hibernate/src/main/org/codehaus/plexus/hibernate/DefaultHibernateSessionService.java
+++ /dev/null
@@ -1,112 +0,0 @@
-package org.codehaus.plexus.hibernate;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import net.sf.hibernate.HibernateException;
-import net.sf.hibernate.Session;
-import net.sf.hibernate.SessionFactory;
-
-import org.apache.avalon.framework.activity.Disposable;
-import org.apache.avalon.framework.activity.Initializable;
-import org.apache.avalon.framework.logger.AbstractLogEnabled;
-import org.apache.avalon.framework.service.ServiceException;
-import org.apache.avalon.framework.service.ServiceManager;
-import org.apache.avalon.framework.service.Serviceable;
-
-/**
- * @author Dan Diephouse
- * @since Nov 7, 2003
- */
-public class DefaultHibernateSessionService
- extends AbstractLogEnabled
- implements
- HibernateSessionService,
- Initializable,
- Disposable,
- Serviceable
-{
- private ServiceManager manager;
-
- private SessionFactory sessionFactory;
-
- private ThreadLocal session = new ThreadLocal();
-
- private List sessions;
-
- /**
- * @see org.codehaus.plexus.hibernate.HibernateSessionService#getSession()
- */
- public Session getSession() throws HibernateException
- {
- return currentSession();
- }
-
- /**
- * @see org.apache.avalon.framework.activity.Initializable#initialize()
- */
- public void initialize() throws Exception
- {
- HibernateService hib =
- (HibernateService) manager.lookup(HibernateService.ROLE);
-
- sessionFactory = hib.getSessionFactory();
-
- manager.release(hib);
-
- sessions = new ArrayList();
- }
-
- /**
- * @see org.apache.avalon.framework.activity.Disposable#dispose()
- */
- public void dispose()
- {
- for ( Iterator itr = sessions.iterator(); itr.hasNext(); )
- {
- Session s = (Session) itr.next();
- try
- {
- getLogger().info("Closing open hibernate session.");
- s.close();
- itr.remove();
- }
- catch (HibernateException e)
- {
- getLogger().error("Couldn't close session!", e);
- }
- }
- }
-
- /**
- * @see org.apache.avalon.framework.service.Serviceable#service(org.apache.avalon.framework.service.ServiceManager)
- */
- public void service(ServiceManager manager) throws ServiceException
- {
- this.manager = manager;
- }
-
- public Session currentSession() throws HibernateException
- {
- Session s = (Session) session.get();
- if (s == null)
- {
- s = sessionFactory.openSession();
- session.set(s);
- sessions.add(s);
- }
- return s;
- }
-
- public void closeSession() throws HibernateException
- {
- getLogger().info("Closing session for thread.");
-
- Session s = (Session) session.get();
- sessions.remove(s);
- session.set(null);
- if (s != null)
- s.close();
- }
-}
diff --git a/plexus-avalon-components/hibernate/src/main/org/codehaus/plexus/hibernate/HibernateService.java b/plexus-avalon-components/hibernate/src/main/org/codehaus/plexus/hibernate/HibernateService.java
deleted file mode 100644
index c9e4cf06f..000000000
--- a/plexus-avalon-components/hibernate/src/main/org/codehaus/plexus/hibernate/HibernateService.java
+++ /dev/null
@@ -1,16 +0,0 @@
-package org.codehaus.plexus.hibernate;
-
-import net.sf.hibernate.SessionFactory;
-
-/**
- * Service for Hibernate persistance manager.
- *
- * @author Dan Diephouse
- * @since Nov 7, 2003
- */
-public interface HibernateService
-{
- String ROLE = HibernateService.class.getName();
-
- SessionFactory getSessionFactory();
-}
diff --git a/plexus-avalon-components/hibernate/src/main/org/codehaus/plexus/hibernate/HibernateSessionService.java b/plexus-avalon-components/hibernate/src/main/org/codehaus/plexus/hibernate/HibernateSessionService.java
deleted file mode 100644
index 3fe43be11..000000000
--- a/plexus-avalon-components/hibernate/src/main/org/codehaus/plexus/hibernate/HibernateSessionService.java
+++ /dev/null
@@ -1,20 +0,0 @@
-package org.codehaus.plexus.hibernate;
-
-import net.sf.hibernate.HibernateException;
-import net.sf.hibernate.Session;
-
-/**
- * A service which starts and ends a hibernate session over its lifecycle.
- * By doing this we can optimize starts/ends of sessions.
- *
- * @author Dan Diephouse
- * @since Nov 7, 2003
- */
-public interface HibernateSessionService
-{
- final public static String ROLE = HibernateSessionService.class.getName();
-
- public Session getSession() throws HibernateException;
-
- public void closeSession() throws HibernateException;
-}
diff --git a/plexus-avalon-components/hibernate/src/main/org/codehaus/plexus/hibernate/ServletHibernateSessionService.java b/plexus-avalon-components/hibernate/src/main/org/codehaus/plexus/hibernate/ServletHibernateSessionService.java
deleted file mode 100644
index c8f1cf45b..000000000
--- a/plexus-avalon-components/hibernate/src/main/org/codehaus/plexus/hibernate/ServletHibernateSessionService.java
+++ /dev/null
@@ -1,40 +0,0 @@
-package org.codehaus.plexus.hibernate;
-
-import javax.servlet.http.HttpSessionEvent;
-import javax.servlet.http.HttpSessionListener;
-
-import net.sf.hibernate.HibernateException;
-
-import org.codehaus.plexus.hibernate.DefaultHibernateSessionService;
-
-/**
- * @author Dan Diephouse
- * @since Nov 7, 2003
- */
-public class ServletHibernateSessionService
- extends DefaultHibernateSessionService
- implements
- HttpSessionListener
-{
- /**
- * @see javax.servlet.http.HttpSessionListener#sessionCreated(javax.servlet.http.HttpSessionEvent)
- */
- public void sessionCreated(HttpSessionEvent arg0)
- {
- }
-
- /**
- * @see javax.servlet.http.HttpSessionListener#sessionDestroyed(javax.servlet.http.HttpSessionEvent)
- */
- public void sessionDestroyed(HttpSessionEvent session)
- {
- try
- {
- closeSession();
- }
- catch (HibernateException e)
- {
- throw new RuntimeException(e);
- }
- }
-}
diff --git a/plexus-avalon-components/hibernate/src/main/org/codehaus/plexus/hibernate/persister/AbstractPersistable.java b/plexus-avalon-components/hibernate/src/main/org/codehaus/plexus/hibernate/persister/AbstractPersistable.java
deleted file mode 100644
index 0c2ddd169..000000000
--- a/plexus-avalon-components/hibernate/src/main/org/codehaus/plexus/hibernate/persister/AbstractPersistable.java
+++ /dev/null
@@ -1,52 +0,0 @@
-package org.codehaus.plexus.hibernate.persister;
-
-/**
- * @author Dan Diephouse
- */
-public abstract class AbstractPersistable
- implements Persistable
-{
- private long id;
-
- public AbstractPersistable()
- {
- setId(-1);
- }
-
- public long getId()
- {
- return id;
- }
-
- public void setId(long id)
- {
- this.id = id;
- }
-
- public boolean equals(Object o)
- {
- if ( !(o instanceof Persistable) )
- {
- return false;
- }
-
- Persistable p = (Persistable) o;
-
- if ( p.getId() == this.getId() )
- {
- return true;
- }
-
- return false;
- }
-
- public int hashCode()
- {
- int hash = 7;
- int var_code = (int)(id ^ (id >>> 32));
-
- hash = 31 * hash + var_code;
-
- return hash;
- }
-}
diff --git a/plexus-avalon-components/hibernate/src/main/org/codehaus/plexus/hibernate/persister/DefaultPersister.java b/plexus-avalon-components/hibernate/src/main/org/codehaus/plexus/hibernate/persister/DefaultPersister.java
deleted file mode 100644
index 8371749ea..000000000
--- a/plexus-avalon-components/hibernate/src/main/org/codehaus/plexus/hibernate/persister/DefaultPersister.java
+++ /dev/null
@@ -1,180 +0,0 @@
-package org.codehaus.plexus.hibernate.persister;
-
-import java.util.List;
-
-import net.sf.hibernate.HibernateException;
-import net.sf.hibernate.ObjectNotFoundException;
-import net.sf.hibernate.Session;
-
-import org.apache.avalon.framework.activity.Disposable;
-import org.apache.avalon.framework.activity.Initializable;
-import org.apache.avalon.framework.logger.AbstractLogEnabled;
-import org.apache.avalon.framework.service.ServiceException;
-import org.apache.avalon.framework.service.ServiceManager;
-import org.apache.avalon.framework.service.Serviceable;
-import org.codehaus.plexus.hibernate.HibernateService;
-import org.codehaus.plexus.hibernate.HibernateSessionService;
-
-/**
- *
- * @author Dan Diephouse
- * @since May 14, 2003
- */
-public class DefaultPersister
- extends AbstractLogEnabled
- implements Persister, Serviceable, Disposable, Initializable
-{
-
- private Class clazz;
- private ServiceManager manager;
- private HibernateService hib;
-
- /**
- * @see org.apache.avalon.framework.service.Serviceable#service(org.apache.avalon.framework.service.ServiceManager)
- */
- public void service(ServiceManager manager) throws ServiceException
- {
- this.manager = manager;
- }
-
- /**
- * @see com.moveitthere.delivery.service.Persister#setClass(java.lang.Class)
- */
- public void setClass(Class clazz)
- {
- this.clazz = clazz;
- }
-
- protected Session getSession()
- throws HibernateException
- {
- HibernateSessionService hss;
- try
- {
- hss = (HibernateSessionService) manager.lookup(HibernateSessionService.ROLE);
- return hss.getSession();
- }
- catch (ServiceException e)
- {
- throw new RuntimeException( "Could not find the Hibernate service.", e );
- }
- }
-
- /**
- * @see com.moveitthere.delivery.service.Persister#save(java.lang.Object)
- */
- public void save(Object o)
- throws HibernateException
- {
- Session session = getSession();
- try
- {
- session.save( o );
- }
- finally
- {
- session.flush();
- }
- }
-
- /**
- * @see org.codehaus.plexus.hibernate.persister.Persister#update(org.codehaus.plexus.hibernate.persister.Persistable)
- */
- public void update(Persistable p) throws HibernateException
- {
- update( p, p.getId() );
- }
-
- /**
- * @see com.moveitthere.delivery.service.Persister#save(java.lang.Object)
- */
- public void update( Object o, long id ) throws HibernateException
- {
- Session session = getSession();
- try
- {
- session.update( o, new Long(id) );
- }
- finally
- {
- session.flush();
- }
-
- }
-
- /**
- * @see com.moveitthere.delivery.service.Persister#save(java.lang.Object)
- */
- public void saveOrUpdate( Object o ) throws HibernateException
- {
- Session session = getSession();
- try
- {
- session.saveOrUpdate(o);
- }
- finally
- {
- session.flush();
- }
- }
-
- /**
- * @see com.moveitthere.delivery.service.Persister#load(java.lang.Object)
- */
- public Object load( long id )
- throws HibernateException, ObjectNotFoundException
- {
- Session session = getSession();
- return session.load( clazz, new Long(id) );
- }
-
- /**
- * @see com.moveitthere.delivery.service.Persister#delete(java.lang.Object)
- */
- public void delete(Object o) throws HibernateException
- {
- Session session = getSession();
- try
- {
- session.delete( o );
- }
- finally
- {
- session.flush();
- }
- }
-
- /**
- * @see com.moveitthere.delivery.service.Persister#selectAll()
- */
- public List selectAll() throws HibernateException
- {
- Session session = getSession();
- return session.find( "from " + clazz.getName() + " as obj");
- }
-
- /**
- * @see org.apache.avalon.framework.activity.Disposable#dispose()
- */
- public void dispose()
- {
- manager.release( hib );
- }
-
- /**
- * @see org.apache.avalon.framework.activity.Initializable#initialize()
- */
- public void initialize() throws Exception
- {
- try
- {
- hib = (HibernateService) manager.lookup(HibernateService.ROLE);
- }
- catch (ServiceException e)
- {
- throw new RuntimeException( "Could not find the HibernateService.", e );
- }
- }
-
-
-}
diff --git a/plexus-avalon-components/hibernate/src/main/org/codehaus/plexus/hibernate/persister/Persistable.java b/plexus-avalon-components/hibernate/src/main/org/codehaus/plexus/hibernate/persister/Persistable.java
deleted file mode 100644
index a2707b573..000000000
--- a/plexus-avalon-components/hibernate/src/main/org/codehaus/plexus/hibernate/persister/Persistable.java
+++ /dev/null
@@ -1,11 +0,0 @@
-package org.codehaus.plexus.hibernate.persister;
-
-/**
- * A class that is persistable into the database.
- *
- * @author Dan Diephouse
- */
-public interface Persistable
-{
- public long getId();
-}
diff --git a/plexus-avalon-components/hibernate/src/main/org/codehaus/plexus/hibernate/persister/Persister.java b/plexus-avalon-components/hibernate/src/main/org/codehaus/plexus/hibernate/persister/Persister.java
deleted file mode 100644
index 1af02c216..000000000
--- a/plexus-avalon-components/hibernate/src/main/org/codehaus/plexus/hibernate/persister/Persister.java
+++ /dev/null
@@ -1,40 +0,0 @@
-package org.codehaus.plexus.hibernate.persister;
-
-import java.util.List;
-
-import net.sf.hibernate.HibernateException;
-import net.sf.hibernate.ObjectNotFoundException;
-
-/**
- * A Persister for objects that aren't tied to Hibernate.
- *
- * @author Dan Diephouse
- * @since May 12, 2003
- */
-public interface Persister
-{
- final public static String ROLE = Persister.class.getName();
-
- public void setClass( Class clazz );
-
- public void save( Object p )
- throws HibernateException;
-
- public void update( Persistable p )
- throws HibernateException;
-
- public void update( Object o, long id )
- throws HibernateException;
-
- public Object load( long id )
- throws HibernateException, ObjectNotFoundException;
-
- public void delete( Object p )
- throws HibernateException;
-
- public List selectAll()
- throws HibernateException;
-
- public void saveOrUpdate( Object p )
- throws HibernateException;
-}
diff --git a/plexus-avalon-components/hibernate/src/test/hibernate.cfg.xml b/plexus-avalon-components/hibernate/src/test/hibernate.cfg.xml
deleted file mode 100644
index eb65645a3..000000000
--- a/plexus-avalon-components/hibernate/src/test/hibernate.cfg.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
-
- true
- net.sf.hibernate.dialect.HSQLDialect
- org.hsqldb.jdbcDriver
- jdbc:hsqldb:.
- sa
-
- 10
-
-
-
diff --git a/plexus-avalon-components/hibernate/src/test/org/codehaus/plexus/hibernate/Child.java b/plexus-avalon-components/hibernate/src/test/org/codehaus/plexus/hibernate/Child.java
deleted file mode 100644
index 327e1f92d..000000000
--- a/plexus-avalon-components/hibernate/src/test/org/codehaus/plexus/hibernate/Child.java
+++ /dev/null
@@ -1,47 +0,0 @@
-package org.codehaus.plexus.hibernate;
-
-/*
- * LICENSE
- */
-
-/**
- * @author Mathias Bjerke
- * @version $Id$
- */
-public class Child {
-
- private long id;
- private String name;
- private long hufse;
-
- public Child() {
- }
-
- public Child(String name) {
- this.name = name;
- }
-
- public long getId() {
- return id;
- }
-
- public void setId(long id) {
- this.id = id;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public long getHufse() {
- return hufse;
- }
-
- public void setHufse(long hufse) {
- this.hufse = hufse;
- }
-}
diff --git a/plexus-avalon-components/hibernate/src/test/org/codehaus/plexus/hibernate/DefaultHibernateSessionServiceTest.java b/plexus-avalon-components/hibernate/src/test/org/codehaus/plexus/hibernate/DefaultHibernateSessionServiceTest.java
deleted file mode 100644
index 28e95c2d0..000000000
--- a/plexus-avalon-components/hibernate/src/test/org/codehaus/plexus/hibernate/DefaultHibernateSessionServiceTest.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package org.codehaus.plexus.hibernate;
-
-/*
- * LICENSE
- */
-
-import org.codehaus.plexus.PlexusTestCase;
-import net.sf.hibernate.cfg.Configuration;
-import net.sf.hibernate.Session;
-
-/**
- * @author Trygve Laugstøl
- * @version $Id$
- */
-public class DefaultHibernateSessionServiceTest extends PlexusTestCase {
- public DefaultHibernateSessionServiceTest(String name) {
- super(name);
- }
-
- public void testBasic() throws Exception {
- HibernateSessionService sessionService;
- Configuration config;
- Session session;
-
- sessionService = (HibernateSessionService)lookup(HibernateSessionService.ROLE);
- session = sessionService.getSession();
-
- session.save(new Parent());
-
- sessionService.closeSession();
- release(sessionService);
- }
-}
diff --git a/plexus-avalon-components/hibernate/src/test/org/codehaus/plexus/hibernate/DefaultHibernateSessionServiceTest.xml b/plexus-avalon-components/hibernate/src/test/org/codehaus/plexus/hibernate/DefaultHibernateSessionServiceTest.xml
deleted file mode 100644
index a8b00cb38..000000000
--- a/plexus-avalon-components/hibernate/src/test/org/codehaus/plexus/hibernate/DefaultHibernateSessionServiceTest.xml
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-
-
- avalon
-
-
- avalon
- Avalon Lifecycle Handler
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- org.codehaus.plexus.hibernate.HibernateSessionService
- org.codehaus.plexus.hibernate.DefaultHibernateSessionService
-
-
-
- org.codehaus.plexus.hibernate.HibernateService
- org.codehaus.plexus.hibernate.DefaultHibernateService
-
-
-
-
-
diff --git a/plexus-avalon-components/hibernate/src/test/org/codehaus/plexus/hibernate/Parent.java b/plexus-avalon-components/hibernate/src/test/org/codehaus/plexus/hibernate/Parent.java
deleted file mode 100644
index 3a3258922..000000000
--- a/plexus-avalon-components/hibernate/src/test/org/codehaus/plexus/hibernate/Parent.java
+++ /dev/null
@@ -1,34 +0,0 @@
-package org.codehaus.plexus.hibernate;
-
-/*
- * LICENSE
- */
-
-/**
- * @author Mathias Bjerke
- * @version $Id$
- */
-public class Parent {
-
- private long id;
- private Child[] children;
-
- public Parent() {
- }
-
- public long getId() {
- return id;
- }
-
- public void setId(long id) {
- this.id = id;
- }
-
- public Child[] getChildren() {
- return children;
- }
-
- public void setChildren(Child[] children) {
- this.children = children;
- }
-}
diff --git a/plexus-avalon-components/hibernate/src/test/org/codehaus/plexus/hibernate/Test.hbm.xml b/plexus-avalon-components/hibernate/src/test/org/codehaus/plexus/hibernate/Test.hbm.xml
deleted file mode 100644
index e24c5ec49..000000000
--- a/plexus-avalon-components/hibernate/src/test/org/codehaus/plexus/hibernate/Test.hbm.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/plexus-avalon-components/hibernate/src/test/org/codehaus/plexus/hibernate/persister/PersisterTest.java b/plexus-avalon-components/hibernate/src/test/org/codehaus/plexus/hibernate/persister/PersisterTest.java
deleted file mode 100644
index d9f232a6d..000000000
--- a/plexus-avalon-components/hibernate/src/test/org/codehaus/plexus/hibernate/persister/PersisterTest.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package org.codehaus.plexus.hibernate.persister;
-
-import junit.framework.TestCase;
-
-/**
- * PersisterTest
- *
- * @author Dan Diephouse
- */
-public class PersisterTest
- extends TestCase
-{
- public class PersistableA
- extends AbstractPersistable
- {
- }
-
- public void testEquivalence()
- {
- PersistableA a1 = new PersistableA();
- a1.setId(10);
-
- PersistableA a2 = new PersistableA();
- a2.setId(10);
-
- PersistableA a3 = new PersistableA();
- a3.setId(13);
-
- assertEquals(a1.hashCode(), a2.hashCode());
- assertEquals(a1, a2);
- assertEquals(a2, a1);
-
- assertNotSame( a1, a3 );
- assertNotSame( a3, a1 );
-
- assertTrue( a1.hashCode() != a3.hashCode() );
- }
-}
diff --git a/plexus-avalon-components/jasf/NOTES.txt b/plexus-avalon-components/jasf/NOTES.txt
deleted file mode 100644
index ece43484d..000000000
--- a/plexus-avalon-components/jasf/NOTES.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-TODO
-* The PageResource class seems a little superfluous
-* Clean up exception handling: in catch's and in AccessController constructors
\ No newline at end of file
diff --git a/plexus-avalon-components/jasf/maven.xml b/plexus-avalon-components/jasf/maven.xml
deleted file mode 100644
index a457c9258..000000000
--- a/plexus-avalon-components/jasf/maven.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/plexus-avalon-components/jasf/project.properties b/plexus-avalon-components/jasf/project.properties
deleted file mode 100644
index d912d702f..000000000
--- a/plexus-avalon-components/jasf/project.properties
+++ /dev/null
@@ -1,20 +0,0 @@
-# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-# xdocs
-# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-maven.ui.banner.background = #797f68
-maven.ui.section.background = #BBBBBB
-maven.ui.subsection.background = #DDDDDD
-maven.ui.section.foreground = #990000
-maven.ui.subsection.foreground = #990000
-
-maven.checkstyle.format = turbine
-
-maven.attributes.src.includes=
-maven.attributes.src.excludes=**/*.java
-
-maven.attributes.test.includes=**/*.java
-maven.attributes.test.excludes=
-
-# display the date on the site
-maven.xdoc.date = left
\ No newline at end of file
diff --git a/plexus-avalon-components/jasf/project.xml b/plexus-avalon-components/jasf/project.xml
deleted file mode 100644
index d80e1ffe1..000000000
--- a/plexus-avalon-components/jasf/project.xml
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
- ${maven.repo.local}/plexus/poms/plexus-components-avalon-1.0.pom
- plexus-jasf
- plexus-jasf
- Java Application Security Framework
- 0.4
-
-
- Envoi Solutions
- http://envoisolutions.com
- /images/envoi_small.png
-
-
- 2002
- org.codehaus.jasf
-
- A security framework for applications
-
-
- This security framework seeks to establish a common ground for applications
- to integrate security. By creating a flexible mechanism, one can use
- different security frameworks, but the same Components from application
- to application.
-
-
-
-
- 0.2
- 0.2
- HEAD
-
-
-
-
-
-
- Dan Diephouse
- dandiep
- diephouse@envoisolutions.com
- Envoi Solutions
-
-
-
-
-
-
-
- commons-attributes
- commons-attributes-api
- SNAPSHOT
- http://jakarta.apache.org/commons/sandbox/attributes/
-
-
-
- commons-collections
- 2.1
- http://jakarta.apache.org/commons/sandbox/attributes/
-
-
-
- commons-digester
- 1.2
-
-
-
- commons-logging
- 1.0.2
-
-
-
- commons-beanutils
- 1.6.1
-
-
-
- plexus
- plexus-summit
- 1.0-beta-2
-
-
-
- plexus
- plexus-activity
- 1.0-beta-1
-
-
-
- qdox
- qdox
- 1.1
-
-
-
- servletapi
- servletapi
- 2.3
-
-
-
-
-
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/Authenticator.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/Authenticator.java
deleted file mode 100644
index 35be407aa..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/Authenticator.java
+++ /dev/null
@@ -1,36 +0,0 @@
-package org.codehaus.jasf;
-
-import org.codehaus.jasf.exception.AuthenticationException;
-import org.codehaus.jasf.exception.UnauthorizedException;
-import org.codehaus.jasf.exception.UnknownEntityException;
-
-/**
- * Entity authentication functions.
- *
- * @author Dan Diephouse
- * @since Nov 20, 2002
- */
-public interface Authenticator
-{
- public final static String ROLE = Authenticator.class.getName();
-
- public final static String SELECTOR_ROLE = ROLE + "Selector";
-
- /**
- * Return an Entity based on the Entity name and password.
- *
- * @param entityname the name of the Entity
- * @param password the password for the Entity
- * @return Entity
- */
- public Object authenticate( String entityname, String password )
- throws UnknownEntityException, AuthenticationException, UnauthorizedException;
-
- /**
- * Return an anonymous entity that can be used to interact with
- * the system.
- *
- * @return Entity
- */
- public Object getAnonymousEntity();
-}
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/ResourceController.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/ResourceController.java
deleted file mode 100644
index b7ab86af9..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/ResourceController.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package org.codehaus.jasf;
-
-/**
- * Determines if entities are authorized to access specific resources.
- *
- * @author Dan Diephouse
- * @since Nov 21, 2002
- */
-public interface ResourceController
-{
- public final static String ROLE = ResourceController.class.getName();
-
- public final static String SELECTOR_ROLE = ROLE + "Selector";
-
- /**
- * Check to see if the entity is authorized to access the
- * resource. The relation between the entity and resource is entirely up to
- * the implementation.
- *
- * @param entity
- * @param resource
- * @return boolean
- */
- public boolean isAuthorized( Object entity, Object resource );
-
-}
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/belfast/Permission.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/belfast/Permission.java
deleted file mode 100644
index 5917024fd..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/belfast/Permission.java
+++ /dev/null
@@ -1,44 +0,0 @@
-package org.codehaus.jasf.belfast;
-
-/**
- * @author Dan Diephouse
- * @since May 10, 2003
- */
-public class Permission
-{
- private long id;
- private String permission;
-
- /**
- * @return
- */
- public String getPermission()
- {
- return permission;
- }
-
- /**
- * @param string
- */
- public void setPermission(String string)
- {
- permission = string;
- }
-
- /**
- * @return
- */
- public long getId()
- {
- return id;
- }
-
- /**
- * @param l
- */
- public void setId(long l)
- {
- id = l;
- }
-
-}
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/belfast/Role.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/belfast/Role.java
deleted file mode 100644
index 7ddc3a0d5..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/belfast/Role.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.codehaus.jasf.belfast;
-
-import java.util.List;
-
-/**
- * @author Dan Diephouse
- * @since May 10, 2003
- */
-public class Role
-{
- private long id;
- private String name;
- private List permissions;
-
- /**
- * @return
- */
- public String getName()
- {
- return name;
- }
-
- /**
- * @return
- */
- public List getPermissions()
- {
- return permissions;
- }
-
- /**
- * @param string
- */
- public void setName(String string)
- {
- name = string;
- }
-
- /**
- * @param list
- */
- public void setPermissions(List list)
- {
- permissions = list;
- }
- /**
- * @return
- */
- public long getId()
- {
- return id;
- }
-
- /**
- * @param l
- */
- public void setId(long l)
- {
- id = l;
- }
-
-}
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/belfast/SecurityManager.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/belfast/SecurityManager.java
deleted file mode 100644
index a2ba051bf..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/belfast/SecurityManager.java
+++ /dev/null
@@ -1,43 +0,0 @@
-package org.codehaus.jasf.belfast;
-
-import java.util.List;
-
-import org.codehaus.jasf.belfast.exception.BackendException;
-import org.codehaus.jasf.belfast.exception.EntityExistsException;
-
-/**
- * A standard interface to manage various security aspects of a system.
- *
- * @author Dan Diephouse
- * @since Mar 1, 2003
- */
-public interface SecurityManager
-{
- public static final String ROLE = SecurityManager.class.getName();
-
- public static final String SELECTOR = SecurityManager.class.getName() + "Selector";
-
- void removeAllPermissions( Role role )
- throws BackendException;
-
- void grant( Role role, Permission perm )
- throws BackendException;
-
- Permission getPermission(String id)
- throws BackendException, EntityExistsException;
-
- boolean hasPermission( Object entity, String permission )
- throws BackendException;
-
- boolean hasRole( Object entity, String role)
- throws BackendException;
-
- Role getRole(String id)
- throws BackendException, EntityExistsException;
-
- List getRoles()
- throws BackendException;
-
- List getPermissions()
- throws BackendException;
-}
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/belfast/User.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/belfast/User.java
deleted file mode 100644
index afde719be..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/belfast/User.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package org.codehaus.jasf.belfast;
-
-import java.util.List;
-
-/**
- * A user class that contains basic security features.
- *
- * @author Dan Diephouse
- * @since May 13, 2003
- */
-public interface User
- extends org.codehaus.jasf.entities.web.User
-{
-
- public List getRoles();
-
-}
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/belfast/UserManager.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/belfast/UserManager.java
deleted file mode 100644
index f52fcb4cb..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/belfast/UserManager.java
+++ /dev/null
@@ -1,107 +0,0 @@
-package org.codehaus.jasf.belfast;
-
-import java.util.List;
-
-import org.codehaus.jasf.belfast.exception.BackendException;
-import org.codehaus.jasf.belfast.exception.EntityExistsException;
-import org.codehaus.jasf.belfast.exception.PasswordMismatchException;
-import org.codehaus.jasf.entities.web.User;
-import org.codehaus.jasf.exception.UnknownEntityException;
-
-/**
- * A standard interface for managing users that trys to be backend agnostic.
- *
- * @author Dan Diephouse
- * @since Mar 1, 2003
- */
-public interface UserManager
-{
- public static final String ROLE = UserManager.class.getName();
-
- public static final String SELECTOR = UserManager.class.getName() + "Selector";
-
- /**
- * Check whether a specified user's account exists.
- *
- * The login name is used for looking up the account.
- *
- * @param user The user to be checked.
- * @return true if the specified account exists
- * @throws DataBackendException if there was an error accessing the data backend.
- */
- boolean accountExists(User user)
- throws BackendException;
-
- /**
- * Check whether a specified user's account exists.
- *
- * The login name is used for looking up the account.
- *
- * @param userName The name of the user to be checked.
- * @return true if the specified account exists
- * @throws DataBackendException if there was an error accessing the data backend.
- */
- boolean accountExists(String userName)
- throws BackendException;
-
- /**
- * Creates new user account with specified attributes.
- *
- * @param user the object describing account to be created.
- * @param password The password to use for the object creation
- *
- * @throws DataBackendException if there was an error accessing the data backend.
- * @throws EntityExistsException if the user account already exists.
- */
- void createAccount(User user, String password)
- throws EntityExistsException, BackendException;
-
- /**
- * Removes an user account from the system.
- *
- * @param user the object describing the account to be removed.
- * @throws DataBackendException if there was an error accessing the data backend.
- * @throws UnknownEntityException if the user account is not present.
- */
- void removeUser(User user)
- throws UnknownEntityException, BackendException;
- /**
- * Change the password for an User.
- *
- * @param user an User to change password for.
- * @param oldPassword the current password suplied by the user.
- * @param newPassword the current password requested by the user.
- * @exception PasswordMismatchException if the supplied password was
- * incorrect.
- * @exception UnknownEntityException if the user's record does not
- * exist in the database.
- * @exception DataBackendException if there is a problem accessing the
- * storage.
- */
- void changePassword(User user, String oldPassword, String newPassword)
- throws PasswordMismatchException, UnknownEntityException,
- BackendException;
-
- /**
- * Forcibly sets new password for an User.
- *
- * This is supposed by the administrator to change the forgotten or
- * compromised passwords. Certain implementatations of this feature
- * would require administrative level access to the authenticating
- * server / program.
- *
- * @param user an User to change password for.
- * @param password the new password.
- * @exception UnknownEntityException if the user's record does not
- * exist in the database.
- * @exception DataBackendException if there is a problem accessing the
- * storage.
- */
- void forcePassword(User user, String password)
- throws UnknownEntityException, BackendException;
-
-
- User retrieveEntity( long id );
-
- List getUsers();
-}
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/belfast/exception/BackendException.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/belfast/exception/BackendException.java
deleted file mode 100644
index 8baeb2828..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/belfast/exception/BackendException.java
+++ /dev/null
@@ -1,89 +0,0 @@
-package org.codehaus.jasf.belfast.exception;
-
-/* ====================================================================
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 2001 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * 3. The end-user documentation included with the redistribution,
- * if any, must include the following acknowledgment:
- * "This product includes software developed by the
- * Apache Software Foundation (http://www.apache.org/)."
- * Alternately, this acknowledgment may appear in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The names "Apache" and "Apache Software Foundation" and
- * "Apache Turbine" must not be used to endorse or promote products
- * derived from this software without prior written permission. For
- * written permission, please contact apache@apache.org.
- *
- * 5. Products derived from this software may not be called "Apache",
- * "Apache Turbine", nor may "Apache" appear in their name, without
- * prior written permission of the Apache Software Foundation.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ====================================================================
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Apache Software Foundation. For more
- * information on the Apache Software Foundation, please see
- * .
- */
-
-/**
- * Thrown to indicate that there was an error accessing the data
- * backend of the SecurityService.
- *
- * @author Rafal Krzewski
- * @version $Id$
- */
-public class BackendException
- extends Exception
-{
- /**
- * Construct an DataBackendException with specified detail message.
- *
- * @param msg The detail message.
- */
- public BackendException(String msg)
- {
- super(msg);
- }
-
- /**
- * Construct an DataBackendException with specified detail message
- * and nested Throwable.
- *
- * @param msg The detail message.
- * @param nested the exception or error that caused this exception
- * to be thrown.
- */
- public BackendException(String msg, Throwable nested)
- {
- super(msg, nested);
- }
-};
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/belfast/exception/EntityExistsException.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/belfast/exception/EntityExistsException.java
deleted file mode 100644
index eca991e81..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/belfast/exception/EntityExistsException.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package org.codehaus.jasf.belfast.exception;
-
-/**
- *
- * @author Dan Diephouse
- * @since Mar 1, 2003
- */
-public class EntityExistsException extends Exception
-{
-}
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/belfast/exception/PasswordMismatchException.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/belfast/exception/PasswordMismatchException.java
deleted file mode 100644
index 9fbfebebe..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/belfast/exception/PasswordMismatchException.java
+++ /dev/null
@@ -1,75 +0,0 @@
-package org.codehaus.jasf.belfast.exception;
-
-/* ====================================================================
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 2001 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * 3. The end-user documentation included with the redistribution,
- * if any, must include the following acknowledgment:
- * "This product includes software developed by the
- * Apache Software Foundation (http://www.apache.org/)."
- * Alternately, this acknowledgment may appear in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The names "Apache" and "Apache Software Foundation" and
- * "Apache Turbine" must not be used to endorse or promote products
- * derived from this software without prior written permission. For
- * written permission, please contact apache@apache.org.
- *
- * 5. Products derived from this software may not be called "Apache",
- * "Apache Turbine", nor may "Apache" appear in their name, without
- * prior written permission of the Apache Software Foundation.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ====================================================================
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Apache Software Foundation. For more
- * information on the Apache Software Foundation, please see
- * .
- */
-
-/**
- * Thrown to indicate that the password supplied by user was incorrect.
- *
- * @author Rafal Krzewski
- * @version $Id$
- */
-public class PasswordMismatchException
- extends Exception
-{
- /**
- * Construct an PasswordMismatchException with specified detail message.
- *
- * @param msg The detail message.
- */
- public PasswordMismatchException(String msg)
- {
- super(msg);
- }
-};
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/belfast/package.html b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/belfast/package.html
deleted file mode 100644
index fc84482af..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/belfast/package.html
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
-
-Contains a standard user management and access control system.
-
-
-
User is a basic user interface for web applications. It is implemented by
- * the various web security implmentations - ie: db and xml.
- *
- *
NOTE: This class extends SessionBindingListener because it is
- * used for web based applications only. This is open to change.
- *
- * @author Dan Diephouse
- * @since Jan 11, 2003
- */
-public interface User
- extends SessionBindingListener
-{
- public static String ENTITY_TYPE = User.class.getName();
-
- /**
- * Get the unique user name.
- *
- * @return String
- */
- public String getUserName();
-
- /**
- * Returns true if the user is currently logged in.
- *
- * @return boolean
- */
- public boolean isLoggedIn();
-
- /**
- * Sets whether or not the user is logged in.
- *
- * @param value
- */
- public void setLoggedIn( boolean value );
-
- public void updateLastAccessDate();
-
- public void incrementAccessCounter();
-
- public void incrementAccessCounterForSession();
-
- public void setTemp( String key, Object value );
-
- public Object getTemp( String key );
-
- public void setPerm( String key, Object value );
-
- public Object getPerm( String key );
-
-}
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/exception/AuthenticationException.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/exception/AuthenticationException.java
deleted file mode 100644
index 946de5ddc..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/exception/AuthenticationException.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package org.codehaus.jasf.exception;
-
-/**
- * EntityAuthenticationException.java
- *
- * @author Dan Diephouse
- * @since Nov 24, 2002
- */
-public class AuthenticationException extends Exception
-{
- /**
- * Constructor EntityAuthenticationException.
- */
- public AuthenticationException()
- {
- super();
- }
-
- /**
- * Constructor EntityAuthenticationException.
- * @param string
- */
- public AuthenticationException(String message)
- {
- super(message);
- }
-
- /**
- * Constructor EntityAuthenticationException.
- * @param string
- */
- public AuthenticationException(String message, Exception e)
- {
- super(message, e);
- }
-
-
-}
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/exception/UnauthorizedException.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/exception/UnauthorizedException.java
deleted file mode 100644
index 06e9692b6..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/exception/UnauthorizedException.java
+++ /dev/null
@@ -1,19 +0,0 @@
-package org.codehaus.jasf.exception;
-
-/**
- * The exception thrown if an entity is unauthorized to access a resource.
- *
- * @author Dan Diephouse
- * @since Mar 1, 2003
- */
-public class UnauthorizedException extends Exception
-{
-
- /**
- * @param message
- */
- public UnauthorizedException(String message)
- {
- super( message );
- }
-}
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/exception/UnknownEntityException.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/exception/UnknownEntityException.java
deleted file mode 100644
index cb4c08d4a..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/exception/UnknownEntityException.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package org.codehaus.jasf.exception;
-
-/**
- * Exception thrown when the Entity specified does not exist.
- *
- * @author Dan Diephouse
- * @since Nov 23, 2002
- */
-public class UnknownEntityException extends Exception
-{
-
-}
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/impl/AbstractClassAccessController.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/impl/AbstractClassAccessController.java
deleted file mode 100644
index 039933ac8..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/impl/AbstractClassAccessController.java
+++ /dev/null
@@ -1,39 +0,0 @@
-package org.codehaus.jasf.impl;
-
-import org.apache.avalon.framework.configuration.Configuration;
-import org.apache.avalon.framework.configuration.ConfigurationException;
-import org.codehaus.jasf.ResourceController;
-
-/**
- * Implements basic functionality that all
- * ResourceAccessControllers for classes can use.
- *
- * @author Dan Diephouse
- * @since Jan 24, 2003
- */
-public abstract class AbstractClassAccessController
- implements ResourceController
-{
- private boolean defaultAuthorization;
-
- /**
- * @see org.apache.avalon.framework.configuration.Configurable#configure(org.apache.avalon.framework.configuration.Configuration)
- */
- public void configure(Configuration config) throws ConfigurationException
- {
- // Should we return false or true for methods which don't have a
- // credential attribute?
- defaultAuthorization =
- config.getChild("defaultAuthorization").getValueAsBoolean(true);
- }
-
- /**
- * Returns the defaultAuthorization.
- * @return boolean
- */
- public boolean getDefaultAuthorization()
- {
- return defaultAuthorization;
- }
-
-}
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/impl/AbstractPageAccessController.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/impl/AbstractPageAccessController.java
deleted file mode 100644
index f7a3f8ecf..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/impl/AbstractPageAccessController.java
+++ /dev/null
@@ -1,174 +0,0 @@
-package org.codehaus.jasf.impl;
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileNotFoundException;
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import org.apache.avalon.framework.activity.Initializable;
-import org.apache.avalon.framework.configuration.Configurable;
-import org.apache.avalon.framework.configuration.Configuration;
-import org.apache.avalon.framework.configuration.ConfigurationException;
-import org.apache.avalon.framework.logger.AbstractLogEnabled;
-import org.apache.commons.digester.Digester;
-import org.apache.commons.logging.impl.SimpleLog;
-import org.xml.sax.SAXException;
-
-import org.codehaus.jasf.ResourceController;
-import org.codehaus.jasf.resources.PageResource;
-
-/**
- * AbstractPageACcessController is a partial implementation that makes it easy
- * to create an xml resource to credential mapping. This class handles the
- * loading of the list of pages and their necessary credentials to view them.
- * This class can be extended to use this credential and page relation. The
- * only method that needs to be implemented is hasCredential(). In this method
- * you take care of your entity and credential relation.
- *
- * @author Dan Diephouse
- * @since Nov 21, 2002
- */
-public abstract class AbstractPageAccessController
- extends AbstractLogEnabled
- implements ResourceController, Configurable, Initializable
-{
- private String delimiter;
-
- private boolean defaultAuthorization;
-
- // The root resource
- List root;
-
- // The digester which reads in the pages and their necessary credentials
- Digester pageDigester;
-
- private File pagesFile;
-
- /**
- * Return a list of PageResources.
- *
- * @return List
- */
- public List getPages()
- {
- return root;
- }
-
- /**
- * @see org.apache.avalon.framework.configuration.Configurable#configure(org.apache.avalon.framework.configuration.Configuration)
- */
- public void configure(Configuration config) throws ConfigurationException
- {
- pagesFile = new File(config.getChild("pages").getValue());
- delimiter = config.getAttribute("delimiter", "/");
- defaultAuthorization =
- config.getAttributeAsBoolean("defaultAuthorization", false);
- }
-
- /**
- * @see org.apache.avalon.framework.activity.Initializable#initialize()
- */
- public void initialize() throws Exception
- {
- // Set up the digester so that it can read in the xml pages declarations.
- pageDigester = new Digester();
- SimpleLog log = new SimpleLog("digester");
- pageDigester.setLogger(log);
-
- pageDigester.addObjectCreate("resources", ArrayList.class);
- pageDigester.addObjectCreate("*/resource", XmlPageResource.class);
- pageDigester.addSetNext("*/resource", "add",
- XmlPageResource.class.getName());
- pageDigester.addCallMethod("*/resource/name", "setName", 0);
- pageDigester.addCallMethod("*/resource/credential", "setCredential", 0);
- pageDigester.addObjectCreate("*/resource/resources", ArrayList.class);
- pageDigester.addSetNext("*/resource/resources", "setResources",
- ArrayList.class.getName());
-
- try
- {
- InputStream stream = new FileInputStream(pagesFile);
- root = (List) pageDigester.parse( stream );
- }
- catch (FileNotFoundException e)
- {
- getLogger().error("Could not find the pages file.");
- throw new ConfigurationException("Could not find the pages file!");
- } catch (IOException e)
- {
- getLogger().error("Error reading the pages file.");
- throw new ConfigurationException("Error reading the pages file.");
- } catch (SAXException e)
- {
- getLogger().error("Error parsing the pages file.");
- throw new ConfigurationException("Error parsing the pages file.");
- }
- }
-
- /**
- * @param entity the Entity being authorized
- * @param resource a PageResource
- * @see org.apache.fulcrum.jasf.ResourceAccessController#isAuthorized(Object, Object)
- */
- public boolean isAuthorized( Object entity, Object resource )
- {
- getLogger().debug("Checking to see if then entity can access " +
- ((PageResource)resource).getName() + ".");
-
- Iterator itr = getPages().iterator();
- while (itr.hasNext())
- {
- XmlPageResource r = (XmlPageResource) itr.next();
- if (isAuthorized(entity, ((PageResource) resource).getName(), r))
- {
- return true;
- }
- }
-
- return defaultAuthorization;
- }
-
- protected boolean isAuthorized( Object entity, String r1,
- XmlPageResource presource )
- {
- int index = r1.indexOf( delimiter );
- // Check to see if we need to go deeper
- if (index >= 0 && index < r1.length()) {
- String child = r1.substring(index+1);
-
- Iterator itr = presource.getResources().iterator();
- while (itr.hasNext())
- {
- XmlPageResource childResource = (XmlPageResource) itr.next();
- if(isAuthorized(entity, child, childResource ))
- return true;
- }
- }
-
- if (presource.getName().equals(r1))
- {
- if ( presource.getCredential().equals("") )
- return true;
-
- if ( hasCredential( entity, presource.getCredential() ))
- return true;
- }
-
- return false;
- }
-
- /**
- * Implement this method to determine if your entity has the necessary
- * credential to access the PageResource that has been
- * requested.
- *
- * @param entity
- * @param credential
- * @return boolean
- */
- public abstract boolean hasCredential( Object entity, String credential );
-}
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/impl/XmlPageResource.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/impl/XmlPageResource.java
deleted file mode 100644
index b0a3fcb48..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/impl/XmlPageResource.java
+++ /dev/null
@@ -1,34 +0,0 @@
-package org.codehaus.jasf.impl;
-
-import org.codehaus.jasf.resources.PageResource;
-
-/**
- * XmlPageResource.java
- *
- * @author Dan Diephouse
- * @since Jan 22, 2003
- */
-public class XmlPageResource
- extends PageResource
-{
- String credential;
-
- /**
- * Returns the credential required to view this page.
- * @return String
- */
- public String getCredential()
- {
- return credential;
- }
-
- /**
- * Sets the credential required to view this page.
- * @param credential The credential to set
- */
- public void setCredential(String credential)
- {
- this.credential = credential;
- }
-
-}
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/impl/basic/BasicEntity.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/impl/basic/BasicEntity.java
deleted file mode 100644
index 965b57a59..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/impl/basic/BasicEntity.java
+++ /dev/null
@@ -1,19 +0,0 @@
-package org.codehaus.jasf.impl.basic;
-
-/**
- * BasicEntity is an interface which all entities that seek to use this
- * package's ResourceAccessControllers must implement.
- *
- * @author Dan Diephouse
- * @since Jan 22, 2003
- */
-public interface BasicEntity
-{
- /**
- * See if the user has the specified credential.
- *
- * @param credential
- * @return boolean
- */
- public boolean hasCredential( String credential );
-}
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/impl/basic/BasicUser.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/impl/basic/BasicUser.java
deleted file mode 100644
index 4681076f2..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/impl/basic/BasicUser.java
+++ /dev/null
@@ -1,238 +0,0 @@
-package org.codehaus.jasf.impl.basic;
-
-import java.util.ArrayList;
-import java.util.Date;
-import java.util.Hashtable;
-import java.util.Iterator;
-import java.util.List;
-
-import org.codehaus.jasf.entities.web.User;
-import org.codehaus.jasf.summit.session.SessionBindingEvent;
-
-/**
- * @author Dan Diephouse
- * @since Nov 20, 2002
- *
- * A simple Entity implementation of a User. There is a simple
- * one to many association with the user's credentials.
- */
-public class BasicUser implements User, BasicEntity
-{
- String userName;
-
- String password;
-
- List roles;
-
- boolean loggedIn = false;
-
- Hashtable temp;
-
- Date lastAccessDate;
-
- int accessCounter = 0;
-
- int sessionAccessCounter = 0;
-
- public BasicUser()
- {
- roles = new ArrayList();
- temp = new Hashtable();
- }
-
- /**
- * Return the username, which is a unique identifier for each
- * user.
- *
- * @return String
- */
- public String getUserName()
- {
- return userName;
- }
-
- /**
- * Sets the username.
- * @param username The username to set
- */
- public void setUserName(String userName)
- {
- this.userName = userName;
- }
-
- /**
- * Returns the password.
- * @return String
- */
- public String getPassword()
- {
- return password;
- }
-
- /**
- * Sets the password.
- * @param password The password to set
- */
- public void setPassword(String password)
- {
- this.password = password;
- }
-
- public List getRoles()
- {
- return roles;
- }
-
- public void addRole( Role r )
- {
- roles.add(r);
- }
-
- public void removeRole( Role r )
- {
- roles.remove(r);
- }
-
- /**
- * Check to see if the user has the credential in any of their roles.
- *
- * @param c
- */
- public boolean hasCredential( String c )
- {
- Iterator itr = roles.iterator();
- while (itr.hasNext())
- {
- Role r = (Role) itr.next();
- if (r.hasCredential(c))
- return true;
- }
-
- // The Credential was not found.
- return false;
- }
-
- /**
- * @return boolean
- */
- public boolean hasLoggedIn()
- {
- return loggedIn;
- }
-
- /**
- * @see org.apache.fulcrum.jasf.entities.web.User#setLoggedIn(boolean)
- */
- public void setLoggedIn( boolean loggedIn )
- {
- this.loggedIn = loggedIn;
- }
-
- /**
- * @see org.apache.fulcrum.jasf.entities.web.User#isLoggedIn()
- */
- public boolean isLoggedIn()
- {
- return false;
- }
-
- /**
- * @see org.apache.fulcrum.jasf.entities.web.User#setTemp(String, Object)
- */
- public void setTemp(String key, Object value)
- {
- temp.put(key, value);
- }
-
-
- /**
- * Gets the last access date for this User. This is the last time
- * that the user object was referenced.
- *
- * @return A Java Date with the last access date for the user.
- */
- public java.util.Date getLastAccessDate()
- {
- if (lastAccessDate == null)
- {
- updateLastAccessDate();
- }
- return lastAccessDate;
- }
-
- /**
- * Sets the last access date for this User. This is the last time
- * that the user object was referenced.
- */
- public void updateLastAccessDate()
- {
- lastAccessDate = new java.util.Date();
- }
-
- /**
- * @see org.apache.fulcrum.jasf.entities.web.User#getTemp(String)
- */
- public Object getTemp(String key)
- {
- return temp.get(key);
- }
-
- /**
- * This is just a call to setTemp, because there is no permanent storage
- * mechanism yet.
- *
- * @see org.apache.fulcrum.jasf.entities.web.User#setPerm(java.lang.String,
- * java.lang.Object)
- */
- public void setPerm(String key, Object value)
- {
- setTemp(key, value);
- }
-
- /**
- * This is just a call to getTemp, because there is no permanent storage
- * mechanism yet.
- *
- * @see org.apache.fulcrum.jasf.entities.web.User#getPerm(java.lang.String)
- */
- public Object getPerm(String key)
- {
- return getTemp(key);
- }
-
- /**
- * @see org.apache.fulcrum.jasf.entities.web.User#incrementAccessCounter()
- */
- public void incrementAccessCounter()
- {
- accessCounter++;
- }
-
- /**
- * @see org.apache.fulcrum.jasf.entities.web.User#incrementAccessCounterForSession()
- */
- public void incrementAccessCounterForSession()
- {
- sessionAccessCounter++;
- }
-
- /**
- * Currently does nothing.
- *
- * @see org.apache.fulcrum.security.session.SessionBindingListener#valueBound(org.apache.fulcrum.security.session.SessionBindingEvent)
- */
- public void valueBound(SessionBindingEvent event)
- {
- // Do nothing
- }
-
- /**
- * Currently does nothing.
- *
- * @see org.apache.fulcrum.security.session.SessionBindingListener#valueUnbound(org.apache.fulcrum.security.session.SessionBindingEvent)
- */
- public void valueUnbound(SessionBindingEvent event)
- {
- // Do nothing
- }
-}
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/impl/basic/ClassAccessController.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/impl/basic/ClassAccessController.java
deleted file mode 100644
index 50815abb6..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/impl/basic/ClassAccessController.java
+++ /dev/null
@@ -1,52 +0,0 @@
-package org.codehaus.jasf.impl.basic;
-
-import java.lang.reflect.Method;
-import java.util.Collection;
-import java.util.Iterator;
-
-import org.apache.commons.attributes.Attributes;
-import org.codehaus.jasf.impl.AbstractClassAccessController;
-import org.codehaus.jasf.resources.Credential;
-
-/**
- * ClassAccessController
- *
- * @author Dan Diephouse
- * @since Jan 24, 2003
- */
-public class ClassAccessController
- extends AbstractClassAccessController
-{
- /**
- * @see org.apache.fulcrum.jasf.ResourceAccessController#isAuthorized(java.lang.Object, java.lang.Object)
- */
- public boolean isAuthorized(Object entity, Object resource)
- {
- System.out.println("isAuthd?");
- if (Attributes.hasAttributeType((Method) resource, Credential.class))
- {
- Collection attributes =
- Attributes.getAttributes((Method) resource);
-
- for ( Iterator itr = attributes.iterator(); itr.hasNext(); )
- {
- // Since I couldn't get AttributesUtil to filter out only
- // Credentials, I'm doing it myself.
- Object credObj = itr.next();
- if ( credObj instanceof Credential )
- {
- Credential cred = (Credential) credObj;
- System.out.println("checking for " + cred.getName());
-
- if ( !((BasicEntity) entity).hasCredential(cred.getName()) )
- return false;
- }
- }
-
- return true;
- }
-
- return getDefaultAuthorization();
- }
-
-}
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/impl/basic/PageAccessController.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/impl/basic/PageAccessController.java
deleted file mode 100644
index f8d1bee3f..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/impl/basic/PageAccessController.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package org.codehaus.jasf.impl.basic;
-
-import org.codehaus.jasf.impl.AbstractPageAccessController;
-
-/**
- * PageAccessController.java
- *
- * @author Dan Diephouse
- * @since Jan 22, 2003
- */
-public class PageAccessController extends AbstractPageAccessController
-{
- public static String ROLE = PageAccessController.class.getName();
-
-
- /**
- * Check to see if the entity (ie, the XmlUser) has the
- * credential in any of their Roles.
- *
- * @see org.apache.fulcrum.jasf.impl.AbstractXmlPageAccessController#hasCredential(Object, String)
- */
- public boolean hasCredential( Object entity, String credential )
- {
- getLogger().debug("Checking to see if the entity has the " +
- credential + " credential.");
- return ((BasicEntity) entity).hasCredential(credential);
- }
-}
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/impl/basic/Role.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/impl/basic/Role.java
deleted file mode 100644
index 216ead9cb..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/impl/basic/Role.java
+++ /dev/null
@@ -1,69 +0,0 @@
-package org.codehaus.jasf.impl.basic;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-/**
- * A Role is a collection of credentials that a user has. A user can
- * participate in multiple roles.
- *
- * @author Dan Diephouse
- * @since Jan 19, 2003
- */
-public class Role
-{
- List credentials;
-
- String name;
-
- public Role()
- {
- credentials = new ArrayList();
- }
-
- public List getCredentials()
- {
- return credentials;
- }
-
- public void addCredential( String c )
- {
- credentials.add(c);
- }
- /**
- * Method hasCredential.
- * @param c
- * @return boolean
- */
- public boolean hasCredential(String credential)
- {
- Iterator itr = credentials.iterator();
- while (itr.hasNext())
- {
- String roleCred = (String) itr.next();
- if (roleCred.equals(credential))
- return true;
- }
-
- return false;
- }
-
- /**
- * Returns the name.
- * @return String
- */
- public String getName()
- {
- return name;
- }
-
- /**
- * Sets the name.
- * @param name The name to set
- */
- public void setName(String name)
- {
- this.name = name;
- }
-}
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/impl/basic/UserAuthenticationController.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/impl/basic/UserAuthenticationController.java
deleted file mode 100644
index bcaf1c7f6..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/impl/basic/UserAuthenticationController.java
+++ /dev/null
@@ -1,207 +0,0 @@
-package org.codehaus.jasf.impl.basic;
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileNotFoundException;
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import org.apache.avalon.framework.activity.Initializable;
-import org.apache.avalon.framework.configuration.Configurable;
-import org.apache.avalon.framework.configuration.Configuration;
-import org.apache.avalon.framework.configuration.ConfigurationException;
-import org.apache.avalon.framework.logger.AbstractLogEnabled;
-import org.apache.commons.digester.AbstractObjectCreationFactory;
-import org.apache.commons.digester.Digester;
-import org.codehaus.jasf.Authenticator;
-import org.codehaus.jasf.exception.AuthenticationException;
-import org.codehaus.jasf.exception.UnknownEntityException;
-
-import org.xml.sax.Attributes;
-import org.xml.sax.SAXException;
-
-/**
- * UserAuthenticationController loads in a defined set of users
- * and credentials via an XML file.
- *
- * @author Dan Diephouse
- * @since Nov 22, 2002
- */
-public class UserAuthenticationController extends AbstractLogEnabled
- implements Authenticator, Configurable, Initializable
-{
- // Where the users are stored after initialization
- List users;
-
- // Where the roles are stored after initialization
- List roles;
-
- // The digester which reads in the users and their roles
- Digester userDigester;
-
- // The digester which reads in the roles
- Digester roleDigester;
-
- private File rolesFile;
-
- private File usersFile;
-
- public UserAuthenticationController()
- {
- }
-
- /**
- * @see org.apache.fulcrum.jasf.Authenticator#authenticate(String, String)
- */
- public Object authenticate(String entityname, String password)
- throws UnknownEntityException, AuthenticationException
- {
- Iterator itr = users.iterator();
- while (itr.hasNext())
- {
- BasicUser user = (BasicUser) itr.next();
-
- if (user.getUserName().equals(entityname))
- {
- if(user.getPassword().equals(password))
- return user;
- else
- throw new AuthenticationException();
- }
- }
-
- throw new UnknownEntityException();
- }
-
- /**
- * @see org.apache.fulcrum.jasf.EntityAuthenticationController#getAnonymousEntity()
- */
- public Object getAnonymousEntity()
- {
- return new BasicUser();
- }
-
- /**
- * Lookup a Role by its name.
- *
- * @param name
- * @return Role
- */
- public Role getRole( String name )
- {
- getLogger().debug("Retrieving role: " + name);
- Iterator itr = roles.iterator();
- while (itr.hasNext())
- {
- Role r = (Role) itr.next();
- if (r.getName().equals(name))
- return r;
- }
-
- // TODO: Throw exception instead
- return null;
- }
-
- /**
- * @see org.apache.avalon.framework.configuration.Configurable#configure(org.apache.avalon.framework.configuration.Configuration)
- */
- public void configure(Configuration config) throws ConfigurationException
- {
- usersFile = new File( config.getChild("users").getValue() );
- rolesFile = new File( config.getChild("roles").getValue() );
- }
-
- /**
- * @see org.apache.avalon.framework.activity.Initializable#initialize()
- */
- public void initialize() throws Exception
- {
- // Set up the Digest to load in the roles file.
- roleDigester = new Digester();
-
- roleDigester.addObjectCreate("roles", ArrayList.class);
- roleDigester.addObjectCreate("roles/role", Role.class);
- roleDigester.addSetNext("roles/role", "add", ArrayList.class.getName());
- roleDigester.addCallMethod("roles/role/name", "setName", 0);
- roleDigester.addCallMethod("roles/role/credentials/credential", "addCredential", 0);
-
- // Set up the digester to load in the users file.
- userDigester = new Digester();
-
- userDigester.addObjectCreate("users", ArrayList.class);
- userDigester.addObjectCreate("users/user", BasicUser.class);
- userDigester.addSetNext("users/user", "add", ArrayList.class.getName());
- userDigester.addCallMethod("users/user/username", "setUserName", 0);
- userDigester.addCallMethod("users/user/password", "setPassword", 0);
- userDigester.addFactoryCreate( "users/user/roles/role",
- new RoleCreationFactory(this) );
- userDigester.addSetNext("users/user/roles/role", "addRole", Role.class.getName());
-
- try
- {
- InputStream rolesStream = new FileInputStream( rolesFile );
- roles = (List) roleDigester.parse( rolesStream );
- }
- catch (FileNotFoundException e)
- {
- getLogger().error("Could not find the roles file.");
- throw new ConfigurationException("Could not find the roles file!");
- } catch (IOException e)
- {
- getLogger().error("Error reading the roles file.");
- throw new ConfigurationException("Error reading the roles file.");
- } catch (SAXException e)
- {
- getLogger().error("Error parsing the roles file.");
- throw new ConfigurationException("Error parsing the roles file.");
- }
-
- try
- {
- InputStream usersStream = new FileInputStream(usersFile);
- users = (List) userDigester.parse( usersStream );
- }
- catch (FileNotFoundException e)
- {
- getLogger().error("Could not find the users file.");
- throw new ConfigurationException("Could not find the users file!");
- } catch (IOException e)
- {
- getLogger().error("Error reading the users file.");
- throw new ConfigurationException("Error reading the users file.");
- } catch (SAXException e)
- {
- getLogger().error("Error parsing the users file.");
- throw new ConfigurationException("Error parsing the users file.");
- }
- }
-
- /**
- * A factory that pulls the Role objects as needed.
- *
- * @author Dan Diephouse
- * @since Jan 23, 2003
- */
- protected class RoleCreationFactory extends AbstractObjectCreationFactory
- {
- private UserAuthenticationController _controller;
-
- public RoleCreationFactory( UserAuthenticationController controller )
- {
- _controller = controller;
- }
-
- /**
- * @see org.apache.commons.digester.ObjectCreationFactory#createObject(org.xml.sax.Attributes)
- */
- public Object createObject(Attributes att) throws Exception
- {
- String name = att.getValue("name");
- return _controller.getRole(name);
- }
-
- }
-}
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/impl/global/AllAccessResourceController.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/impl/global/AllAccessResourceController.java
deleted file mode 100644
index 2e19d1208..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/impl/global/AllAccessResourceController.java
+++ /dev/null
@@ -1,27 +0,0 @@
-package org.codehaus.jasf.impl.global;
-
-import org.codehaus.jasf.ResourceController;
-
-/**
- * AllAccessResourceController is an implementation of
- * ResourceController that gives access to any resource
- * for any credential for any Entity.
- *
- * @author Dan Diephouse
- * @since Jan 10, 2003
- */
-public class AllAccessResourceController implements ResourceController
-{
- public static String ROLE = AllAccessResourceController.class.getName();
-
- /**
- * A pseudo implementation that returns true for every instance, granting
- * Entitys all access.
- *
- * @see org.apache.fulcrum.jasf.ResourceAccessController#isAuthorized(Object, Object)
- */
- public boolean isAuthorized( Object entity, Object resource )
- {
- return true;
- }
-}
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/impl/global/NoAccessResourceController.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/impl/global/NoAccessResourceController.java
deleted file mode 100644
index f0582f65e..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/impl/global/NoAccessResourceController.java
+++ /dev/null
@@ -1,27 +0,0 @@
-package org.codehaus.jasf.impl.global;
-
-import org.codehaus.jasf.ResourceController;
-
-/**
- * NoAccessResourceController is an implementation of
- * ResourceController that does not give access to any
- * resource for any Entity.
- *
- * @author Dan Diephouse
- * @since Jan 10, 2003
- */
-public class NoAccessResourceController implements ResourceController
-{
-
- /**
- * A pseudo implementation that returns false for every instance, denying
- * any Entity access to any resource.
- *
- * @see org.apache.fulcrum.jasf.ResourceAccessController#isAuthorized(Object, Object)
- */
- public boolean isAuthorized( Object entity, Object resource )
- {
- return false;
- }
-
-}
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/resources/ClassMethodResource.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/resources/ClassMethodResource.java
deleted file mode 100644
index e7ac89371..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/resources/ClassMethodResource.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package org.codehaus.jasf.resources;
-
-/**
- * ClassMethodResource need only be used to retrieve it's RESOURCE_TYPE.
- *
- * @author Dan Diephouse
- * @since Jan 21, 2003
- */
-public class ClassMethodResource
-{
- public static String RESOURCE_TYPE = ClassMethodResource.class.getName();
-}
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/resources/Credential.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/resources/Credential.java
deleted file mode 100644
index d615aa835..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/resources/Credential.java
+++ /dev/null
@@ -1,34 +0,0 @@
-package org.codehaus.jasf.resources;
-
-/**
- * A Credential Attribute.
- *
- * @author Dan Diephouse
- * @since Sep 11, 2003
- */
-public class Credential
-{
- private String name;
-
- public Credential( String name )
- {
- this.name = name;
- }
-
- /**
- * @return
- */
- public String getName()
- {
- return name;
- }
-
- /**
- * @param name
- */
- public void setName(String name)
- {
- this.name = name;
- }
-
-}
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/resources/PageResource.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/resources/PageResource.java
deleted file mode 100644
index bd237ef07..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/resources/PageResource.java
+++ /dev/null
@@ -1,95 +0,0 @@
-package org.codehaus.jasf.resources;
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * The PageResource and associated ResourceControllers are a simple way to
- * restrict access to certain web pages. They in no way provide a way to handle
- * actions that a user might perform while using the webpage, such as updating
- * the database or changing some setting.
- *
- * @author Dan Diephouse
- * @since Nov 21, 2002
- */
-public class PageResource
-{
- public final static String RESOURCE_TYPE =
- PageResource.class.getName();
-
- String name;
-
- List resources;
-
- String credential;
-
- public PageResource( String name )
- {
- this.name = name;
- resources = new ArrayList();
- }
-
- public PageResource()
- {
- resources = new ArrayList();
- }
-
- public String getName()
- {
- return name;
- }
-
- public void setName( String name )
- {
- this.name = name;
- }
- /**
- * Returns the resources.
- * @return List
- */
- public List getResources()
- {
- return resources;
- }
-
- /**
- * Sets the children resources if this is a directory.
- *
- * @param resources The resources to set
- */
- public void setResources(List resources)
- {
- this.resources = resources;
- }
-
- /**
- * Adds a resource to the list of children if this is a directory.
- *
- * @param resource the child file.
- */
- public void addResource( PageResource resource )
- {
- resources.add(resource);
- }
-
- /**
- * Returns true if this resource has child resources, ie: it is a directory.
- *
- * @return boolean
- */
- public boolean hasChildren()
- {
- if (resources.size() > 0)
- return true;
-
- return false;
- }
-
- public boolean equals( Object resource )
- {
- if (((PageResource) resource).getName().equals(getName()))
- return true;
-
- return false;
- }
-}
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/summit/LoginValve.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/summit/LoginValve.java
deleted file mode 100644
index 431519f41..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/summit/LoginValve.java
+++ /dev/null
@@ -1,198 +0,0 @@
-package org.codehaus.jasf.summit;
-
-/* ====================================================================
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 2001 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * 3. The end-user documentation included with the redistribution,
- * if any, must include the following acknowledgment:
- * "This product includes software developed by the
- * Apache Software Foundation (http://www.apache.org/)."
- * Alternately, this acknowledgment may appear in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The names "Apache" and "Apache Software Foundation" and
- * "Apache Turbine" must not be used to endorse or promote products
- * derived from this software without prior written permission. For
- * written permission, please contact apache@apache.org.
- *
- * 5. Products derived from this software may not be called "Apache",
- * "Apache Turbine", nor may "Apache" appear in their name, without
- * prior written permission of the Apache Software Foundation.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ====================================================================
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Apache Software Foundation. For more
- * information on the Apache Software Foundation, please see
- * .
- */
-
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Enumeration;
-import java.util.Iterator;
-import java.util.List;
-
-import javax.servlet.http.HttpSession;
-
-import org.codehaus.plexus.summit.activity.ActionEventService;
-import org.codehaus.plexus.summit.exception.SummitException;
-import org.codehaus.plexus.summit.pipeline.valve.AbstractValve;
-import org.codehaus.plexus.summit.rundata.RunData;
-
-/**
- * Handles the Login and Logout actions in the request process
- * cycle.
- *
- * @author Jason van Zyl
- * @author Daniel Rall
- * @version $Id$
- */
-public class LoginValve
- extends AbstractValve
-{
- private String loginAction = "LoginUser";
- private String logoutAction = "LogoutUser";
- private String loginPage = "Login.vm";
-
- /**
- * Here we can setup objects that are thread safe and can be
- * reused. We setup the session validator and the access
- * controller.
- */
- public LoginValve()
- throws Exception
- {
- }
-
- /**
- * @see org.apache.turbine.Valve#invoke(RunData, ValveContext)
- */
- public void invoke(RunData data)
- throws IOException, SummitException
- {
- try
- {
- process((SecureRunData)data);
- }
- catch (Exception e)
- {
- throw new SummitException( "Valve error.", e );
- }
- }
-
- /**
- * Handles user sessions, parsing of the action from the query
- * string, and access control.
- *
- * @param data The run-time data.
- */
- protected void process(SecureRunData data)
- throws Exception
- {
- //getLogger().debug( "Checking if the user is logging in." );
-
- // Special case for login and logout, this must happen before the
- // session validator is executed in order either to allow a user to
- // even login, or to ensure that the session validator gets to
- // mandate its page selection policy for non-logged in users
- // after the logout has taken place.
-
- // TODO: should there be a special rundata action param?
- String actionName = data.getParameters().getString( "action", "" );
- if (!actionName.equals("") &&
- (actionName.equalsIgnoreCase(loginAction) ||
- actionName.equalsIgnoreCase(logoutAction) ) )
- {
- //getLogger().debug( "User is logging in." );
-
- // If a User is logging in, we should refresh the
- // session here. Invalidating session and starting a
- // new session would seem to be a good method, but I
- // (JDM) could not get this to work well (it always
- // required the user to login twice). Maybe related
- // to JServ? If we do not clear out the session, it
- // is possible a new User may accidently (if they
- // login incorrectly) continue on with information
- // associated with the previous User. Currently the
- // only keys stored in the session are "turbine.user"
- // and "turbine.acl".
- if (actionName.equalsIgnoreCase
- (loginAction))
- {
- Enumeration names = data.getSession().getAttributeNames();
- if (names != null)
- {
- // copy keys into a new list, so we can clear the session
- // and not get ConcurrentModificationException
- List nameList = new ArrayList();
- while (names.hasMoreElements())
- {
- nameList.add(names.nextElement());
- }
-
- HttpSession session = data.getSession();
- Iterator nameIter = nameList.iterator();
- while (nameIter.hasNext())
- {
- try
- {
- session.removeAttribute((String)nameIter.next());
- }
- catch (IllegalStateException invalidatedSession)
- {
- break;
- }
- }
- }
- }
-
- //getLogger().debug( "Invoking login action." );
-
- ActionEventService action =
- (ActionEventService) data.getServiceManager().lookup( ActionEventService.ROLE );
- action.perform(data);
-
- // Remove the action parameter so the action is executed again later
- for ( Iterator itr = data.getParameters().keys(); itr.hasNext(); )
- {
- String key = (String) itr.next();
- if (key.equals( "action" ))
- {
- synchronized (itr)
- {
- itr.remove();
- }
- return;
- }
- }
- }
- }
-}
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/summit/ResourceControllerValve.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/summit/ResourceControllerValve.java
deleted file mode 100644
index 28cc4e44d..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/summit/ResourceControllerValve.java
+++ /dev/null
@@ -1,57 +0,0 @@
-package org.codehaus.jasf.summit;
-
-import java.io.IOException;
-
-import org.apache.avalon.framework.service.ServiceSelector;
-import org.codehaus.jasf.ResourceController;
-import org.codehaus.jasf.resources.PageResource;
-import org.codehaus.plexus.summit.exception.SummitException;
-import org.codehaus.plexus.summit.pipeline.valve.AbstractValve;
-import org.codehaus.plexus.summit.rundata.RunData;
-
-/**
- * Checks to see if the user is authorized to access the specified target.
- * If not, it redirects the user to a page telling them they aren't
- * authorized.
- *
- * @author Dan Diephouse
- * @since Feb 28, 2003
- */
-public class ResourceControllerValve
- extends AbstractValve
-{
-
- private String notAuthorizedPage = "NotAuthroized.vm";
-
- /**
- * @see org.codehaus.plexus.summit.pipeline.valve.Valve#invoke(org.codehaus.plexus.summit.rundata.RunData, org.codehaus.plexus.summit.pipeline.valve.ValveContext)
- */
- public void invoke(RunData data)
- throws IOException, SummitException
- {
- SecureRunData secData = (SecureRunData) data;
-
- try
- {
- ServiceSelector security =
- ( ServiceSelector ) data.getServiceManager().lookup( ResourceController.SELECTOR_ROLE );
-
- ResourceController controller =
- (ResourceController) security.select( PageResource.RESOURCE_TYPE );
-
- if ( !controller.isAuthorized(
- secData.getUser(),
- new PageResource( data.getTarget() )))
- {
- data.setTarget( notAuthorizedPage );
- }
-
- data.getServiceManager().release( controller );
- }
- catch (Exception e)
- {
- throw new SummitException(
- "Could not find the SecurityService!", e );
- }
- }
-}
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/summit/SecureActionEventValve.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/summit/SecureActionEventValve.java
deleted file mode 100644
index e5027d209..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/summit/SecureActionEventValve.java
+++ /dev/null
@@ -1,58 +0,0 @@
-package org.codehaus.jasf.summit;
-
-import java.io.IOException;
-
-import org.apache.avalon.framework.service.ServiceException;
-import org.apache.avalon.framework.service.ServiceManager;
-import org.codehaus.jasf.exception.UnauthorizedException;
-import org.codehaus.jasf.summit.activity.SecureActionEvent;
-import org.codehaus.plexus.summit.exception.SummitException;
-import org.codehaus.plexus.summit.pipeline.valve.AbstractValve;
-import org.codehaus.plexus.summit.rundata.RunData;
-
-/**
- * Executes an action after checking to see that the user has the neccessary
- * credentials using the ResourceController for the ClassResource.
- *
- * @author Dan Diephouse
- * @since Mar 1, 2003
- */
-public class SecureActionEventValve
- extends AbstractValve
-{
- private String notAuthorizedPage = "NotAuthroized.vm";
-
- private ServiceManager manager;
-
- /**
- * @see org.codehaus.plexus.summit.pipeline.valve.Valve#invoke(org.codehaus.plexus.summit.rundata.RunData, org.codehaus.plexus.summit.pipeline.valve.ValveContext)
- */
- public void invoke(RunData data)
- throws IOException, SummitException
- {
- try
- {
- SecureActionEvent actionEvent =
- ( SecureActionEvent ) manager.lookup( SecureActionEvent.ROLE );
-
- try
- {
- actionEvent.perform( data );
- }
- catch ( UnauthorizedException e )
- {
- data.setTarget( notAuthorizedPage );
- }
- catch ( Exception e )
- {
- throw new SummitException(
- "Could not execute action!", e );
- }
- }
- catch (ServiceException e)
- {
- throw new SummitException(
- "Could not find the SecurityService!", e );
- }
- }
-}
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/summit/SecureRunData.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/summit/SecureRunData.java
deleted file mode 100644
index cf33b6496..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/summit/SecureRunData.java
+++ /dev/null
@@ -1,154 +0,0 @@
-package org.codehaus.jasf.summit;
-
-import javax.servlet.http.HttpSession;
-
-import org.codehaus.plexus.summit.SummitConstants;
-import org.codehaus.plexus.summit.rundata.DefaultRunData;
-import org.codehaus.plexus.summit.view.ViewContext;
-
-import org.codehaus.jasf.entities.web.User;
-import org.codehaus.jasf.summit.session.SessionBindingEventProxy;
-
-/**
- * An implementation of RunData which keeps a user's Session.
- *
- * @author Dan Diephouse
- * @since Feb 28, 2003
- */
-public class SecureRunData extends DefaultRunData
-{
- public static final String USER_SESSION_KEY = "user.session";
-
- private User user;
-
- private String message;
-
- /**
- * @return String
- */
- public String getMessage()
- {
- return message;
- }
-
- /**
- * Sets the message.
- * @param message The message to set
- */
- public void setMessage(String message)
- {
- this.message = message;
- }
-
- public ViewContext getViewContext()
- {
- return (ViewContext) getMap().get( SummitConstants.VIEW_CONTEXT );
- }
-
- /**
- * Checks to see if there is a user for this session.
- *
- * @return boolean
- */
- public boolean hasUser()
- {
- return ( getUser() != null );
- }
-
- /**
- * Return the User for this session.
- *
- * @return User
- */
- public User getUser()
- {
- if ( user == null )
- {
- user = getUserFromSession( getSession() );
- }
- return user;
- }
-
- /**
- *
Saves this user object to the session.
- *
- *
Anyone overriding this method should be sure to leverage
- * the SessionBindingEventProxy when adding the user
- * and acl into the session. This allows hook functions to be called on
- * the User and AccessControlList when it is
- * removed from the session (which happens on session timeout).
- *
- * @param user The user to set
- */
- public void setUser(User user)
- {
- this.user = user;
- getSession().setAttribute(
- USER_SESSION_KEY, new SessionBindingEventProxy(user) );
- }
-
- /**
- * Attempts to get the User object from the session. If the user
- * does not exist in the session, null is returned.
- *
- *
Anyone overriding this method should be sure to leverage
- * the SessionBindingEventProxy when pulling the
- * User object from the session, allowing hook
- * functions to be called on the listener when it is removed from
- * the session (which happens on session timeout).
- *
- * @param session The session to retrieve a User
- * object from.
- * @return The retreived user, or null if errors
- * occur.
- * @see org.apache.turbine.services.rundata.SessionBindingEventProxy
- * @see org.apache.fulcrum.security.entity.User
- * @see org.apache.fulcrum.security.session.SessionBindingListener
- */
- public User getUserFromSession(HttpSession session)
- {
- try
- {
- SessionBindingEventProxy proxy =
- (SessionBindingEventProxy) session
- .getAttribute(USER_SESSION_KEY);
-
- // If the user isn't yet logged in, return null so that
- // the session validator can take the correct action
- // (i.e. make a temporary anonymous user).
- return (proxy == null ? null : (User) proxy.getListener());
- }
- catch (ClassCastException e)
- {
- String message = "User object did not implement User interface. "
- + "if you are sure the interface is implemented, the user " +
- "object in the session and this class may be loaded from " +
- "different classloaders. This has been known to happen " +
- "when using multiple turbine apps in tomcat that interact " +
- "through the use of RequestDispatcher.include or forward.";
-
- getLogger().error(message, e);
-
- return null;
- }
- }
-
- /**
- * Allows one to invalidate the user in a session.
- *
- * @param session The session from which to remove the user.
- * @return Whether the user was removed from the session.
- */
- public boolean removeUserFromSession(HttpSession session)
- {
- try
- {
- session.removeAttribute(USER_SESSION_KEY);
- }
- catch (Exception e)
- {
- return false;
- }
- return true;
- }
-}
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/summit/SessionValidatorValve.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/summit/SessionValidatorValve.java
deleted file mode 100644
index 8b108281f..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/summit/SessionValidatorValve.java
+++ /dev/null
@@ -1,43 +0,0 @@
-package org.codehaus.jasf.summit;
-
-import java.io.IOException;
-
-import org.codehaus.plexus.summit.exception.SummitException;
-import org.codehaus.plexus.summit.pipeline.valve.AbstractValve;
-import org.codehaus.plexus.summit.rundata.RunData;
-
-/**
- *
- * Validates that there is a user in the session. If there isn't one an
- * anonymous user is retrieved from the User Authenticator.
- *
- * This must be placed before the resolver valve.
- *
- * @author Dan Diephouse
- * @since Feb 28, 2003
- *
- * @todo How do I cancel execution of an action?
- */
-public class SessionValidatorValve
- extends AbstractValve
-{
-
- private String loginTarget = "Login.vm";
-
- /**
- * @see org.codehaus.plexus.summit.pipeline.valve.AbstractValve#invoke(org.codehaus.plexus.summit.rundata.RunData, org.codehaus.plexus.summit.pipeline.valve.ValveContext)
- */
- public void invoke(RunData data)
- throws IOException, SummitException
- {
- SecureRunData secData = (SecureRunData) data;
-
- if ( secData.getUser() == null ||
- !secData.getUser().isLoggedIn() )
- {
- data.setTarget( loginTarget );
-
- //data.setAction(null);
- }
- }
-}
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/summit/activity/SecureActionEvent.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/summit/activity/SecureActionEvent.java
deleted file mode 100644
index 14116a622..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/summit/activity/SecureActionEvent.java
+++ /dev/null
@@ -1,137 +0,0 @@
-package org.codehaus.jasf.summit.activity;
-
-import java.lang.reflect.InvocationTargetException;
-import java.lang.reflect.Method;
-
-import org.apache.avalon.framework.service.ServiceException;
-import org.apache.avalon.framework.service.ServiceManager;
-import org.apache.avalon.framework.service.ServiceSelector;
-import org.apache.avalon.framework.service.Serviceable;
-import org.codehaus.plexus.summit.activity.DefaultActionEventService;
-import org.codehaus.plexus.summit.exception.SummitException;
-import org.codehaus.plexus.summit.exception.SummitRuntimeException;
-import org.codehaus.plexus.summit.rundata.RunData;
-
-import org.codehaus.jasf.ResourceController;
-import org.codehaus.jasf.resources.ClassMethodResource;
-import org.codehaus.jasf.summit.SecureRunData;
-
-/**
- * A version of ActionEvent which checks to make sure the user is authorized
- * to access the method on the action using the ResourceController for the
- * ClassResource.
- *
- * @author Dan Diephouse
- * @since Mar 1, 2003
- */
-public class SecureActionEvent
- extends DefaultActionEventService
- implements Serviceable
-{
- private ServiceManager manager;
-
- /**
- * @see org.codehaus.plexus.summit.activity.ActionEvent#perform(org.codehaus.plexus.summit.rundata.RunData)
- */
- public void perform(RunData data) throws Exception
- {
- String action = data.getParameters().getString("action");
-
- if ( action != null )
- {
- String methodName = null;
- try
- {
- methodName = getMethodName( data, DEFAULT_METHOD );
- Class actionClass = getClass( action );
- Method method = getMethod( actionClass, data.getClass(), methodName, DEFAULT_METHOD );
-
- if ( action.equals("LoginUser") ||
- isAuthorized( (SecureRunData) data, method ) )
- {
- // The arguments to pass to the method to execute.
- Object[] args = new Object[1];
- args[0] = data;
-
- method.invoke( actionClass.newInstance(), args );
- }
- else
- {
- ((SecureRunData) data).setMessage(
- "You do not have permission to perform that action." );
- }
- }
- catch ( ClassNotFoundException e )
- {
- getLogger().debug( "Could not find the action.", e );
- }
- catch (InvocationTargetException ite)
- {
- // i have not seen this exception, in stacktraces generated
- // while doing my own testing on jdk1.3.1 and earlier. But
- // see it increasingly from stacktraces reported by others.
- // Its printStackTrace method should do The Right Thing, but
- // I suspect some implementation is not.
- // Unwrap it here, so that the original cause does not get lost.
- Throwable t = ite.getTargetException();
- if (t instanceof Exception)
- {
- throw (Exception)t;
- }
- else if (t instanceof java.lang.Error)
- {
- throw (java.lang.Error)t;
- }
- else
- {
- // this should not happen, but something could throw
- // an instance of Throwable
- throw new SummitRuntimeException("",t);
- }
- }
- }
- }
-
- /**
- * @param data
- * @param method
- * @return boolean
- */
- protected boolean isAuthorized(SecureRunData data, Method method)
- throws SummitException
- {
- ServiceSelector security;
- boolean isAuthorized;
-
- if ( data.getUser() == null ||
- !data.getUser().isLoggedIn() )
- return false;
-
- try
- {
- security = (ServiceSelector) manager.lookup(ResourceController.SELECTOR_ROLE);
-
- ResourceController controller =
- (ResourceController) security.select( ClassMethodResource.RESOURCE_TYPE );
-
- isAuthorized = controller.isAuthorized( data.getUser(), method );
-
- manager.release( controller );
-
- return isAuthorized;
- }
- catch (ServiceException e)
- {
- throw new SummitException( "Could not find the SecurityService!",
- e );
- }
- }
-
- /**
- * @see org.apache.avalon.framework.service.Serviceable#service(org.apache.avalon.framework.service.ServiceManager)
- */
- public void service(ServiceManager manager) throws ServiceException
- {
- this.manager = manager;
- }
-}
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/summit/session/DefaultSession.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/summit/session/DefaultSession.java
deleted file mode 100644
index a7d057d6c..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/summit/session/DefaultSession.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package org.codehaus.jasf.summit.session;
-
-/* ====================================================================
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 2001 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * 3. The end-user documentation included with the redistribution,
- * if any, must include the following acknowledgment:
- * "This product includes software developed by the
- * Apache Software Foundation (http://www.apache.org/)."
- * Alternately, this acknowledgment may appear in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The names "Apache" and "Apache Software Foundation" and
- * "Apache Turbine" must not be used to endorse or promote products
- * derived from this software without prior written permission. For
- * written permission, please contact apache@apache.org.
- *
- * 5. Products derived from this software may not be called "Apache",
- * "Apache Turbine", nor may "Apache" appear in their name, without
- * prior written permission of the Apache Software Foundation.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ====================================================================
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Apache Software Foundation. For more
- * information on the Apache Software Foundation, please see
- * .
- */
-
-import javax.servlet.http.HttpSession;
-
-/**
- * Default implementation of the
- * Session interface.
- *
- * @author Daniel Rall
- * @version $Id$
- */
-public class DefaultSession implements Session
-{
- private HttpSession session;
-
- public DefaultSession(HttpSession session)
- {
- this.session = session;
- }
-}
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/summit/session/DefaultSessionBindingEvent.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/summit/session/DefaultSessionBindingEvent.java
deleted file mode 100644
index d98b6bb22..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/summit/session/DefaultSessionBindingEvent.java
+++ /dev/null
@@ -1,86 +0,0 @@
-package org.codehaus.jasf.summit.session;
-
-/* ====================================================================
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 2001 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * 3. The end-user documentation included with the redistribution,
- * if any, must include the following acknowledgment:
- * "This product includes software developed by the
- * Apache Software Foundation (http://www.apache.org/)."
- * Alternately, this acknowledgment may appear in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The names "Apache" and "Apache Software Foundation" and
- * "Apache Turbine" must not be used to endorse or promote products
- * derived from this software without prior written permission. For
- * written permission, please contact apache@apache.org.
- *
- * 5. Products derived from this software may not be called "Apache",
- * "Apache Turbine", nor may "Apache" appear in their name, without
- * prior written permission of the Apache Software Foundation.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ====================================================================
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Apache Software Foundation. For more
- * information on the Apache Software Foundation, please see
- * .
- */
-
-import javax.servlet.http.HttpSessionBindingEvent;
-
-/**
- * Default implementation of the
- * {@link org.apache.fulcrum.security.session.SessionBindingEvent} interface.
- *
- * @author Daniel Rall
- * @version $Id$
- */
-public class DefaultSessionBindingEvent implements SessionBindingEvent
-{
- private Session session;
- private String name;
-
- public DefaultSessionBindingEvent(HttpSessionBindingEvent event)
- {
- session = new DefaultSession(event.getSession());
- name = event.getName();
- }
-
- public Session getSession()
- {
- return session;
- }
-
- public String getName()
- {
- return name;
- }
-}
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/summit/session/Session.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/summit/session/Session.java
deleted file mode 100644
index afa685834..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/summit/session/Session.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package org.codehaus.jasf.summit.session;
-
-/* ====================================================================
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 2001 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * 3. The end-user documentation included with the redistribution,
- * if any, must include the following acknowledgment:
- * "This product includes software developed by the
- * Apache Software Foundation (http://www.apache.org/)."
- * Alternately, this acknowledgment may appear in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The names "Apache" and "Apache Software Foundation" and
- * "Apache Turbine" must not be used to endorse or promote products
- * derived from this software without prior written permission. For
- * written permission, please contact apache@apache.org.
- *
- * 5. Products derived from this software may not be called "Apache",
- * "Apache Turbine", nor may "Apache" appear in their name, without
- * prior written permission of the Apache Software Foundation.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ====================================================================
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Apache Software Foundation. For more
- * information on the Apache Software Foundation, please see
- * .
- */
-
-/**
- * This interface provides access to the {@link
- * javax.servlet.HttpSession} interface.
- *
- * @author Daniel Rall
- * @version $Id$
- */
-public interface Session
-{
-}
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/summit/session/SessionBindingEvent.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/summit/session/SessionBindingEvent.java
deleted file mode 100644
index 7fb51f369..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/summit/session/SessionBindingEvent.java
+++ /dev/null
@@ -1,81 +0,0 @@
-package org.codehaus.jasf.summit.session;
-
-/* ====================================================================
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 2001 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * 3. The end-user documentation included with the redistribution,
- * if any, must include the following acknowledgment:
- * "This product includes software developed by the
- * Apache Software Foundation (http://www.apache.org/)."
- * Alternately, this acknowledgment may appear in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The names "Apache" and "Apache Software Foundation" and
- * "Apache Turbine" must not be used to endorse or promote products
- * derived from this software without prior written permission. For
- * written permission, please contact apache@apache.org.
- *
- * 5. Products derived from this software may not be called "Apache",
- * "Apache Turbine", nor may "Apache" appear in their name, without
- * prior written permission of the Apache Software Foundation.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ====================================================================
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Apache Software Foundation. For more
- * information on the Apache Software Foundation, please see
- * .
- */
-
-/**
- * This interface is modelled after
- * {@link javax.servlet.http.HttpSessionBindingEvent}.
- *
- * @author Daniel Rall
- * @version $Id$
- */
-public interface SessionBindingEvent
-{
- /**
- * Returns the name with which the object is bound to or unbound
- * from the session.
- *
- * @return The name used for binding.
- */
- String getName();
-
- /**
- * Returns the session to or from which the object is bound or
- * unbound.
- *
- * @return A session object.
- */
- Session getSession();
-}
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/summit/session/SessionBindingEventProxy.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/summit/session/SessionBindingEventProxy.java
deleted file mode 100644
index a47a1089d..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/summit/session/SessionBindingEventProxy.java
+++ /dev/null
@@ -1,90 +0,0 @@
-package org.codehaus.jasf.summit.session;
-
-/* ====================================================================
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 2001 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * 3. The end-user documentation included with the redistribution,
- * if any, must include the following acknowledgment:
- * "This product includes software developed by the
- * Apache Software Foundation (http://www.apache.org/)."
- * Alternately, this acknowledgment may appear in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The names "Apache" and "Apache Software Foundation" and
- * "Apache Turbine" must not be used to endorse or promote products
- * derived from this software without prior written permission. For
- * written permission, please contact apache@apache.org.
- *
- * 5. Products derived from this software may not be called "Apache",
- * "Apache Turbine", nor may "Apache" appear in their name, without
- * prior written permission of the Apache Software Foundation.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ====================================================================
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Apache Software Foundation. For more
- * information on the Apache Software Foundation, please see
- * .
- */
-
-import javax.servlet.http.HttpSessionBindingEvent;
-import javax.servlet.http.HttpSessionBindingListener;
-
-/**
- * Proxies session binding/unbinding events from Summit to Fulcrum.
- *
- * @author Daniel Rall
- * @version $Id$
- */
-public class SessionBindingEventProxy
- implements HttpSessionBindingListener, java.io.Serializable
-{
- private SessionBindingListener listener = null;
-
- public SessionBindingEventProxy(SessionBindingListener listener)
- {
- this.listener = listener;
- }
-
- public SessionBindingListener getListener()
- {
- return listener;
- }
-
- public void valueBound(HttpSessionBindingEvent event)
- {
- listener.valueBound(new DefaultSessionBindingEvent(event));
- }
-
- public void valueUnbound(HttpSessionBindingEvent event)
- {
- listener.valueUnbound(new DefaultSessionBindingEvent(event));
- }
-}
diff --git a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/summit/session/SessionBindingListener.java b/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/summit/session/SessionBindingListener.java
deleted file mode 100644
index f073deb9a..000000000
--- a/plexus-avalon-components/jasf/src/main/org/codehaus/jasf/summit/session/SessionBindingListener.java
+++ /dev/null
@@ -1,81 +0,0 @@
-package org.codehaus.jasf.summit.session;
-
-/* ====================================================================
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 2001 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * 3. The end-user documentation included with the redistribution,
- * if any, must include the following acknowledgment:
- * "This product includes software developed by the
- * Apache Software Foundation (http://www.apache.org/)."
- * Alternately, this acknowledgment may appear in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The names "Apache" and "Apache Software Foundation" and
- * "Apache Turbine" must not be used to endorse or promote products
- * derived from this software without prior written permission. For
- * written permission, please contact apache@apache.org.
- *
- * 5. Products derived from this software may not be called "Apache",
- * "Apache Turbine", nor may "Apache" appear in their name, without
- * prior written permission of the Apache Software Foundation.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ====================================================================
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Apache Software Foundation. For more
- * information on the Apache Software Foundation, please see
- * .
- */
-
-/**
- * This interface is modelled after
- * {@link javax.servlet.http.HttpSessionBindingListener}.
- *
- * @author Daniel Rall
- * @version $Id$
- */
-public interface SessionBindingListener
-{
- /**
- * Notifies the object that it is being bound to a session and
- * identifies the session.
- *
- * @param event A SessionBindingEvent object.
- */
- void valueBound(SessionBindingEvent event);
-
- /**
- * Notifies the object that it is being unbound from a session and
- * identifies the session.
- *
- * @param event A SessionBindingEvent object.
- */
- void valueUnbound(SessionBindingEvent event);
-}
diff --git a/plexus-avalon-components/jasf/src/test-conf/pages.xml b/plexus-avalon-components/jasf/src/test-conf/pages.xml
deleted file mode 100644
index 477e493ff..000000000
--- a/plexus-avalon-components/jasf/src/test-conf/pages.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
-
-
-
-
- everyone.html
- employee_read
-
-
- emptycred.html
-
-
-
- formanagers
- employee_update
-
-
- employees.html
- employee_update
-
-
- badcred.html
- guest
-
-
-
-
diff --git a/plexus-avalon-components/jasf/src/test-conf/roles.xml b/plexus-avalon-components/jasf/src/test-conf/roles.xml
deleted file mode 100644
index 4e24a8dad..000000000
--- a/plexus-avalon-components/jasf/src/test-conf/roles.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
- manager
-
- employee_read
- employee_delete
- employee_update
-
-
-
- employee
-
- employee_read
-
-
-
\ No newline at end of file
diff --git a/plexus-avalon-components/jasf/src/test-conf/users.xml b/plexus-avalon-components/jasf/src/test-conf/users.xml
deleted file mode 100644
index dd283a8a8..000000000
--- a/plexus-avalon-components/jasf/src/test-conf/users.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
- dan
- password
-
-
-
-
-
-
- bob
- password
-
-
-
-
-
\ No newline at end of file
diff --git a/plexus-avalon-components/jasf/src/test/org/codehaus/jasf/impl/basic/BasicSecurityTest.java b/plexus-avalon-components/jasf/src/test/org/codehaus/jasf/impl/basic/BasicSecurityTest.java
deleted file mode 100644
index 6925cf6bb..000000000
--- a/plexus-avalon-components/jasf/src/test/org/codehaus/jasf/impl/basic/BasicSecurityTest.java
+++ /dev/null
@@ -1,96 +0,0 @@
-package org.codehaus.jasf.impl.basic;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
-
-import org.apache.avalon.framework.service.ServiceSelector;
-import org.codehaus.jasf.Authenticator;
-import org.codehaus.jasf.ResourceController;
-import org.codehaus.jasf.resources.PageResource;
-import org.codehaus.plexus.PlexusTestCase;
-
-/**
- * Test the xml web security package
- *
- * @author Dan Diephouse
- * @since Nov 23, 2002
- */
-public class BasicSecurityTest extends PlexusTestCase
-{
-
- ServiceSelector authSelector;
- ServiceSelector resSelector;
-
- public BasicSecurityTest( String testName ) throws Exception
- {
- super( testName );
- }
-
- public static void main( String[] args ) {
- TestRunner.run( suite() );
- }
-
- public static Test suite() {
- return new TestSuite(BasicSecurityTest.class);
- }
-
- BasicUser entity;
-
- public void setUp() throws Exception
- {
- super.setUp();
-
- authSelector = (ServiceSelector) lookup(Authenticator.SELECTOR_ROLE);
- resSelector = (ServiceSelector) lookup(ResourceController.SELECTOR_ROLE);
-
- Authenticator controller =
- (Authenticator) authSelector.select(BasicUser.ENTITY_TYPE);
- entity = (BasicUser) controller.authenticate( "dan", "password" );
- }
-
- public void testUserAuthentication() throws Exception
- {
- // Test Authentication
- if (entity == null)
- throw new Exception("XmlUser was null!");
-
- assertTrue( entity.getUserName() != null);
- }
-
- public void testPositiveAuthorization() throws Exception
- {
-
- // Test Authorization
- ResourceController controller =
- (ResourceController) resSelector.select(PageResource.RESOURCE_TYPE);
-
- assertTrue( controller != null );
-
- assertTrue( controller.isAuthorized(entity,
- new PageResource("formanagers/employees.html")) );
-
- assertTrue( controller.isAuthorized(entity,
- new PageResource("everyone.html")) );
-
- assertTrue( controller.isAuthorized(entity,
- new PageResource("emptycred.html")) );
- }
-
- public void testNegativeAuthorization() throws Exception
- {
- // Test Authorization
- ResourceController controller =
- (ResourceController) resSelector.select(PageResource.RESOURCE_TYPE);
-
- assertTrue( controller != null );
-
- // Non existant directory
- assertTrue( !controller.isAuthorized(entity,
- new PageResource("writedir" )) );
-
- // NOn existant credential
- assertTrue( !controller.isAuthorized(entity,
- new PageResource("formanagers/badcred.html" )) );
- }
-}
diff --git a/plexus-avalon-components/jasf/src/test/org/codehaus/jasf/impl/basic/BasicSecurityTest.xml b/plexus-avalon-components/jasf/src/test/org/codehaus/jasf/impl/basic/BasicSecurityTest.xml
deleted file mode 100644
index 1547e8b10..000000000
--- a/plexus-avalon-components/jasf/src/test/org/codehaus/jasf/impl/basic/BasicSecurityTest.xml
+++ /dev/null
@@ -1,83 +0,0 @@
-
-
-
-
-
-
-
-
- avalon
-
-
- avalon
- Avalon Lifecycle Handler
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- org.codehaus.jasf.entities.web.User
- org.codehaus.jasf.Authenticator
- org.codehaus.jasf.impl.basic.UserAuthenticationController
-
- ${basedir}/src/test-conf/users.xml
- ${basedir}/src/test-conf/roles.xml
-
-
-
-
- org.codehaus.jasf.resources.ClassMethodResource
- org.codehaus.jasf.ResourceController
- org.codehaus.jasf.impl.basic.ClassAccessController
-
- true
-
-
-
-
- org.codehaus.jasf.resources.ProjectPageResource
- org.codehaus.jasf.ResourceController
- org.codehaus.jasf.impl.global.NoAccessResourceController
-
-
-
-
-
- org.codehaus.jasf.resources.PageResource
- org.codehaus.jasf.ResourceController
- org.codehaus.jasf.impl.basic.PageAccessController
-
- ${basedir}/src/test-conf/pages.xml
-
-
-
-
-
-
diff --git a/plexus-avalon-components/jasf/src/test/org/codehaus/jasf/impl/basic/ClassSecurityTest.java b/plexus-avalon-components/jasf/src/test/org/codehaus/jasf/impl/basic/ClassSecurityTest.java
deleted file mode 100644
index 748b62193..000000000
--- a/plexus-avalon-components/jasf/src/test/org/codehaus/jasf/impl/basic/ClassSecurityTest.java
+++ /dev/null
@@ -1,108 +0,0 @@
-package org.codehaus.jasf.impl.basic;
-
-import java.lang.reflect.Method;
-import java.util.Collection;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
-
-import org.apache.avalon.framework.service.ServiceSelector;
-import org.apache.commons.attributes.Attributes;
-import org.codehaus.jasf.Authenticator;
-import org.codehaus.jasf.ResourceController;
-import org.codehaus.jasf.resources.ClassMethodResource;
-import org.codehaus.jasf.resources.Credential;
-import org.codehaus.plexus.PlexusTestCase;
-
-/**
- * Test the xml web security package
- *
- * @author Dan Diephouse
- * @since Nov 23, 2002
- */
-public class ClassSecurityTest extends PlexusTestCase
-{
-
- ServiceSelector authSelector;
- ServiceSelector resSelector;
-
- public ClassSecurityTest( String testName ) throws Exception
- {
- super( testName );
- }
-
- public static void main( String[] args ) {
- TestRunner.run( suite() );
- }
-
- public static Test suite() {
- return new TestSuite(ClassSecurityTest.class);
- }
-
- BasicUser entity;
-
- public void setUp() throws Exception
- {
- super.setUp();
-
- authSelector = (ServiceSelector) lookup(Authenticator.SELECTOR_ROLE);
- resSelector = (ServiceSelector) lookup(ResourceController.SELECTOR_ROLE);
-
- Authenticator controller =
- (Authenticator) authSelector.select(BasicUser.ENTITY_TYPE);
- entity = (BasicUser) controller.authenticate( "dan", "password" );
- }
-
- public void testAttributes() throws Exception
- {
- Method restrictedMethod =
- ClassSecurityTest.class.getDeclaredMethod("myRestrictedMethod", new Class[0]);
-
- assertTrue( Attributes.hasAttributeType(restrictedMethod, Credential.class) );
-
- Collection attributes = Attributes.getAttributes( restrictedMethod );
-
- Credential cred = (Credential) attributes.iterator().next();
-
- assertTrue( cred.getName().equals("employee_read") );
-
- assertTrue( !cred.getName().equals("blah") );
-
- ResourceController controller =
- (ResourceController) resSelector.select(ClassMethodResource.RESOURCE_TYPE);
-
- assertFalse( ((ClassAccessController)controller).getDefaultAuthorization() );
-
- assertTrue( controller.isAuthorized(entity, restrictedMethod) );
- }
-
- public void testBadCredentials() throws Exception
- {
- Method restrictedMethod =
- ClassSecurityTest.class.getDeclaredMethod("myBadRestrictedMethod", new Class[0]);
-
- ResourceController controller =
- (ResourceController) resSelector.select(ClassMethodResource.RESOURCE_TYPE);
-
- assertFalse( controller.isAuthorized(entity, restrictedMethod) );
- }
-
- /**
- * Pretends to do something that needs security.
- *
- * @@Credential("employee_read")
- */
- public void myRestrictedMethod()
- {
- }
-
- /**
- * Pretends to do something that needs security.
- *
- * @@Credential("wontwork")
- */
- public void myBadRestrictedMethod()
- {
- }
-}
diff --git a/plexus-avalon-components/jasf/src/test/org/codehaus/jasf/impl/basic/ClassSecurityTest.xml b/plexus-avalon-components/jasf/src/test/org/codehaus/jasf/impl/basic/ClassSecurityTest.xml
deleted file mode 100644
index 563a8cf47..000000000
--- a/plexus-avalon-components/jasf/src/test/org/codehaus/jasf/impl/basic/ClassSecurityTest.xml
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
-
-
-
-
-
-
- avalon
-
-
- avalon
- Avalon Lifecycle Handler
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- org.codehaus.jasf.SecurityService
- org.codehaus.jasf.JASFSecurityService
-
-
-
-
-
-
-
-
-
-
-
-
-
- org.codehaus.jasf.entities.web.User
- org.codehaus.jasf.Authenticator
- org.codehaus.jasf.impl.basic.UserAuthenticationController
-
- ${basedir}/src/test-conf/users.xml
- ${basedir}/src/test-conf/roles.xml
-
-
-
-
- org.codehaus.jasf.resources.ClassMethodResource
- org.codehaus.jasf.ResourceController
- org.codehaus.jasf.impl.basic.ClassAccessController
-
- false
-
-
-
-
- org.codehaus.jasf.resources.ProjectPageResource
- org.codehaus.jasf.ResourceController
- org.codehaus.jasf.impl.global.NoAccessResourceController
-
-
-
-
-
- org.codehaus.jasf.resources.PageResource
- org.codehaus.jasf.ResourceController
- org.codehaus.jasf.impl.basic.PageAccessController
-
- ${basedir}/src/test-conf/pages.xml
-
-
-
-
-
-
diff --git a/plexus-avalon-components/jasf/xdocs/basic.xml b/plexus-avalon-components/jasf/xdocs/basic.xml
deleted file mode 100644
index 7b9e6ff5d..000000000
--- a/plexus-avalon-components/jasf/xdocs/basic.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
-
-
- Basic Package
- Dan Diephouse
-
-
-
-
-
-
- The basic package (org.apache.fulcrum.jasf.impl.basic) provides a bunch of
- ResourceAccessControllers to secure your resources. They are all xml based and
- entities being passed to them must inherit the BasicEntity interface.
-
-
- See BasicSecurityTest for info on how to use it at this point.
-
-
-
-
-
\ No newline at end of file
diff --git a/plexus-avalon-components/jasf/xdocs/building.xml b/plexus-avalon-components/jasf/xdocs/building.xml
deleted file mode 100644
index fd48921d4..000000000
--- a/plexus-avalon-components/jasf/xdocs/building.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
-
- Building
- Dan Diephouse
-
-
-
-
-
-
- Maven makes building easy just do "maven java:compile"!
- Except, you must download
- Commons Attributes
- from cvs. Make sure to install the jar via "maven jar:install" and the maven plugin
- that comes with it.
-
-
-
-
-
\ No newline at end of file
diff --git a/plexus-avalon-components/jasf/xdocs/developers.xml b/plexus-avalon-components/jasf/xdocs/developers.xml
deleted file mode 100644
index 6c8a9a6e4..000000000
--- a/plexus-avalon-components/jasf/xdocs/developers.xml
+++ /dev/null
@@ -1,66 +0,0 @@
-
-
-
-
-
- Developer's Guide
- Dan Diephouse
-
-
-
-
-
-
- The developers guide is divided up into the following sections:
-
- It was deemed to hard and confusing to create a framework which had a
- ResourceAccessController for every entity and resource combination.
- Therefore if you need to support multiple entity types in a single
- ResourceAccessController you must create a single interface or class which
- entities inherit from. You must then use this class in your access controllers.
-
-
- See BasicEntity in the basic package for an example.
-
-
-
-
-
- AbstractPageAccessController makes it easy to tie in a resource to credential
- mapping in your ResourceAccessControllers. See the javadocs!
-
-
-
-
-
\ No newline at end of file
diff --git a/plexus-avalon-components/jasf/xdocs/framework.xml b/plexus-avalon-components/jasf/xdocs/framework.xml
deleted file mode 100644
index f59404229..000000000
--- a/plexus-avalon-components/jasf/xdocs/framework.xml
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
-
-
-
- Overview
- Dan Diephouse
-
-
-
-
-
-
- There are four different parts to any good security framework:
-
- This framework seeks to seperate these parts, making them
- sufficiently flexible so that you may reuse your security code
- in a variety of applications and environments.
-
-
-
-
- Authentication determines if an entity, someone or something that wants to
- interact with the system, is allowed to. Entities are things
- or people interacting with the system. They can range from regular users
- to company accounts to automated computer systems. Authenticating these
- entities consists of passing the unique entity id and a token, or password.
- The corresponding class in the security framework is EntityAuthenticationController.
- It is easy to extend and create your own.
-
-
-
-
-
-
- Session management should be handled the application using the framework.
- JASF is not responsible for handling validation/invalidation of the
- session.
-
-
-
-
- When we write security code what we are actually trying to do
- is restrict access to certain resources. These resources require
- that an entity has specific permissions to access or use them. For
- example, an administration web page may require that the user is
- an administrator.
-
-
- However the relation between entities and resources is different for every
- application (that is why there is this framework). For example, a users
- credentials might change depending on the resource being accessed. Then, if
- there is then to be a generic framework this must be totally left up to the
- developer.
-
-
- This is where the ResourceAccessController comes in. It has one simple method:
-
-public interface ResourceAccessController
-{
- public boolean isAuthorized( Object entity, Object resource );
-}
-
-
-
- As can be seen, the relation between the entity and the resource is left totally
- up to the implementation. But, this doesn't mean you have to implement these all
- yourself. The framework comes prepackaged with some implementations already.
-
-
- Part of the motivation for this framework is to stop people from
- over-complicating permissions. For example, lets say you
- have a website that keeps track of projects. For each project
- a user can have different permissions. Lets keep it simple for
- now - each user can have read and/or write permissions for a project.
- Most people would instinctively say that the project is part of
- the required permissions for the system. But, the project is the
- resource that we are trying to access. The permission is only
- the "read" or "write" part.
-
-
-
-
-
- Security management is that area that covers managing users, groups of users,
- roles, and permissions. This is NOT handled by this framework. The
- reason for this is is that it is implementation/application specific. Take
- groups of users for example - they have nothing to do with Authentication or
- Authorization. Another example is when you are using a predetermined service
- that you have no control over. This could be something like a Windows NT server
- or Microsoft's passport service. This is why these functions have been left
- out of the framework.
-
-
-
-
-
\ No newline at end of file
diff --git a/plexus-avalon-components/jasf/xdocs/goals.xml b/plexus-avalon-components/jasf/xdocs/goals.xml
deleted file mode 100644
index 0ddc8b0f4..000000000
--- a/plexus-avalon-components/jasf/xdocs/goals.xml
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
-
-
-
- Goals
- Dan Diephouse
-
-
-
-
-
-
-
-
- Allow Components to require certain security credentials independent
- of the security framework being employed.
-
-
- Secure web pages based on how much access the user is given.
-
-
- Seperate authentication, authorization, and management.
-
-
- Allow the same security model to be used whatever the view
- mechanism - the web, FTP, WebDAV, a phone, etc.
-
-
- For a specific web page we might want to request that a user is part
- of a group and has a specific credential in the group. That credential
- might vary from group to group.
-
-
- Allow different entity types to interact with the system.
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/plexus-avalon-components/jasf/xdocs/images/envoi_small.png b/plexus-avalon-components/jasf/xdocs/images/envoi_small.png
deleted file mode 100644
index 676bb4d26..000000000
Binary files a/plexus-avalon-components/jasf/xdocs/images/envoi_small.png and /dev/null differ
diff --git a/plexus-avalon-components/jasf/xdocs/index.xml b/plexus-avalon-components/jasf/xdocs/index.xml
deleted file mode 100644
index 2ead753a8..000000000
--- a/plexus-avalon-components/jasf/xdocs/index.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
-
-
-
- Main
- Dan Diephouse
-
-
-
-
-
-
- JASF (Java Application Security Framework) seeks
- to establish a common ground for
- applications to integrate security for users, computers or
- anything else that interacts with one's code. By creating a
- flexible mechanism, one can use different security methods,
- but still use the same Components from application to application.
-
-
- The framework creates this flexible mechanism by utilizing the Command
- Pattern. See your local bookstore for more on this pattern.
-
-
- The framework can be downloaded here and
- the source code can be found here.
-
-
-
-
-
\ No newline at end of file
diff --git a/plexus-avalon-components/jasf/xdocs/methods.xml b/plexus-avalon-components/jasf/xdocs/methods.xml
deleted file mode 100644
index 8763bd0cd..000000000
--- a/plexus-avalon-components/jasf/xdocs/methods.xml
+++ /dev/null
@@ -1,67 +0,0 @@
-
-
-
-
-
- Class Methods
- Dan Diephouse
-
-
-
-
-
- In many applications it is beneficial to restrict access to certain methods
- depending on the user's credentials. This framework provides a way to do this
- using
- Commons Attributes.
- With commons attributes you can define attributes for each
- method in your javadocs. With these we can set the necessary credentials to
- execute a certain method. You just need to add the "@credential" tag like so:
-
-/**
- * Pretends to do something that needs security.
- *
- * @credential employee_read
- */
-public void myRestrictedMethod()
-{
-}
-
-
-
- The ClassAccessControllers are then able to read this attribute and determine if
- an entity has the required credentials to execute it.
-
-
- The basic and torque packages provide some ResourceAccessControllers for the methods.
- To use them you pass your entity and the name of the method. Here is an example
- from the ClassSecurityTest:
-
-Method restrictedMethod =
- ClassSecurityTest.class.getDeclaredMethod("myBadRestrictedMethod", new Class[0]);
-ResourceAccessController controller =
- resourceManager.lookup(ClassMethodResource.RESOURCE_TYPE);
-
-boolean authorizerd = controller.isAuthorized(entity, restrictedMethod) );
-
-
-
- You need to lookup the method manually. It would be nice to develop an aspect
- oriented system with attributes, but it is impossible to do so because you don't
- know what entity is accessing the method.
-
-
-
- You may ask, "well if I need to look up my method every time, this doesn't seem
- worth it." You may very well be right. But it wouldn't have been designed without
- a use :).
-
-
- In Turbine ActionEvents can be
- called from one's templates. These action events are run through introspection
- and it is therefore very easy to tie in this kind of access control.
-
-
-
-
-
\ No newline at end of file
diff --git a/plexus-avalon-components/jasf/xdocs/navigation.xml b/plexus-avalon-components/jasf/xdocs/navigation.xml
deleted file mode 100644
index 0f22d206e..000000000
--- a/plexus-avalon-components/jasf/xdocs/navigation.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
- JASF
-
-
-
-
-
-
-
diff --git a/plexus-avalon-components/jasf/xdocs/related.xml b/plexus-avalon-components/jasf/xdocs/related.xml
deleted file mode 100644
index be3107316..000000000
--- a/plexus-avalon-components/jasf/xdocs/related.xml
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
-
-
-
- Related Information
- Dan Diephouse
-
-
-
-
-
-
-