You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by jg...@apache.org on 2009/03/15 20:56:29 UTC

svn commit: r754734 [1/2] - in /openejb/trunk/sandbox/openejb-eclipse-plugin: assembly/ assembly/src/main/assembly/ features/org.apache.openejb.feature.server/ features/org.apache.openejb.feature/ plugins/ plugins/echo.stateless.bean/ plugins/echo.stat...

Author: jgallimore
Date: Sun Mar 15 19:56:27 2009
New Revision: 754734

URL: http://svn.apache.org/viewvc?rev=754734&view=rev
Log:
Renmaed WTP server

Added:
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/pom.xml
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/pom.xml
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/META-INF/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/META-INF/MANIFEST.MF
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/about.html
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/build.properties
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/buildfiles/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/icons/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/icons/obj16/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/icons/obj16/openejb.gif   (with props)
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/maven-eclipse.xml
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/plugin.properties
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/plugin.xml
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/plugin_de.properties
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/pom.xml
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/servers/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/eclipse/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/eclipse/server/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/eclipse/server/Activator.java
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/eclipse/server/Messages.java
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBLaunchConfigurationDelegate.java
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBLaunchConfigurationTabGroup.java
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBRuntimeClasspathProviderDelegate.java
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBRuntimeDelegate.java
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBRuntimeFragment.java
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBServer.java
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBServerBehaviour.java
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBServerFragment.java
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/eclipse/server/ServerDeployer.java
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/resources/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/resources/org/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/resources/org/apache/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/resources/org/apache/openejb/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/resources/org/apache/openejb/eclipse/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/resources/org/apache/openejb/eclipse/server/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/resources/org/apache/openejb/eclipse/server/messages.properties
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/resources/org/apache/openejb/eclipse/server/messages_de.properties
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/resources/org/apache/openejb/eclipse/server/runtime.gif   (with props)
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/test/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/test/java/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/test/resources/
Removed:
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/
Modified:
    openejb/trunk/sandbox/openejb-eclipse-plugin/assembly/pom.xml
    openejb/trunk/sandbox/openejb-eclipse-plugin/assembly/src/main/assembly/deployable.xml
    openejb/trunk/sandbox/openejb-eclipse-plugin/assembly/src/main/assembly/updatesite.xml
    openejb/trunk/sandbox/openejb-eclipse-plugin/features/org.apache.openejb.feature.server/feature.xml
    openejb/trunk/sandbox/openejb-eclipse-plugin/features/org.apache.openejb.feature/feature.xml
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.help/plugin.xml
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.help/toc.xml
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/pom.xml

Modified: openejb/trunk/sandbox/openejb-eclipse-plugin/assembly/pom.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/assembly/pom.xml?rev=754734&r1=754733&r2=754734&view=diff
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/assembly/pom.xml (original)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/assembly/pom.xml Sun Mar 15 19:56:27 2009
@@ -58,7 +58,7 @@
 		</dependency>
 		<dependency>
 			<groupId>org.apache.openejb</groupId>
-			<artifactId>org.apache.openejb.server</artifactId>
+			<artifactId>org.apache.openejb.wtp.server</artifactId>
 			<version>1.0.2</version>
 		</dependency>
 		<dependency>

Modified: openejb/trunk/sandbox/openejb-eclipse-plugin/assembly/src/main/assembly/deployable.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/assembly/src/main/assembly/deployable.xml?rev=754734&r1=754733&r2=754734&view=diff
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/assembly/src/main/assembly/deployable.xml (original)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/assembly/src/main/assembly/deployable.xml Sun Mar 15 19:56:27 2009
@@ -32,7 +32,7 @@
 			<unpack>false</unpack>
 			<includes>
 				<include>org.apache.openejb:org.apache.openejb.helper.annotation</include>
-				<include>org.apache.openejb:org.apache.openejb.server</include>
+				<include>org.apache.openejb:org.apache.openejb.wtp.server</include>
 				<include>org.apache.openejb:org.apache.openejb.help</include>
 				<include>org.apache.openejb:org.apache.openejb.help.nl1</include>
 				<include>org.apache.openejb:org.apache.openejb.help.nl2</include>

Modified: openejb/trunk/sandbox/openejb-eclipse-plugin/assembly/src/main/assembly/updatesite.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/assembly/src/main/assembly/updatesite.xml?rev=754734&r1=754733&r2=754734&view=diff
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/assembly/src/main/assembly/updatesite.xml (original)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/assembly/src/main/assembly/updatesite.xml Sun Mar 15 19:56:27 2009
@@ -32,7 +32,7 @@
 			<unpack>false</unpack>
 			<includes>
 				<include>org.apache.openejb:org.apache.openejb.helper.annotation</include>
-				<include>org.apache.openejb:org.apache.openejb.server</include>
+				<include>org.apache.openejb:org.apache.openejb.wtp.server</include>
 				<include>org.apache.openejb:org.apache.openejb.help</include>
 				<include>org.apache.openejb:org.apache.openejb.help.nl1</include>
 				<include>org.apache.openejb:org.apache.openejb.help.nl2</include>

Modified: openejb/trunk/sandbox/openejb-eclipse-plugin/features/org.apache.openejb.feature.server/feature.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/features/org.apache.openejb.feature.server/feature.xml?rev=754734&r1=754733&r2=754734&view=diff
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/features/org.apache.openejb.feature.server/feature.xml (original)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/features/org.apache.openejb.feature.server/feature.xml Sun Mar 15 19:56:27 2009
@@ -40,7 +40,7 @@
    </url>
 
    <plugin
-         id="org.apache.openejb.server"
+         id="org.apache.openejb.wtp.server"
          download-size="0"
          install-size="0"
          version="1.0.2"

Modified: openejb/trunk/sandbox/openejb-eclipse-plugin/features/org.apache.openejb.feature/feature.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/features/org.apache.openejb.feature/feature.xml?rev=754734&r1=754733&r2=754734&view=diff
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/features/org.apache.openejb.feature/feature.xml (original)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/features/org.apache.openejb.feature/feature.xml Sun Mar 15 19:56:27 2009
@@ -1,19 +1,19 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ 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.
+<!--
+  ~ 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.
   -->
 <feature
       id="org.apache.openejb.feature"
