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 2008/09/22 19:02:03 UTC

svn commit: r697899 [1/2] - in /openejb/trunk/sandbox/openejb-eclipse-plugin: assembly/ assembly/src/main/assembly/ features/org.apache.openejb.feature/ plugins/ plugins/org.apache.openejb.server/ plugins/org.apache.openejb.server/META-INF/ plugins/org...

Author: jgallimore
Date: Mon Sep 22 10:02:02 2008
New Revision: 697899

URL: http://svn.apache.org/viewvc?rev=697899&view=rev
Log:
OEP-4 Renamed server plugin to org.apache.openejb.server

Added:
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/META-INF/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/META-INF/MANIFEST.MF
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/about.html
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/bin/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/build.properties
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/buildfiles/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/buildfiles/openejb.xml
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/icons/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/icons/obj16/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/icons/obj16/openejb.gif   (with props)
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/plugin.properties
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/plugin.xml
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/plugin_de.properties
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/pom.xml
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/servers/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/servers/openejb3.serverdef
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/java/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/java/org/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/java/org/apache/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/java/org/apache/openejb/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/java/org/apache/openejb/eclipse/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/java/org/apache/openejb/eclipse/server/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/java/org/apache/openejb/eclipse/server/Activator.java
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/java/org/apache/openejb/eclipse/server/Messages.java
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBLaunchConfigurationDelegate.java
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBLaunchConfigurationTabGroup.java
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBRuntimeClasspathProviderDelegate.java
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBRuntimeDelegate.java
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBRuntimeFragment.java
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBServer.java
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBServerBehaviour.java
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBServerFragment.java
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/java/org/apache/openejb/eclipse/server/ServerDeployer.java
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/resources/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/resources/org/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/resources/org/apache/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/resources/org/apache/openejb/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/resources/org/apache/openejb/eclipse/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/resources/org/apache/openejb/eclipse/server/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/resources/org/apache/openejb/eclipse/server/messages.properties
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/resources/org/apache/openejb/eclipse/server/messages_de.properties
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/resources/org/apache/openejb/eclipse/server/runtime.gif   (with props)
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/test/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/test/java/
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/test/resources/
Removed:
    openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.eclipse.jst.server.generic.openejb/
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/feature.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=697899&r1=697898&r2=697899&view=diff
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/assembly/pom.xml (original)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/assembly/pom.xml Mon Sep 22 10:02:02 2008
@@ -110,7 +110,7 @@
         </dependency>
         <dependency>
             <groupId>org.apache.openejb</groupId>
-            <artifactId>org.eclipse.jst.server.generic.openejb</artifactId>
+            <artifactId>org.apache.openejb.server</artifactId>
             <version>1.0.0</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=697899&r1=697898&r2=697899&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 Mon Sep 22 10:02:02 2008
@@ -31,7 +31,7 @@
             <unpack>false</unpack>
             <includes>
                 <include>org.apache.openejb:org.apache.openejb.helper.annotation</include>
-                <include>org.apache.openejb:org.eclipse.jst.server.generic.openejb</include>
+                <include>org.apache.openejb:org.apache.openejb.server</include>
             </includes>
         </dependencySet>
 

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=697899&r1=697898&r2=697899&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 Mon Sep 22 10:02:02 2008
@@ -18,45 +18,45 @@
 <!-- $Rev: 577442 $ $Date: 2007-09-19 21:43:00 +0100 (Wed, 19 Sep 2007) $ -->
 
 <assembly>
-    <id>updatesite</id>
-    <formats>
-        <format>zip</format>
-    </formats>
-    <includeBaseDirectory>false</includeBaseDirectory>
-    <dependencySets>
+	<id>updatesite</id>
+	<formats>
+		<format>zip</format>
+	</formats>
+	<includeBaseDirectory>false</includeBaseDirectory>
+	<dependencySets>
 
         <!-- Plug-ins -->