@@ -58,4 +58,43 @@
          version="1.0.2"
          unpack="false"/>
 
+   <plugin
+         id="org.apache.openejb.help"
+         download-size="0"
+         install-size="0"
+         version="0.0.0"
+         unpack="false"/>
+
+   <plugin
+         id="org.apache.openejb.help.nl1"
+         download-size="0"
+         install-size="0"
+         version="0.0.0"
+         fragment="true"
+         unpack="false"/>
+
+   <plugin
+         id="org.apache.openejb.help.nl2"
+         download-size="0"
+         install-size="0"
+         version="0.0.0"
+         fragment="true"
+         unpack="false"/>
+
+   <plugin
+         id="org.apache.openejb.help.nl2a"
+         download-size="0"
+         install-size="0"
+         version="0.0.0"
+         fragment="true"
+         unpack="false"/>
+
+   <plugin
+         id="org.apache.openejb.help.nlBidi"
+         download-size="0"
+         install-size="0"
+         version="0.0.0"
+         fragment="true"
+         unpack="false"/>
+
 </feature>

Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/pom.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/pom.xml?rev=754734&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/pom.xml (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/pom.xml Sun Mar 15 19:56:27 2009
@@ -0,0 +1,97 @@
+<!--
+	~ 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.
+-->
+<!-- $Rev: 577554 $ $Date: 2007-09-20 06:35:12 +0100 (Thu, 20 Sep 2007) $ -->
+<project>
+	<modelVersion>4.0.0</modelVersion>
+	<groupId>org.apache.openejb</groupId>
+	<artifactId>org.apache.openejb.server</artifactId>
+	<version>1.0.2</version>
+	<packaging>jar</packaging>
+	<name>${artifactId}</name>
+	<parent>
+		<groupId>org.apache.openejb</groupId>
+		<artifactId>eclipse-plugins-parent</artifactId>
+		<version>1.0.2</version>
+		<relativePath>../pom.xml</relativePath>
+	</parent>
+	<build>
+		<resources>
+			<resource>
+				<directory>.</directory>
+				<includes>
+					<include>plugin.xml</include>
+					<include>about.html</include>
+					<include>plugin.properties</include>
+					<include>plugin_*.properties</include>
+				</includes>
+			</resource>
+			<resource>
+				<targetPath>META-INF</targetPath>
+				<directory>META-INF</directory>
+				<includes>
+					<include>MANIFEST.MF</include>
+				</includes>
+			</resource>
+			<resource>
+				<directory>buildfiles</directory>
+				<targetPath>buildfiles</targetPath>
+				<includes>
+					<include>*</include>
+				</includes>
+			</resource>
+			<resource>
+				<directory>lib</directory>
+				<targetPath>lib</targetPath>
+				<includes>
+					<include>*</include>
+				</includes>
+			</resource>
+			<resource>
+				<directory>icons</directory>
+				<targetPath>icons</targetPath>
+				<includes>
+					<include>**/*</include>
+				</includes>
+			</resource>
+			<resource>
+				<directory>src/main/resources</directory>
+				<includes>
+					<include>**/*</include>
+				</includes>
+			</resource>
+			<resource>
+				<directory>servers</directory>
+				<targetPath>servers</targetPath>
+				<includes>
+					<include>*</include>
+				</includes>
+			</resource>
+		</resources>
+		<plugins>
+			<plugin>
+				<groupId>org.apache.geronimo.devtools</groupId>
+				<artifactId>maven-eclipsepde-plugin</artifactId>
+			</plugin>
+			<plugin>
+				<artifactId>maven-antrun-plugin</artifactId>
+			</plugin>
+			<plugin>
+				<artifactId>maven-jar-plugin</artifactId>
+			</plugin>
+		</plugins>
+	</build>
+</project>

Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/pom.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/pom.xml?rev=754734&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/pom.xml (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/pom.xml Sun Mar 15 19:56:27 2009
@@ -0,0 +1,97 @@
+<!--
+	~ 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.
+-->
+<!-- $Rev: 577554 $ $Date: 2007-09-20 06:35:12 +0100 (Thu, 20 Sep 2007) $ -->
+<project>
+	<modelVersion>4.0.0</modelVersion>
+	<groupId>org.apache.openejb</groupId>
+	<artifactId>org.apache.openejb.server</artifactId>
+	<version>1.0.2</version>
+	<packaging>jar</packaging>
+	<name>${artifactId}</name>
+	<parent>
+		<groupId>org.apache.openejb</groupId>
+		<artifactId>eclipse-plugins-parent</artifactId>
+		<version>1.0.2</version>
+		<relativePath>../pom.xml</relativePath>
+	</parent>
+	<build>
+		<resources>
+			<resource>
+				<directory>.</directory>
+				<includes>
+					<include>plugin.xml</include>
+					<include>about.html</include>
+					<include>plugin.properties</include>
+					<include>plugin_*.properties</include>
+				</includes>
+			</resource>
+			<resource>
+				<targetPath>META-INF</targetPath>
+				<directory>META-INF</directory>
+				<includes>
+					<include>MANIFEST.MF</include>
+				</includes>
+			</resource>
+			<resource>
+				<directory>buildfiles</directory>
+				<targetPath>buildfiles</targetPath>
+				<includes>
+					<include>*</include>
+				</includes>
+			</resource>
+			<resource>
+				<directory>lib</directory>
+				<targetPath>lib</targetPath>
+				<includes>
+					<include>*</include>
+				</includes>
+			</resource>
+			<resource>
+				<directory>icons</directory>
+				<targetPath>icons</targetPath>
+				<includes>
+					<include>**/*</include>
+				</includes>
+			</resource>
+			<resource>
+				<directory>src/main/resources</directory>
+				<includes>
+					<include>**/*</include>
+				</includes>
+			</resource>
+			<resource>
+				<directory>servers</directory>
+				<targetPath>servers</targetPath>
+				<includes>
+					<include>*</include>
+				</includes>
+			</resource>
+		</resources>
+		<plugins>
+			<plugin>
+				<groupId>org.apache.geronimo.devtools</groupId>
+				<artifactId>maven-eclipsepde-plugin</artifactId>
+			</plugin>
+			<plugin>
+				<artifactId>maven-antrun-plugin</artifactId>
+			</plugin>
+			<plugin>
+				<artifactId>maven-jar-plugin</artifactId>
+			</plugin>
+		</plugins>
+	</build>
+</project>

Modified: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.help/plugin.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.help/plugin.xml?rev=754734&r1=754733&r2=754734&view=diff
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.help/plugin.xml (original)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.help/plugin.xml Sun Mar 15 19:56:27 2009
@@ -29,10 +29,10 @@
             primary="true">
       </toc>
       <toc
-            file="tocgeneratingannotations.xml">
+            file="tocannotations.xml">
       </toc>
       <toc
-            file="tocrunningserver.xml">
+            file="tocserver.xml">
       </toc>
    </extension>
    <!--

Modified: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.help/toc.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.help/toc.xml?rev=754734&r1=754733&r2=754734&view=diff
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.help/toc.xml (original)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.help/toc.xml Sun Mar 15 19:56:27 2009
@@ -17,6 +17,6 @@
   ~ limitations under the License.
   -->
 <toc label="OpenEJB">
-   <link toc="tocgeneratingannotations.xml"/>
-   <link toc="tocrunningserver.xml"/>
+  <link toc="tocserver.xml"/>
+  <link toc="tocannotations.xml"/>
 </toc>

Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/META-INF/MANIFEST.MF?rev=754734&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/META-INF/MANIFEST.MF (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/META-INF/MANIFEST.MF Sun Mar 15 19:56:27 2009
@@ -0,0 +1,39 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %pluginName
+Bundle-SymbolicName: org.apache.openejb.wtp.server;singleton:=true
+Bundle-Version: 1.0.2
+Bundle-Vendor: %providerName
+Bundle-Localization: plugin
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.jface.text,
+ org.eclipse.jst.server.core,
+ org.eclipse.jst.server.generic.core,
+ org.eclipse.jst.server.generic.ui,
+ org.eclipse.jst.server.ui,
+ org.eclipse.jst.common.project.facet.core,
+ org.eclipse.wst.common.project.facet.core,
+ org.eclipse.wst.common.project.facet.ui,
+ org.eclipse.wst.server.ui,
+ org.eclipse.ui.ide,
+ org.eclipse.core.resources,
+ org.eclipse.core.runtime,
+ org.eclipse.core.commands,
+ org.eclipse.jdt.core,
+ org.eclipse.core.filebuffers,
+ org.eclipse.ltk.ui.refactoring,
+ org.eclipse.ltk.core.refactoring,
+ org.junit,
+ org.eclipse.jdt.ui,
+ org.eclipse.search,
+ org.eclipse.wst.server.core,
+ org.eclipse.debug.core,
+ org.eclipse.debug.ui,
+ org.eclipse.jdt.debug.ui,
+ org.eclipse.wst.common.frameworks,
+ org.eclipse.jst.j2ee.ejb,
+ org.eclipse.jst.j2ee
+Bundle-ClassPath: target/classes/,
+ .
+Bundle-Activator: org.apache.openejb.eclipse.server.Activator
+Eclipse-LazyStart: false

Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/about.html
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/about.html?rev=754734&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/about.html (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/about.html Sun Mar 15 19:56:27 2009
@@ -0,0 +1,257 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+<title>About</title>
+</head>
+<body lang="EN-US">
+<h1>About This Content</h1>
+ 
+<p>March 24, 2008</p>	
+  <table border="0" width="100%" cellspacing="4">
+   <tr>
+    <!-- CONTENT -->
+    <td align="left" valign="top" class="content">
+                <h2>
+   Apache License, Version 2.0
+</h2>
+<div class="section-content">
+<p align="center">
+Apache License<br />
+Version 2.0, January 2004<br />
+<a href="http://www.apache.org/licenses/">http://www.apache.org/licenses/</a>
+</p>
+<p>
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+</p>
+<p><b><a name="definitions">1. Definitions</a></b>.</p>
+<p>
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+</p>
+<p>
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+</p>
+<p>
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+</p>
+<p>
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+</p>
+<p>
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+</p>
+<p>
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+</p>
+<p>
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+</p>
+<p>
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+</p>
+<p>
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+</p>
+<p>
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+</p>
+<p><b><a name="copyright">2. Grant of Copyright License</a></b>.
+Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+</p>
+<p><b><a name="patent">3. Grant of Patent License</a></b>.
+Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+</p>
+<p><b><a name="redistribution">4. Redistribution</a></b>.
+You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+<ol type="a">
+<li>You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+<br /> <br /></li>
+
+<li>You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+<br /> <br /></li>
+
+<li>You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+<br /> <br /></li>
+
+<li>If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.</li>
+</ol>
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+</p>
+<p><b><a name="contributions">5. Submission of Contributions</a></b>.
+Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+</p>
+<p><b><a name="trademarks">6. Trademarks</a></b>.
+This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+</p>
+<p><b><a name="no-warranty">7. Disclaimer of Warranty</a></b>.
+Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+</p>
+<p><b><a name="no-liability">8. Limitation of Liability</a></b>.
+In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+</p>
+<p><b><a name="additional">9. Accepting Warranty or Additional Liability</a></b>.
+While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+</p>
+<p>
+END OF TERMS AND CONDITIONS
+</p>
+</div>
+           <h2>
+   <a name="apply">APPENDIX: How to apply the Apache License to your work</a>
+</h2>
+<div class="section-content">
+<p>
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+</p>
+<div class="source"><code>
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
+   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 &quot;AS IS&quot; 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.
+</code>
+</div>
+</div>
+         </td>     
+   </tr>
+  </table>
+
+</body>
+</html>
\ No newline at end of file

Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/build.properties
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/build.properties?rev=754734&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/build.properties (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/build.properties Sun Mar 15 19:56:27 2009
@@ -0,0 +1,37 @@
+#
+# 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.
+#
+
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+               .,\
+               plugin.xml,\
+               buildfiles/openejb.xml,\
+               about.html,\
+               build.properties,\
+               plugin.properties,\
+               servers/,\
+               plugin_de.properties,\
+               icons/
+src.includes = servers/openejb3.serverdef,\
+               plugin.xml,\
+               plugin.bak.properties,\
+               buildfiles/openejb.xml,\
+               build.properties,\
+               about.html,\
+               META-INF/MANIFEST.MF,\
+               icons/

Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/icons/obj16/openejb.gif
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/icons/obj16/openejb.gif?rev=754734&view=auto
==============================================================================
Binary file - no diff available.

Propchange: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/icons/obj16/openejb.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/maven-eclipse.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/maven-eclipse.xml?rev=754734&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/maven-eclipse.xml (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/maven-eclipse.xml Sun Mar 15 19:56:27 2009
@@ -0,0 +1,17 @@
+<project default="copy-resources">
+  <target name="init"/>
+  <target name="copy-resources" depends="init">
+    <copy todir="target/classes/META-INF" filtering="false">
+      <fileset dir="META-INF" includes="MANIFEST.MF"/>
+    </copy>
+    <copy todir="target/classes/buildfiles" filtering="false">
+      <fileset dir="buildfiles" includes="*"/>
+    </copy>
+    <copy todir="target/classes/icons" filtering="false">
+      <fileset dir="icons" includes="**/*"/>
+    </copy>
+    <copy todir="target/classes/servers" filtering="false">
+      <fileset dir="servers" includes="*"/>
+    </copy>
+  </target>
+</project>
\ No newline at end of file

Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/plugin.properties
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/plugin.properties?rev=754734&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/plugin.properties (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/plugin.properties Sun Mar 15 19:56:27 2009
@@ -0,0 +1,63 @@
+#######################################################################
+#
+# 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.
+#
+# $Rev: 577442 $ $Date: 2007-09-19 21:43:00 +0100 (Wed, 19 Sep 2007) $
+#
+#######################################################################
+#
+# plugin.properties
+# contains externalized strings for feature.xml
+# "%foo" in feature.xml corresponds to the key "foo" in this file
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# This file should be translated.
+#
+#######################################################################
+
+# "pluginName" property - name of the plugin
+pluginName = Apache OpenEJB generic server definitions
+
+# "providerName" property - name of the company that provides the feature
+providerName = Apache OpenEJB Projekt
+
+pluginDescription = Provides OpenEJB server definitions
+
+openejbCategory=Apache
+openejbRuntimeTypeName=OpenEJB 3.0.0
+openejbRuntimeTypeDescription=Publishes and runs EJB 3.0 modules on a local server.
+
+openejbServerTypeName=OpenEJB 3.0.0
+openejbServerTypeDescription=Publishes and runs EJB 3.0 modules on a local server.
+
+openejbLaunchConfigurationType=OpenEJB 3.0.0 Standalone server
+
+#######################################################################
+# ======================= openejb3.serverdef  =======================
+#######################################################################
+#
+# NOTE: Carefully translate these strings cause they do contain shortcuts!
+#
+#######################################################################
+# ============== openejb3.serverdef  ================
+ApplicationServerDirectory=Application &Server Directory:
+serverAddress=A&ddress:
+serverPort=&Port:
+jndiPort=&JNDI Port:
+openejb3serverConfig=Server Co&nfiguration:
+serverclassPath=&Classpath Variable:
+serverName=Ser&ver Name:
+username=Use&r Name:
+password=Pass&word: 

Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/plugin.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/plugin.xml?rev=754734&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/plugin.xml (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/plugin.xml Sun Mar 15 19:56:27 2009
@@ -0,0 +1,177 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.2"?>
+<!--
+  ~ 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.
+  -->
+<plugin>
+
+   <extension point="org.eclipse.wst.server.core.runtimeTypes">
+	    <runtimeType
+           class="org.apache.openejb.eclipse.server.OpenEJBRuntimeDelegate"
+           description="%openejbRuntimeTypeDescription"
+           id="org.apache.openejb.server.generic.runtime.openejb3"
+           name="%openejbRuntimeTypeName"
+           vendor="%openejbCategory"
+           version="3.0.0">
+	      <moduleType
+	         types="jst.ejb"
+	         versions="1.1,2.0,2.1,3.0,3.1"/>
+       <moduleType
+             types="jst.ear"
+             versions="1.4,5.0,6.0">
+       </moduleType>
+	    </runtimeType>
+ 	</extension>
+
+	<extension point="org.eclipse.debug.core.launchConfigurationTypes">
+		<launchConfigurationType
+        delegate="org.apache.openejb.eclipse.server.OpenEJBLaunchConfigurationDelegate"
+        id="org.apache.openejb.eclipse.server.launchConfigurationType"
+        modes="run, debug, profile"
+        name="%openejbLaunchConfigurationType"
+        sourceLocatorId="org.apache.openejb.server.sourceLocator"
+        sourcePathComputerId="org.apache.openejb.server.sourcePathComputer"/>
+	</extension>
+
+
+	<extension point="org.eclipse.wst.server.core.serverTypes">
+	     <serverType
+	           runtime="true"
+	           class="org.apache.openejb.eclipse.server.OpenEJBServer"
+	           id="org.apache.openejb.server.generic.openejb3"
+	           initialState="stopped"
+	           supportsRemoteHosts="false"
+	           runtimeTypeId="org.apache.openejb.server.generic.runtime.openejb3"
+	           description="%openejbRuntimeTypeDescription"
+	           launchConfigId="org.apache.openejb.eclipse.server.launchConfigurationType"
+	           behaviourClass="org.apache.openejb.eclipse.server.OpenEJBServerBehaviour"
+	           name="%openejbServerTypeName"
+	           startTimeout="20000"
+		       stopTimeout="20000"
+	           hasConfiguration="false"
+	           launchModes="run">
+	          
+	     </serverType>
+	</extension>
+    <extension point="org.eclipse.wst.server.ui.wizardFragments">
+	     <fragment
+	        id="org.apache.openejb.server.generic.runtime.fragment"
+	        typeIds="org.apache.openejb.server.generic.runtime.openejb3"
+	        class="org.apache.openejb.eclipse.server.OpenEJBRuntimeFragment"/>           
+	     <fragment
+	        id="org.apache.openejb.server.generic.server.fragment"
+	        typeIds="org.apache.openejb.server.generic.openejb3"
+	        class="org.apache.openejb.eclipse.server.OpenEJBServerFragment"/>   
+	</extension>´
+	
+   <extension point="org.eclipse.jst.server.core.runtimeClasspathProviders">
+     <runtimeClasspathProvider
+        id="org.apache.openejb.server.generic.runtime.runtimeTarget"
+        runtimeTypeIds="org.apache.openejb.server.generic.runtime.openejb3"
+        class="org.apache.openejb.eclipse.server.OpenEJBRuntimeClasspathProviderDelegate"/>
+	</extension>
+	
+  <extension point="org.eclipse.wst.common.project.facet.core.runtimes">
+     <runtime-component-type
+       id="org.apache.openejb.server.generic.runtime.openejb"/>
+
+    <runtime-component-version
+       type="org.apache.openejb.server.generic.runtime.openejb"
+       version="3.0.0"/>
+    <adapter>
+      <runtime-component
+         id="org.apache.openejb.server.generic.runtime.openejb"/>
+      <factory
+         class="org.eclipse.jst.server.core.internal.RuntimeClasspathProvider$Factory"/>
+      <type
+         class="org.eclipse.jst.common.project.facet.core.IClasspathProvider"/>
+    </adapter>
+
+    <adapter>
+      <runtime-component id="org.apache.openejb.server.generic.runtime.openejb"/>
+      <factory class="org.eclipse.jst.server.ui.internal.RuntimeLabelProvider$Factory"/>
+      <type class="org.eclipse.wst.common.project.facet.ui.IRuntimeComponentLabelProvider"/>
+    </adapter>
+    <supported>
+      <runtime-component
+         id="org.apache.openejb.server.generic.runtime.openejb"
+         version="3.0.0"/>
+       <facet
+         id="jst.ejb"
+         version="1.1,2.0,2.1,3.0,3.1"/>
+       <facet
+             id="jst.java"
+             version="1.4,5.0,6.0">
+       </facet>
+
+    </supported>
+    <supported>
+       <runtime-component
+             id="org.apache.openejb.server.generic.runtime.openejb"
+             version="3.0.0"></runtime-component>
+       <facet
+             id="jst.ear"
+             version="1.4,5.0,6.0">
+       </facet>
+    </supported>
+
+  </extension>
+
+
+  <extension point="org.eclipse.jst.server.core.runtimeFacetMappings">
+    <runtimeFacetMapping
+      runtimeTypeId="org.apache.openejb.server.generic.runtime.openejb3"
+      runtime-component="org.apache.openejb.server.generic.runtime.openejb"
+      version="3.0.0"/>
+  </extension>
+  
+	<extension point="org.eclipse.debug.ui.launchConfigurationTabGroups">
+		<launchConfigurationTabGroup
+      		id="org.apache.openejb.eclipse.server.launchConfigurationTabGroup"
+      		type="org.apache.openejb.eclipse.server.launchConfigurationType"
+      		class="org.apache.openejb.eclipse.server.OpenEJBLaunchConfigurationTabGroup">
+    	</launchConfigurationTabGroup>
+  	</extension>
+ <extension
+       point="org.eclipse.debug.core.sourcePathComputers">
+    <sourcePathComputer
+          class="org.eclipse.jdt.launching.sourcelookup.containers.JavaSourcePathComputer"
+          id="org.apache.openejb.server.sourcePathComputer">
+    </sourcePathComputer>
+ </extension>
+ <extension
+       point="org.eclipse.debug.core.sourceLocators">
+    <sourceLocator
+          class="org.eclipse.jdt.internal.launching.JavaSourceLookupDirector"
+          id="org.apache.openejb.server.sourceLocator"
+          name="%openejbSourceLocator">
+    </sourceLocator>
+ </extension>
+ 
+ <extension point="org.eclipse.wst.server.ui.serverImages">
+    <image id="org.apache.openejb"
+           icon="icons/obj16/openejb.gif"
+           typeIds="org.apache.openejb.server.generic.runtime.openejb3, org.apache.openejb.server.generic.openejb3"/>
+</extension>
+
+<extension point="org.eclipse.debug.ui.launchConfigurationTypeImages">
+    <launchConfigurationTypeImage
+        id="org.apache.openejb"
+        configTypeID="org.apache.openejb.eclipse.server.launchConfigurationType"
+        icon="icons/obj16/openejb.gif">
+    </launchConfigurationTypeImage>
+</extension>  
+</plugin>

Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/plugin_de.properties
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/plugin_de.properties?rev=754734&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/plugin_de.properties (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/plugin_de.properties Sun Mar 15 19:56:27 2009
@@ -0,0 +1,61 @@
+#######################################################################
+#
+# 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.
+#
+# $Rev: 577442 $ $Date: 2007-09-19 21:43:00 +0100 (Wed, 19 Sep 2007) $
+#
+#######################################################################
+#
+# plugin.properties
+# contains externalized strings for feature.xml
+# "%foo" in feature.xml corresponds to the key "foo" in this file
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# This file should be translated.
+#
+#######################################################################
+
+# "pluginName" property - name of the plugin
+pluginName = Apache OpenEJB EJB 3.0 Migrations-Test-Plugin f\u00fcr Eclipse
+
+# "providerName" property - name of the company that provides the feature
+providerName = Apache OpenEJB Projekt
+
+pluginDescription = Stellt OpenEJB Server-Definitionen zur Verf\u00fcgung
+
+openejbCategory=Apache
+openejbRuntimeTypeName=OpenEJB 3.0.0
+openejbRuntimeTypeDescription=Installiert EJB 3.0 Module auf einem lokalen Server und startet diese.
+
+openejbServerTypeName=OpenEJB 3.0.0
+openejbServerTypeDescription=Installiert EJB 3.0 Module auf einem lokalen Server und startet diese
+openejbLaunchConfigurationType=OpenEJB 3.0.0 Standalone-Server
+
+#######################################################################
+# ======================= openejb3.serverdef  =======================
+#######################################################################
+#
+# NOTE: Carefully translate these strings cause they do contain shortcuts!
+#
+#######################################################################
+ApplicationServerDirectory=Application &Server Verzeichnis:
+serverAddress=A&dresse:
+serverPort=&Port:
+jndiPort=&JNDI Port:
+openejb3serverConfig=Server Ko&nfiguration:
+serverclassPath=&Classpath Variable:
+serverName=Ser&ver Name:
+username=Benutze&r Name:
+password=Pa\u00df&wort: 

Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/pom.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/pom.xml?rev=754734&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/pom.xml (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/pom.xml Sun Mar 15 19:56:27 2009
@@ -0,0 +1,97 @@
+<!--
+	~ 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.
+-->
+<!-- $Rev: 577554 $ $Date: 2007-09-20 06:35:12 +0100 (Thu, 20 Sep 2007) $ -->
+<project>
+	<modelVersion>4.0.0</modelVersion>
+	<groupId>org.apache.openejb</groupId>
+	<artifactId>org.apache.openejb.wtp.server</artifactId>
+	<version>1.0.2</version>
+	<packaging>jar</packaging>
+	<name>${artifactId}</name>
+	<parent>
+		<groupId>org.apache.openejb</groupId>
+		<artifactId>eclipse-plugins-parent</artifactId>
+		<version>1.0.2</version>
+		<relativePath>../pom.xml</relativePath>
+	</parent>
+	<build>
+		<resources>
+			<resource>
+				<directory>.</directory>
+				<includes>
+					<include>plugin.xml</include>
+					<include>about.html</include>
+					<include>plugin.properties</include>
+					<include>plugin_*.properties</include>
+				</includes>
+			</resource>
+			<resource>
+				<targetPath>META-INF</targetPath>
+				<directory>META-INF</directory>
+				<includes>
+					<include>MANIFEST.MF</include>
+				</includes>
+			</resource>
+			<resource>
+				<directory>buildfiles</directory>
+				<targetPath>buildfiles</targetPath>
+				<includes>
+					<include>*</include>
+				</includes>
+			</resource>
+			<resource>
+				<directory>lib</directory>
+				<targetPath>lib</targetPath>
+				<includes>
+					<include>*</include>
+				</includes>
+			</resource>
+			<resource>
+				<directory>icons</directory>
+				<targetPath>icons</targetPath>
+				<includes>
+					<include>**/*</include>
+				</includes>
+			</resource>
+			<resource>
+				<directory>src/main/resources</directory>
+				<includes>
+					<include>**/*</include>
+				</includes>
+			</resource>
+			<resource>
+				<directory>servers</directory>
+				<targetPath>servers</targetPath>
+				<includes>
+					<include>*</include>
+				</includes>
+			</resource>
+		</resources>
+		<plugins>
+			<plugin>
+				<groupId>org.apache.geronimo.devtools</groupId>
+				<artifactId>maven-eclipsepde-plugin</artifactId>
+			</plugin>
+			<plugin>
+				<artifactId>maven-antrun-plugin</artifactId>
+			</plugin>
+			<plugin>
+				<artifactId>maven-jar-plugin</artifactId>
+			</plugin>
+		</plugins>
+	</build>
+</project>

Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/eclipse/server/Activator.java
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/eclipse/server/Activator.java?rev=754734&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/eclipse/server/Activator.java (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/eclipse/server/Activator.java Sun Mar 15 19:56:27 2009
@@ -0,0 +1,48 @@
+/*
+ * 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.
+ */
+package org.apache.openejb.eclipse.server;
+
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.jface.resource.ImageRegistry;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+
+public class Activator extends AbstractUIPlugin {
+
+	private static Activator instance = new Activator();
+	
+	private Activator() {
+		// TODO Auto-generated constructor stub
+	}
+	
+	public static Activator getDefault() {
+		return instance;
+	}
+
+	@Override
+	protected ImageRegistry createImageRegistry() {
+		ImageRegistry imageRegistry = new ImageRegistry();
+		imageRegistry.put("RUNTIME", ImageDescriptor.createFromURL(getClass().getResource("runtime.gif")));
+		
+		return imageRegistry;
+	}
+
+	public ImageDescriptor getImageDescriptor(String key) {
+		return getImageRegistry().getDescriptor(key);
+	}
+
+	
+}

Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/eclipse/server/Messages.java
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/eclipse/server/Messages.java?rev=754734&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/eclipse/server/Messages.java (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/eclipse/server/Messages.java Sun Mar 15 19:56:27 2009
@@ -0,0 +1,38 @@
+/*
+ * 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.
+ */
+package org.apache.openejb.eclipse.server;
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+public class Messages {
+	private static final String BUNDLE_NAME = "org.apache.openejb.eclipse.server.messages"; //$NON-NLS-1$
+
+	private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
+			.getBundle(BUNDLE_NAME);
+
+	private Messages() {
+	}
+
+	public static String getString(String key) {
+		try {
+			return RESOURCE_BUNDLE.getString(key);
+		} catch (MissingResourceException e) {
+			return '!' + key + '!';
+		}
+	}
+}

Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBLaunchConfigurationDelegate.java
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBLaunchConfigurationDelegate.java?rev=754734&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBLaunchConfigurationDelegate.java (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBLaunchConfigurationDelegate.java Sun Mar 15 19:56:27 2009
@@ -0,0 +1,122 @@
+/*
+ * 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.
+ */
+package org.apache.openejb.eclipse.server;
+
+import java.io.File;
+import java.util.Map;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.debug.core.ILaunch;
+import org.eclipse.debug.core.ILaunchConfiguration;
+import org.eclipse.debug.core.ILaunchManager;
+import org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate;
+import org.eclipse.jdt.launching.ExecutionArguments;
+import org.eclipse.jdt.launching.IJavaLaunchConfigurationConstants;
+import org.eclipse.jdt.launching.IVMInstall;
+import org.eclipse.jdt.launching.IVMRunner;
+import org.eclipse.jdt.launching.VMRunnerConfiguration;
+import org.eclipse.jst.server.core.ServerProfilerDelegate;
+import org.eclipse.wst.server.core.IServer;
+import org.eclipse.wst.server.core.ServerUtil;
+import org.eclipse.wst.server.core.model.ServerBehaviourDelegate;
+import org.eclipse.wst.server.core.util.SocketUtil;
+
+public class OpenEJBLaunchConfigurationDelegate extends AbstractJavaLaunchConfigurationDelegate {
+
+	public void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException {
+		IServer server = ServerUtil.getServer(configuration);
+		if (server == null) {
+			abort("Missing server", null,
+					IJavaLaunchConfigurationConstants.ERR_INTERNAL_ERROR);
+		}
+		OpenEJBServerBehaviour genericServer = (OpenEJBServerBehaviour) server.loadAdapter(ServerBehaviourDelegate.class, null);
+
+		try {
+//			genericServer.setupLaunch(launch, mode, monitor);
+			if(genericServer.getServer().getServerType().supportsRemoteHosts() && !SocketUtil.isLocalhost(genericServer.getServer().getHost())){
+			// no launch for remote servers
+				return;
+			}
+
+			String mainTypeName = "org.apache.openejb.cli.Bootstrap";
+			IVMInstall vm = verifyVMInstall(configuration);
+			IVMRunner runner = vm.getVMRunner(mode);
+			
+			if(runner == null && ILaunchManager.PROFILE_MODE.equals(mode)){
+				runner = vm.getVMRunner(ILaunchManager.RUN_MODE);
+			}
+			if(runner == null){
+				throw new RuntimeException();
+			}
+			
+			File workingDir = verifyWorkingDirectory(configuration);
+			String workingDirName = null;
+			if (workingDir != null)
+				workingDirName = workingDir.getAbsolutePath();
+
+			// Program & VM args
+			String pgmArgs = getProgramArguments(configuration);
+			String vmArgs = getVMArguments(configuration);
+			String[] envp = getEnvironment(configuration);
+			
+			ExecutionArguments execArgs = new ExecutionArguments(vmArgs, pgmArgs);
+
+			// VM-specific attributes
+			Map vmAttributesMap = getVMSpecificAttributesMap(configuration);
+
+			// Classpath
+			String[] classpath = getClasspath(configuration);
+
+			// Create VM config
+			VMRunnerConfiguration runConfig = new VMRunnerConfiguration(
+					mainTypeName, classpath);
+			runConfig.setProgramArguments(execArgs.getProgramArgumentsArray());
+			runConfig.setVMArguments(execArgs.getVMArgumentsArray());
+			runConfig.setWorkingDirectory(workingDirName);
+			runConfig.setEnvironment(envp);
+			runConfig.setVMSpecificAttributesMap(vmAttributesMap);
+			
+			// Bootpath
+			String[] bootpath = getBootpath(configuration);
+			if (bootpath != null && bootpath.length > 0)
+				runConfig.setBootClassPath(bootpath);
+			
+			setDefaultSourceLocator(launch, configuration);
+			
+			if (ILaunchManager.PROFILE_MODE.equals(mode)) {
+				try {
+					ServerProfilerDelegate.configureProfiling(launch, vm, runConfig, monitor);
+				} catch (CoreException ce) {
+//					genericServer.stopImpl();
+					throw ce;
+				}
+			}
+			
+			// Launch the configuration
+//			genericServer.startPingThread();
+			genericServer.setState(IServer.STATE_STARTING);
+			genericServer.start(launch);
+			runner.run(runConfig, launch, monitor);
+//			genericServer.setProcess(launch.getProcesses()[0]);
+		} catch (CoreException e) {
+//			genericServer.terminate();
+			throw e;
+		}
+
+	}
+}

Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBLaunchConfigurationTabGroup.java
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBLaunchConfigurationTabGroup.java?rev=754734&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBLaunchConfigurationTabGroup.java (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBLaunchConfigurationTabGroup.java Sun Mar 15 19:56:27 2009
@@ -0,0 +1,51 @@
+/*
+ * 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.
+ */
+package org.apache.openejb.eclipse.server;
+
+import org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup;
+import org.eclipse.debug.ui.CommonTab;
+import org.eclipse.debug.ui.EnvironmentTab;
+import org.eclipse.debug.ui.ILaunchConfigurationDialog;
+import org.eclipse.debug.ui.ILaunchConfigurationTab;
+import org.eclipse.debug.ui.sourcelookup.SourceLookupTab;
+import org.eclipse.jdt.debug.ui.launchConfigurations.JavaArgumentsTab;
+import org.eclipse.jdt.debug.ui.launchConfigurations.JavaClasspathTab;
+import org.eclipse.jdt.debug.ui.launchConfigurations.JavaJRETab;
+import org.eclipse.wst.server.ui.ServerLaunchConfigurationTab;
+
+public class OpenEJBLaunchConfigurationTabGroup extends AbstractLaunchConfigurationTabGroup {
+
+	public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
+		ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[7];
+		tabs[0] = new ServerLaunchConfigurationTab( new String[] { "org.apache.openejb" } );
+		tabs[0].setLaunchConfigurationDialog(dialog);
+		tabs[1] = new JavaArgumentsTab();
+		tabs[1].setLaunchConfigurationDialog(dialog);
+		tabs[2] = new JavaClasspathTab();
+		tabs[2].setLaunchConfigurationDialog(dialog);
+		tabs[3] = new SourceLookupTab();
+		tabs[3].setLaunchConfigurationDialog(dialog);
+		tabs[4] = new EnvironmentTab();
+		tabs[4].setLaunchConfigurationDialog(dialog);
+		tabs[5] = new JavaJRETab();
+		tabs[5].setLaunchConfigurationDialog(dialog);	 
+		tabs[6] = new CommonTab();
+		tabs[6].setLaunchConfigurationDialog(dialog);
+		setTabs(tabs);
+	}
+
+}

Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBRuntimeClasspathProviderDelegate.java
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBRuntimeClasspathProviderDelegate.java?rev=754734&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBRuntimeClasspathProviderDelegate.java (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBRuntimeClasspathProviderDelegate.java Sun Mar 15 19:56:27 2009
@@ -0,0 +1,82 @@
+/*
+ * 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.
+ */
+package org.apache.openejb.eclipse.server;
+
+import java.io.File;
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.jdt.core.IClasspathEntry;
+import org.eclipse.jdt.core.JavaCore;
+import org.eclipse.jst.server.core.RuntimeClasspathProviderDelegate;
+import org.eclipse.wst.server.core.IRuntime;
+import org.eclipse.wst.server.core.IRuntimeWorkingCopy;
+
+public class OpenEJBRuntimeClasspathProviderDelegate extends RuntimeClasspathProviderDelegate {
+
+	protected OpenEJBRuntimeDelegate getRuntimeDelegate(IRuntime runtime) {
+		IRuntimeWorkingCopy wc = runtime.createWorkingCopy();
+		
+		return (OpenEJBRuntimeDelegate) wc.loadAdapter(OpenEJBRuntimeDelegate.class, new NullProgressMonitor());
+	}
+	
+	@Override
+	public IClasspathEntry[] resolveClasspathContainer(IProject project, IRuntime runtime) {
+		return resolveClasspathContainer(runtime);
+	}
+
+	@Override
+	public IClasspathEntry[] resolveClasspathContainer(IRuntime runtime) {
+		IPath installPath = runtime.getLocation();
+		if (installPath == null)
+			return new IClasspathEntry[0];
+		
+		List<IClasspathEntry> list = getClientJars(installPath);
+		return (IClasspathEntry[])list.toArray(new IClasspathEntry[0]);
+	}
+
+	@Override
+	public IClasspathEntry[] resolveClasspathContainerImpl(IProject project, IRuntime runtime) {
+		return resolveClasspathContainer(runtime);
+	}
+
+	@Override
+	public IClasspathEntry[] resolveClasspathContainerImpl(IRuntime runtime) {
+		return resolveClasspathContainer(runtime);
+	}
+
+	private List<IClasspathEntry> getClientJars(IPath installPath) {
+		File libFolder = new File(installPath.toString() + File.separator + "lib");
+		if (! libFolder.exists()) {
+			return null;
+		}
+		
+		List<IClasspathEntry> classpathEntries = new ArrayList<IClasspathEntry>();
+		File[] files = libFolder.listFiles();
+		
+		for (File file : files) {
+			Path jar = new Path(file.getAbsolutePath());
+			classpathEntries.add(JavaCore.newLibraryEntry(jar, null, null));
+		}
+		
+		return classpathEntries;
+	}
+}

Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBRuntimeDelegate.java
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBRuntimeDelegate.java?rev=754734&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBRuntimeDelegate.java (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.wtp.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBRuntimeDelegate.java Sun Mar 15 19:56:27 2009
@@ -0,0 +1,138 @@
+/*
+ * 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.
+ */
+package org.apache.openejb.eclipse.server;
+
+import java.io.File;
+
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.jdt.launching.IVMInstall;
+import org.eclipse.jdt.launching.IVMInstallType;
+import org.eclipse.jdt.launching.JavaRuntime;
+import org.eclipse.jst.server.core.IJavaRuntime;
+import org.eclipse.wst.server.core.model.RuntimeDelegate;
+
+public class OpenEJBRuntimeDelegate extends RuntimeDelegate implements IJavaRuntime {
+	private static final String INCLUDE_EJB31_JARS = "INCLUDE_EJB31_JARS";
+	private static final String PROP_VM_INSTALL_TYPE_ID = "vm-install-type-id"; //$NON-NLS-1$
+	private static final String PROP_VM_INSTALL_ID = "vm-install-id"; //$NON-NLS-1$
+
+	@Override
+	public IStatus validate() {
+
+		if (this.getRuntimeWorkingCopy() == null) {
+			return new Status(IStatus.ERROR, "org.eclipse.jst.generic.openejb", "");
+		}
+		
+		if (this.getRuntimeWorkingCopy().getLocation() == null) {
+			return new Status(IStatus.ERROR, "org.eclipse.jst.generic.openejb", "");
+		}
+		
+		File libFolder = new File(this.getRuntimeWorkingCopy().getLocation().toString() + File.separator + "lib");
+		if (! (libFolder.exists() && libFolder.isDirectory())) {
+			return new Status(IStatus.ERROR, "org.eclipse.jst.generic.openejb", "Invalid lib folder");
+		}
+
+		File coreJar = getFileWithPrefix("openejb-core", ".jar");
+		File agentJar = getFileWithPrefix("openejb-javaagent", ".jar");
+		
+		
+		if (coreJar == null) {
+			return new Status(IStatus.ERROR, "org.eclipse.jst.generic.openejb", "Unable to find openejb-core jar");
+		}
+		
+		if (agentJar == null) {
+			return new Status(IStatus.ERROR, "org.eclipse.jst.generic.openejb", "Unable to find openejb-javaagent jar");
+		}
+		
+		return super.validate();
+	}
+
+	private File getFileWithPrefix(String prefix, String suffix) {
+		File libFolder = new File(this.getRuntime().getLocation().toString() + File.separator + "lib");
+		if (! (libFolder.exists() && libFolder.isDirectory())) {
+			return null;
+		}
+
+		File[] files = libFolder.listFiles();
+
+		for (File file : files) {
+			if (! file.getName().endsWith(suffix)) {
+				continue;
+			}
+			
+			if (file.getName().startsWith(prefix)) {
+				return file;
+			}
+		}
+
+		return null;
+	}
+	
+	
+	
+	public String getJavaAgent() {
+		return getFileWithPrefix("openejb-javaagent", ".jar").getAbsolutePath();
+	}
+
+	public String getCore() {
+		return getFileWithPrefix("openejb-core", ".jar").getAbsolutePath();
+	}
+
+	public IVMInstall getVMInstall() {
+		if (getVMInstallTypeId() == null)
+			return JavaRuntime.getDefaultVMInstall();
+		try {
+			IVMInstallType vmInstallType = JavaRuntime.getVMInstallType(getVMInstallTypeId());
+			IVMInstall[] vmInstalls = vmInstallType.getVMInstalls();
+			int size = vmInstalls.length;
+			String id = getVMInstallId();
+			for (int i = 0; i < size; i++) {
+				if (id.equals(vmInstalls[i].getId()))
+					return vmInstalls[i];
+			}
+		} catch (Exception e) {
+			// ignore
+		}
+		return null;
+		}
+
+	/**
+	 * Returns the vm type id
+	 * @return id
+	 */
+	public String getVMInstallTypeId() {
+		return getAttribute(PROP_VM_INSTALL_TYPE_ID, (String)null);
+	}
+	
+	/**
+	 * Is use default VM selected
+	 * @return boolean
+	 */
+	public boolean isUsingDefaultJRE() {
+		return getVMInstallTypeId() == null;
+	}
+
+
+	/**
+	 * Returns VM id
+	 * @return id
+	 */
+	public String getVMInstallId() {
+		return getAttribute(PROP_VM_INSTALL_ID, (String)null);
+	}
+}