-        <dependencySet>
-            <outputFileNameMapping>${artifactId}_${version}.${extension}</outputFileNameMapping>
-            <outputDirectory>plugins/</outputDirectory>
-            <unpack>false</unpack>
-            <includes>
-                <include>org.apache.openejb:org.apache.openejb.helper.annotation</include>
-                <include>org.apache.openejb:org.eclipse.jst.server.generic.openejb</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>
-		        <include>org.apache.openejb:org.apache.openejb.help.nl2a</include>
-		        <include>org.apache.openejb:org.apache.openejb.help.nlBidi</include>
-		        <include>org.apache.openejb:org.apache.openejb.branding</include>
-			<include>org.apache.openejb:org.apache.openejb.builder</include>
-            </includes>
-        </dependencySet>
+		<dependencySet>
+			<outputFileNameMapping>${artifactId}_${version}.${extension}</outputFileNameMapping>
+			<outputDirectory>plugins/</outputDirectory>
+			<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.help</include>
+				<include>org.apache.openejb:org.apache.openejb.help.nl1</include>
+				<include>org.apache.openejb:org.apache.openejb.help.nl2</include>
+				<include>org.apache.openejb:org.apache.openejb.help.nl2a</include>
+				<include>org.apache.openejb:org.apache.openejb.help.nlBidi</include>
+				<include>org.apache.openejb:org.apache.openejb.branding</include>
+				<include>org.apache.openejb:org.apache.openejb.builder</include>
+			</includes>
+		</dependencySet>
 
         <!-- Features -->
-        <dependencySet>
-            <outputFileNameMapping>${artifactId}_${version}.${extension}</outputFileNameMapping>
-            <outputDirectory>features/</outputDirectory>
-            <includes>
-                <include>org.apache.openejb:org.apache.openejb.feature</include>
-            </includes>
-        </dependencySet>
+		<dependencySet>
+			<outputFileNameMapping>${artifactId}_${version}.${extension}</outputFileNameMapping>
+			<outputDirectory>features/</outputDirectory>
+			<includes>
+				<include>org.apache.openejb:org.apache.openejb.feature</include>
+			</includes>
+		</dependencySet>
 
-    </dependencySets>
-    <files>
-        <file>
-            <source>${basedir}/src/main/assembly/site.xml</source>
-            <outputDirectory>/</outputDirectory>
-        </file>
-    </files>
+	</dependencySets>
+	<files>
+		<file>
+			<source>${basedir}/src/main/assembly/site.xml</source>
+			<outputDirectory>/</outputDirectory>
+		</file>
+	</files>
 </assembly>

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=697899&r1=697898&r2=697899&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 Mon Sep 22 10:02:02 2008
@@ -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"
@@ -40,13 +40,6 @@
    </url>
 
    <plugin
-         id="org.eclipse.jst.server.generic.openejb"
-         download-size="0"
-         install-size="0"
-         version="1.0.0"
-         unpack="false"/>
-
-   <plugin
          id="org.apache.openejb.helper.annotation"
          download-size="0"
          install-size="0"
@@ -102,4 +95,11 @@
          version="1.0.0"
          unpack="false"/>
 
+   <plugin
+         id="org.apache.openejb.server"
+         download-size="0"
+         install-size="0"
+         version="1.0.0"
+         unpack="false"/>
+
 </feature>

Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/META-INF/MANIFEST.MF?rev=697899&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/META-INF/MANIFEST.MF (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/META-INF/MANIFEST.MF Mon Sep 22 10:02:02 2008
@@ -0,0 +1,39 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %pluginName
+Bundle-SymbolicName: org.apache.openejb.server;singleton:=true
+Bundle-Version: 1.0.0
+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.server/about.html
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/about.html?rev=697899&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/about.html (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/about.html Mon Sep 22 10:02:02 2008
@@ -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.server/build.properties
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/build.properties?rev=697899&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/build.properties (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/build.properties Mon Sep 22 10:02:02 2008
@@ -0,0 +1,20 @@
+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.server/buildfiles/openejb.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/buildfiles/openejb.xml?rev=697899&view=auto
==============================================================================
    (empty)

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

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

Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/plugin.properties
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/plugin.properties?rev=697899&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/plugin.properties (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/plugin.properties Mon Sep 22 10:02:02 2008
@@ -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.server/plugin.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/plugin.xml?rev=697899&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/plugin.xml (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/plugin.xml Mon Sep 22 10:02:02 2008
@@ -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"/>
+       <moduleType
+             types="jst.ear"
+             versions="1.4, 5.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"/>
+       <facet
+             id="jst.java"
+             version="1.4, 5.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">
+       </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.server/plugin_de.properties
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/plugin_de.properties?rev=697899&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/plugin_de.properties (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/plugin_de.properties Mon Sep 22 10:02:02 2008
@@ -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.server/pom.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/pom.xml?rev=697899&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/pom.xml (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/pom.xml Mon Sep 22 10:02:02 2008
@@ -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.0</version>
+	<packaging>jar</packaging>
+	<name>${artifactId}</name>
+	<parent>
+		<groupId>org.apache.openejb</groupId>
+		<artifactId>eclipse-plugins-parent</artifactId>
+		<version>1.0.0</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.server/servers/openejb3.serverdef
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/servers/openejb3.serverdef?rev=697899&view=auto
==============================================================================
    (empty)

Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.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.server/src/main/java/org/apache/openejb/eclipse/server/Activator.java?rev=697899&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/java/org/apache/openejb/eclipse/server/Activator.java (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/java/org/apache/openejb/eclipse/server/Activator.java Mon Sep 22 10:02:02 2008
@@ -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.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.server/src/main/java/org/apache/openejb/eclipse/server/Messages.java?rev=697899&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/java/org/apache/openejb/eclipse/server/Messages.java (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/java/org/apache/openejb/eclipse/server/Messages.java Mon Sep 22 10:02:02 2008
@@ -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.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.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBLaunchConfigurationDelegate.java?rev=697899&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBLaunchConfigurationDelegate.java (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBLaunchConfigurationDelegate.java Mon Sep 22 10:02:02 2008
@@ -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.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.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBLaunchConfigurationTabGroup.java?rev=697899&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBLaunchConfigurationTabGroup.java (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBLaunchConfigurationTabGroup.java Mon Sep 22 10:02:02 2008
@@ -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.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.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBRuntimeClasspathProviderDelegate.java?rev=697899&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBRuntimeClasspathProviderDelegate.java (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBRuntimeClasspathProviderDelegate.java Mon Sep 22 10:02:02 2008
@@ -0,0 +1,64 @@
+/*
+ * 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.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;
+
+public class OpenEJBRuntimeClasspathProviderDelegate extends RuntimeClasspathProviderDelegate {
+
+	@Override
+	public IClasspathEntry[] resolveClasspathContainer(IProject project, 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]);
+	}
+
+	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) {
+			if ((file.getName().startsWith("javaee-api") && file.getName().endsWith(".jar"))
+					|| (file.getName().startsWith("openejb-client") && file.getName().endsWith(".jar"))) {
+				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.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.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBRuntimeDelegate.java?rev=697899&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBRuntimeDelegate.java (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBRuntimeDelegate.java Mon Sep 22 10:02:02 2008
@@ -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 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);
+	}
+
+}

Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBRuntimeFragment.java
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBRuntimeFragment.java?rev=697899&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBRuntimeFragment.java (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBRuntimeFragment.java Mon Sep 22 10:02:02 2008
@@ -0,0 +1,133 @@
+/*
+ * 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.NullProgressMonitor;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.jface.dialogs.IMessageProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.DirectoryDialog;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Text;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.wst.server.core.IRuntimeWorkingCopy;
+import org.eclipse.wst.server.core.TaskModel;
+import org.eclipse.wst.server.ui.wizard.IWizardHandle;
+import org.eclipse.wst.server.ui.wizard.WizardFragment;
+
+public class OpenEJBRuntimeFragment extends WizardFragment {
+
+	private IWizardHandle handle;
+
+	@Override
+	public boolean hasComposite() {
+		return true;
+	}
+
+	@Override
+	public Composite createComposite(Composite parent, IWizardHandle handle) {
+		this.handle = handle;
+		handle.setTitle(Messages.getString("org.apache.openejb.eclipse.server.runtimeTitle"));
+		handle.setDescription(Messages.getString("org.apache.openejb.eclipse.server.runtimeDescription"));
+		handle.setImageDescriptor(Activator.getDefault().getImageDescriptor("RUNTIME"));
+		final Composite composite = new Composite(parent, SWT.NULL);
+		GridLayout gridLayout = new GridLayout(3, false);
+		composite.setLayout(gridLayout);
+		
+		GridData gridData = new GridData();
+		gridData.minimumWidth = 200;
+		gridData.minimumHeight = 200;
+		
+		Label locationLabel = new Label(composite, SWT.NONE);
+		locationLabel.setText(Messages.getString("org.apache.openejb.eclipse.server.openejbhomelabel"));
+		
+		final Text locationText = new Text(composite, SWT.BORDER);
+		GridData textData = new GridData();
+		textData.widthHint = 200;
+		locationText.setLayoutData(textData);
+		
+		try {
+			String location = getRuntimeDelegate().getRuntimeWorkingCopy().getLocation().toString();
+			locationText.setText(location);
+		} catch (Exception e) {
+		}
+		
+		locationText.addModifyListener(new org.eclipse.swt.events.ModifyListener() {
+			public void modifyText(org.eclipse.swt.events.ModifyEvent e) {
+				getRuntimeDelegate().getRuntimeWorkingCopy().setLocation(new Path(locationText.getText()));
+				validate();
+			}
+		});
+		
+		Button browseEjbJarButton = new Button(composite, SWT.NONE);
+		browseEjbJarButton.setText("Browse");
+		
+		browseEjbJarButton.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() {
+			public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
+				DirectoryDialog dialog = new DirectoryDialog(composite.getShell());
+                dialog.setMessage("Selection installation dir");
+                dialog.setFilterPath(locationText.getText());
+                String selectedDirectory = dialog.open();
+                if (selectedDirectory != null)
+                    locationText.setText(selectedDirectory);
+			}
+		});
+
+		PlatformUI.getWorkbench().getHelpSystem().setHelp(composite, "org.apache.openejb.help.runtime");
+		return composite;
+	}
+
+	protected OpenEJBRuntimeDelegate getRuntimeDelegate() {
+		IRuntimeWorkingCopy wc = (IRuntimeWorkingCopy) getTaskModel().getObject(TaskModel.TASK_RUNTIME);
+		if (wc == null) {
+			return null;
+		}
+		
+		return (OpenEJBRuntimeDelegate) wc.loadAdapter(OpenEJBRuntimeDelegate.class, new NullProgressMonitor());
+	}
+	
+	private void validate() {
+		File installationDirectory = getRuntimeDelegate().getRuntimeWorkingCopy().getLocation().toFile();
+		if (! installationDirectory.exists()) {
+			handle.setMessage("Directory does not exist", IMessageProvider.ERROR);
+			return;
+		}
+		
+		IStatus status = getRuntimeDelegate().getRuntimeWorkingCopy().validate(new NullProgressMonitor());
+		if (status.getSeverity() != IStatus.OK) {
+			handle.setMessage(status.getMessage(), IMessageProvider.ERROR);
+			return;
+		}
+		
+		handle.setMessage("", IMessageProvider.NONE);
+	}
+
+	@Override
+	public boolean isComplete() {
+		IRuntimeWorkingCopy wc = getRuntimeDelegate().getRuntimeWorkingCopy();
+        IStatus status = wc.validate(null);
+        return status == null || status.getSeverity() != IStatus.ERROR;
+	}
+	
+}

Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBServer.java
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBServer.java?rev=697899&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBServer.java (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.server/src/main/java/org/apache/openejb/eclipse/server/OpenEJBServer.java Mon Sep 22 10:02:02 2008
@@ -0,0 +1,143 @@
+/*
+ * 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.ArrayList;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.jst.server.core.FacetUtil;
+import org.eclipse.jst.server.core.IEnterpriseApplication;
+import org.eclipse.wst.server.core.IModule;
+import org.eclipse.wst.server.core.ServerUtil;
+import org.eclipse.wst.server.core.model.ServerDelegate;
+
+public class OpenEJBServer extends ServerDelegate {
+
+	@Override
+	public IStatus canModifyModules(IModule[] add, IModule[] remove) {
+		if (add != null) {
+			for (int i = 0; i < add.length; i++) {
+				if (!isSupportedModule(add[i])) {
+					return new Status(IStatus.ERROR, "org.eclipse.jst.generic.openejb", "Module not compatible", null);
+				}
+				if (add[i].getProject() != null) {
+					IStatus status = FacetUtil.verifyFacets(add[i].getProject(), getServer());
+					if (status != null && !status.isOK())
+						return status;
+				}
+			}
+		}
+		return Status.OK_STATUS;
+	}
+
+	private boolean isSupportedModule(IModule module) {
+		return (module.getModuleType() != null 
+				&& ("jst.ejb".equals(module.getModuleType().getId())
+						|| "jst.ear".equals(module.getModuleType().getId())));
+	
+	}
+
+	@Override
+	public IModule[] getChildModules(IModule[] module) {
+		return new IModule[0];
+	}
+
+	@Override
+	public IModule[] getRootModules(IModule module) throws CoreException {
+		if (!isSupportedModule(module))
+			return null;
+		IStatus status = canModifyModules(new IModule[] { module }, null);
+		if (status != null && !status.isOK())
+			throw new CoreException(status);
+
+		IModule[] parents = doGetParentModules(module);
+		if (parents.length > 0)
+			return parents;
+		return new IModule[] { module };
+	}
+
+	@SuppressWarnings("unchecked")
+	public IModule[] doGetParentModules(IModule module) {
+		IModule[] ears = ServerUtil.getModules("jst.ear"); //$NON-NLS-1$
+		ArrayList list = new ArrayList();
+		for (int i = 0; i < ears.length; i++) {
+			IEnterpriseApplication ear = (IEnterpriseApplication) ears[i].loadAdapter(IEnterpriseApplication.class, null);
+			IModule[] childs = ear.getModules();
+			for (int j = 0; j < childs.length; j++) {
+				if (childs[j].equals(module))
+					list.add(ears[i]);
+			}
+		}
+		return (IModule[]) list.toArray(new IModule[list.size()]);
+	}
+
+	@Override
+	public void modifyModules(IModule[] add, IModule[] remove, IProgressMonitor monitor) throws CoreException {
+	}
+
+	public void setEJBPort(String port) {
+		setAttribute("org.apache.openejb.eclipse.server.ejbport", port);
+	}
+	
+	public String getEJBPort() {
+		return getAttribute("org.apache.openejb.eclipse.server.ejbport", "4201");
+	}
+
+	public void setHTTPEJBPort(String port) {
+		setAttribute("org.apache.openejb.eclipse.server.httpejbport", port);
+	}
+	
+	public String getHTTPEJBPort() {
+		return getAttribute("org.apache.openejb.eclipse.server.httpejbport", "4204");
+	}
+
+	public void setHSQLPort(String port) {
+		setAttribute("org.apache.openejb.eclipse.server.hsqlport", port);
+	}
+	
+	public String getHSQLPort() {
+		return getAttribute("org.apache.openejb.eclipse.server.hsqlport", "9001");
+	}
+
+	public void setTelnetPort(String port) {
+		setAttribute("org.apache.openejb.eclipse.server.telnetport", port);
+	}
+	
+	public String getTelnetPort() {
+		return getAttribute("org.apache.openejb.eclipse.server.telnetport", "4202");
+	}
+
+	public void setAdminPort(String port) {
+		setAttribute("org.apache.openejb.eclipse.server.adminport", port);
+	}
+	
+	public String getAdminPort() {
+		return getAttribute("org.apache.openejb.eclipse.server.adminport", "4200");
+	}
+
+	public void setConfigFile(String configFile) {
+		setAttribute("org.apache.openejb.eclipse.server.configfile", configFile);
+	}
+	
+	public String getConfigFile() {
+		return getAttribute("org.apache.openejb.eclipse.server.configfile", "");
+	}
+
+}