You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by sp...@apache.org on 2005/12/07 02:51:07 UTC

svn commit: r354652 - in /geronimo/devtools/trunk/modules/eclipse-plugin/geronimo-emf: ./ build.xml dummy.xsd maven.xml project.properties project.xml

Author: sppatel
Date: Tue Dec  6 17:51:02 2005
New Revision: 354652

URL: http://svn.apache.org/viewcvs?rev=354652&view=rev
Log:
new project to handle emf

Added:
    geronimo/devtools/trunk/modules/eclipse-plugin/geronimo-emf/
    geronimo/devtools/trunk/modules/eclipse-plugin/geronimo-emf/build.xml
    geronimo/devtools/trunk/modules/eclipse-plugin/geronimo-emf/dummy.xsd
    geronimo/devtools/trunk/modules/eclipse-plugin/geronimo-emf/maven.xml
    geronimo/devtools/trunk/modules/eclipse-plugin/geronimo-emf/project.properties
    geronimo/devtools/trunk/modules/eclipse-plugin/geronimo-emf/project.xml

Added: geronimo/devtools/trunk/modules/eclipse-plugin/geronimo-emf/build.xml
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/geronimo-emf/build.xml?rev=354652&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/geronimo-emf/build.xml (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/geronimo-emf/build.xml Tue Dec  6 17:51:02 2005
@@ -0,0 +1,113 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project default="codegen" basedir=".">
+    <dirname property="antfile.dir" file="${ant.file}"/>
+    
+    <!-- Global properties -->
+    <property name="project.directory" location="${basedir}/../plugins"/>
+	<property name="source.directory" value="src"/>
+    <property name="target.directory" location="${basedir}/target"/>
+    <property name="con" value='&lt;classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>'/>	
+	
+	<target name="codegen">
+	    <!-- A macrodef makes it easier to generate code for multiple models in one script. -->
+		<macrodef name="multipleXSDs2Java">
+			<attribute name="genModelName"/>
+			<element name="settings"/>
+			<sequential>
+				<emf.XSD2Java
+					genModel="${target.directory}/emf/@{genModelName}.genmodel"
+					modelProject="${project.directory}/org.apache.geronimo.deployment.model"
+					modelProjectFragmentPath="${source.directory}"
+					modelPluginID="org.apache.geronimo.deployment.model"					
+					copyright="">
+					<settings/>
+				</emf.XSD2Java>
+			</sequential>
+		</macrodef>
+		
+		<!-- Workaround for EMF output folder override issue. -->
+		<multipleXSDs2Java genModelName="dummy">
+			<settings>
+				<model file="dummy.xsd"/>
+			</settings>
+		</multipleXSDs2Java>
+		
+		<replace file="${project.directory}/org.apache.geronimo.deployment.model/.classpath" token='path="bin"/>' value='path="target/classes"/>${con}'/>		
+		
+		<multipleXSDs2Java genModelName="geronimo-web">
+			<settings>
+				<model file="${target.directory}/schema/geronimo-web-1.0.xsd"/>
+				<arg line="-packageMap http://geronimo.apache.org/xml/ns/naming-1.0 org.apache.geronimo.xml.ns.naming"/>
+				<arg line="-packageMap http://geronimo.apache.org/xml/ns/security-1.1 org.apache.geronimo.xml.ns.security"/>
+				<arg line="-packageMap http://geronimo.apache.org/xml/ns/deployment-1.0 org.apache.geronimo.xml.ns.deployment"/>
+				<arg line="-packageMap http://geronimo.apache.org/xml/ns/j2ee/web-1.0 org.apache.geronimo.xml.ns.j2ee.web"/>	
+							
+				<arg line="-packages http://geronimo.apache.org/xml/ns/naming-1.0"/>
+				<arg line="-packages http://geronimo.apache.org/xml/ns/security-1.1"/>
+				<arg line="-packages http://geronimo.apache.org/xml/ns/deployment-1.0"/>
+				<arg line="-packages http://geronimo.apache.org/xml/ns/j2ee/web-1.0"/>
+				
+				<arg line="-editProject ${project.directory}/org.apache.geronimo.deployment.model.edit src"/>
+			
+			</settings>
+		</multipleXSDs2Java>
+		
+		<multipleXSDs2Java genModelName="geronimo-application">
+			<settings>
+				<model file="${target.directory}/schema/geronimo-application-1.0.xsd"/>
+				<arg line="-packageMap http://geronimo.apache.org/xml/ns/j2ee/application-1.0 org.apache.geronimo.xml.ns.j2ee.application"/>
+				<arg line="-packageMap http://geronimo.apache.org/xml/ns/security-1.1 org.apache.geronimo.xml.ns.security"/>	
+				<arg line="-packageMap http://geronimo.apache.org/xml/ns/deployment-1.0 org.apache.geronimo.xml.ns.deployment"/>
+							
+				<arg line="-packages http://geronimo.apache.org/xml/ns/j2ee/application-1.0"/>
+				
+				<arg line="-editProject ${project.directory}/org.apache.geronimo.deployment.model.edit  src"/>
+			</settings>
+		</multipleXSDs2Java>
+		
+	    <multipleXSDs2Java genModelName="openejb-jar">
+			<settings>
+				<model file="${target.directory}/schema/openejb-jar-2.0.xsd"/>
+				<arg line="-packageMap http://geronimo.apache.org/xml/ns/naming-1.0 org.apache.geronimo.xml.ns.naming"/>
+				<arg line="-packageMap http://geronimo.apache.org/xml/ns/security-1.1 org.apache.geronimo.xml.ns.security"/>
+				<arg line="-packageMap http://geronimo.apache.org/xml/ns/deployment-1.0 org.apache.geronimo.xml.ns.deployment"/>
+				<arg line="-packageMap http://www.openejb.org/xml/ns/openejb-jar-2.0 org.openejb.xml.ns.openejb.jar"/>
+				<arg line="-packageMap http://www.openejb.org/xml/ns/pkgen-2.0 org.openejb.xml.ns.pkgen"/>	
+				
+				<arg line="-packages http://www.openejb.org/xml/ns/openejb-jar-2.0"/>
+				<arg line="-packages http://www.openejb.org/xml/ns/pkgen-2.0"/>
+				
+				<arg line="-editProject ${project.directory} src"/>
+			</settings>
+		</multipleXSDs2Java>
+		
+	    <multipleXSDs2Java genModelName="geronimo-connector">
+			<settings>
+				<model file="${target.directory}/schema/geronimo-connector-1.0.xsd"/>
+				<arg line="-packageMap http://geronimo.apache.org/xml/ns/j2ee/connector-1.0 org.apache.geronimo.xml.ns.j2ee.connector"/>
+				<arg line="-packageMap http://geronimo.apache.org/xml/ns/naming-1.0 org.apache.geronimo.xml.ns.naming"/>	
+				<arg line="-packageMap http://geronimo.apache.org/xml/ns/deployment-1.0 org.apache.geronimo.xml.ns.deployment"/>
+							
+				<arg line="-packages http://geronimo.apache.org/xml/ns/j2ee/connector-1.0"/>
+				
+				<arg line="-editProject ${project.directory}/org.apache.geronimo.deployment.model.edit  src"/>
+			</settings>
+		</multipleXSDs2Java>
+		
+	    <multipleXSDs2Java genModelName="geronimo-application-client">
+			<settings>
+				<model file="${target.directory}/schema/geronimo-application-client-1.0.xsd"/>
+				<arg line="-packageMap http://geronimo.apache.org/xml/ns/j2ee/application-client-1.0 org.apache.geronimo.xml.ns.j2ee.application.client"/>
+			    <arg line="-packageMap http://geronimo.apache.org/xml/ns/naming-1.0 org.apache.geronimo.xml.ns.naming"/>
+				<arg line="-packageMap http://geronimo.apache.org/xml/ns/security-1.1 org.apache.geronimo.xml.ns.security"/>
+				<arg line="-packageMap http://geronimo.apache.org/xml/ns/j2ee/connector-1.0 org.apache.geronimo.xml.ns.j2ee.connector"/>
+				<arg line="-packageMap http://geronimo.apache.org/xml/ns/deployment-1.0 org.apache.geronimo.xml.ns.deployment"/>	
+							
+				<arg line="-packages http://geronimo.apache.org/xml/ns/j2ee/application-client-1.0"/>
+				
+				<arg line="-editProject ${project.directory} src"/>
+			</settings>
+		</multipleXSDs2Java>
+					
+	</target>
+</project>

Added: geronimo/devtools/trunk/modules/eclipse-plugin/geronimo-emf/dummy.xsd
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/geronimo-emf/dummy.xsd?rev=354652&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/geronimo-emf/dummy.xsd (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/geronimo-emf/dummy.xsd Tue Dec  6 17:51:02 2005
@@ -0,0 +1,3 @@
+<?xml version="1.0"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
+</xs:schema>
\ No newline at end of file

Added: geronimo/devtools/trunk/modules/eclipse-plugin/geronimo-emf/maven.xml
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/geronimo-emf/maven.xml?rev=354652&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/geronimo-emf/maven.xml (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/geronimo-emf/maven.xml Tue Dec  6 17:51:02 2005
@@ -0,0 +1,281 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+
+    Copyright 2004 The Apache Software Foundation
+
+    Licensed under the Apache License, Version 2.0 (the "License");
+    you may not use this file except in compliance with the License.
+    You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+<project default="default" xmlns:j="jelly:core" xmlns:ant="jelly:ant">
+
+  <goal name="default">
+    <attainGoal name="build"/>
+  </goal>
+  
+  <goal name="build">
+    <attainGoal name="jar:install"/>
+  </goal>
+  
+  <preGoal name="java:compile">
+    <attainGoal name="codegen"/>
+  </preGoal>
+  
+  <goal name="rebuild">
+    <attainGoal name="clean"/>
+    <attainGoal name="build"/>
+  </goal>
+  
+  <goal name="eclipse:generate-classpath">
+  <!-- do nothing -->
+  </goal>
+  
+  <goal name="importschemas">
+    <j:forEach var="artifact" items="${pom.artifacts}"> 
+    <j:set var="group" value="${artifact.dependency.groupId}"/>
+      <j:if test="${group.equals('geronimo') || group.equals('openejb')}">
+          <ant:unzip src="${artifact.path}" dest="${maven.build.dir}/temp">
+            <ant:patternset>
+             <ant:include name="META-INF/schema/*.xsd"/>
+             <ant:include name="**/xml.xsd"/>
+           </ant:patternset>
+         </ant:unzip>  
+      </j:if>      
+    </j:forEach> 
+    
+    <ant:move todir="${maven.build.dir}/schema" flatten="true">
+      <ant:fileset dir="${maven.build.dir}/temp/">
+        <ant:include name="**/*.xsd"/>
+      </ant:fileset>
+    </ant:move>
+  	  	
+    <ant:delete dir="${maven.build.dir}/temp"/>
+  	
+  	<!-- update include paths in all schemas -->
+    <ant:fileScanner var="schemaScanner">
+      <ant:fileset dir="${maven.build.dir}/schema">
+        <ant:include name="*.xsd"/>
+      </ant:fileset>
+    </ant:fileScanner>
+  	
+  	<ant:taskdef name="replaceregexp"
+  		classname="org.apache.tools.ant.taskdefs.optional.ReplaceRegExp"
+  		classpathref="maven.dependency.classpath"/>
+  	<ant:property name="ant.regexp.regexpimpl" value="org.apache.tools.ant.util.regexp.JakartaOroRegexp"/> 
+  
+    <j:forEach var="schema" items="${schemaScanner.iterator()}">
+      <ant:replaceregexp file="${schema}" match='schemaLocation="http://www.w3.org/2001/xml.xsd"' replace='schemaLocation="http://www.w3.org/2001/03/xml.xsd"' byline="true"/> 
+    </j:forEach>    
+    
+  </goal>
+  
+  <goal name="codegen" prereqs="importschemas">
+    <echo>Starting Workbench...</echo>
+    <ant:java fork="true" jar="${eclipse.home}/startup.jar" failonerror="true">
+      <ant:jvmarg value="-Djava.endorsed.dirs=${maven.repo.local}/xerces/jars/"/>
+      <ant:arg value="-data"/>
+      <ant:arg value="./target"/>
+      <ant:arg value="-application"/>
+      <ant:arg value="org.eclipse.ant.core.antRunner"/>
+      <ant:arg value="-buildfile"/>
+      <ant:arg value="${basedir}/build.xml"/>
+   </ant:java> 
+   <ant:delete dir="bin"/>
+  </goal>
+	
+	<goal name="genmodels" prereqs="importschemas">
+	    <echo>Generating geronimo-web.genmodel</echo>
+	    <ant:java fork="true" jar="${eclipse.home}/startup.jar" failonerror="true">
+	      <ant:jvmarg value="-Djava.endorsed.dirs=${maven.repo.local}/xerces/jars/"/>
+	      <ant:arg value="-data"/>
+	      <ant:arg value="../.."/>
+	      <ant:arg value="-application"/>
+	      <ant:arg value="org.eclipse.xsd.ecore.importer.XSD2GenModel"/>
+	      <ant:arg value="${maven.build.dir}/schema/geronimo-web-1.0.xsd"/>
+	      <ant:arg value="${maven.build.dir}/geronimo-web.genmodel"/>
+	      <ant:arg value="-modelProject"/>
+	      <ant:arg value="${basedir}"/>
+	      <ant:arg value="src"/>
+	      <ant:arg value="-packages"/>
+	      <ant:arg value="http://geronimo.apache.org/xml/ns/naming-1.0"/>
+	      <ant:arg value="http://geronimo.apache.org/xml/ns/security-1.1"/>
+	      <ant:arg value="http://geronimo.apache.org/xml/ns/deployment-1.0"/>
+	      <ant:arg value="http://geronimo.apache.org/xml/ns/j2ee/web-1.0"/>
+	      <ant:arg value="-packageMap"/>
+	      <ant:arg value="http://geronimo.apache.org/xml/ns/naming-1.0"/>
+	      <ant:arg value="org.apache.geronimo.xml.ns.naming"/>
+	      <ant:arg value="http://geronimo.apache.org/xml/ns/security-1.1"/>
+	      <ant:arg value="org.apache.geronimo.xml.ns.security"/>
+	      <ant:arg value="http://geronimo.apache.org/xml/ns/deployment-1.0"/>
+	      <ant:arg value="org.apache.geronimo.xml.ns.deployment"/>
+	      <ant:arg value="http://geronimo.apache.org/xml/ns/j2ee/web-1.0"/>
+	      <ant:arg value="org.apache.geronimo.xml.ns.web"/>
+	    </ant:java> 
+		
+		<echo>Generating geronimo-application.genmodel</echo>
+	    <ant:java fork="true" jar="${eclipse.home}/startup.jar" failonerror="true">
+	      <ant:jvmarg value="-Djava.endorsed.dirs=${maven.repo.local}/xerces/jars/"/>
+	      <ant:arg value="-data"/>
+	      <ant:arg value=".."/>
+	      <ant:arg value="-application"/>
+	      <ant:arg value="org.eclipse.xsd.ecore.importer.XSD2GenModel"/>
+	      <ant:arg value="${maven.build.dir}/schema/geronimo-application-1.0.xsd"/>
+	      <ant:arg value="${maven.build.dir}/geronimo-application.genmodel"/>
+	      <ant:arg value="-modelProject"/>
+	      <ant:arg value="${basedir}"/>
+	      <ant:arg value="src"/>
+	      <ant:arg value="-packages"/>
+	      <ant:arg value="http://geronimo.apache.org/xml/ns/j2ee/application-1.0"/>
+	      <ant:arg value="-packageMap"/>
+	      <ant:arg value="http://geronimo.apache.org/xml/ns/security-1.1"/>
+	      <ant:arg value="org.apache.geronimo.xml.ns.security"/>
+	      <ant:arg value="http://geronimo.apache.org/xml/ns/deployment-1.0"/>
+	      <ant:arg value="org.apache.geronimo.xml.ns.deployment"/>
+	      <ant:arg value="http://geronimo.apache.org/xml/ns/j2ee/application-1.0"/>
+	      <ant:arg value="org.apache.geronimo.xml.ns.j2ee.application"/>
+		 </ant:java> 
+		
+		<echo>Generating openejb-jar.genmodel</echo>
+	    <ant:java fork="true" jar="${eclipse.home}/startup.jar" failonerror="true">
+	      <ant:jvmarg value="-Djava.endorsed.dirs=${maven.repo.local}/xerces/jars/"/>
+	      <ant:arg value="-data"/>
+	      <ant:arg value=".."/>
+	      <ant:arg value="-application"/>
+	      <ant:arg value="org.eclipse.xsd.ecore.importer.XSD2GenModel"/>
+	      <ant:arg value="${maven.build.dir}/schema/openejb-jar-2.0.xsd"/>
+	      <ant:arg value="${maven.build.dir}/openejb-jar.genmodel"/>
+	      <ant:arg value="-modelProject"/>
+	      <ant:arg value="${basedir}"/>
+	      <ant:arg value="src"/>
+	      <ant:arg value="-packages"/>
+	      <ant:arg value="http://www.openejb.org/xml/ns/openejb-jar-2.0"/>
+	      <ant:arg value="http://www.openejb.org/xml/ns/pkgen-2.0"/>
+	      <ant:arg value="-packageMap"/>
+	      <ant:arg value="http://geronimo.apache.org/xml/ns/naming-1.0"/>
+	      <ant:arg value="org.apache.geronimo.xml.ns.naming"/>
+	      <ant:arg value="http://geronimo.apache.org/xml/ns/security-1.1"/>
+	      <ant:arg value="org.apache.geronimo.xml.ns.security"/>
+	      <ant:arg value="http://geronimo.apache.org/xml/ns/deployment-1.0"/>
+	      <ant:arg value="org.apache.geronimo.xml.ns.deployment"/>
+	      <ant:arg value="http://www.openejb.org/xml/ns/openejb-jar-2.0"/>
+	      <ant:arg value="org.openejb.xml.ns.openejb.jar"/>
+	      <ant:arg value="http://www.openejb.org/xml/ns/pkgen-2.0"/>
+	      <ant:arg value="org.openejb.xml.ns.pkgen"/>	
+		</ant:java> 
+		
+		<echo>Generating geronimo-connector.genmodel</echo>
+	    <ant:java fork="true" jar="${eclipse.home}/startup.jar" failonerror="true">
+	      <ant:jvmarg value="-Djava.endorsed.dirs=${maven.repo.local}/xerces/jars/"/>
+	      <ant:arg value="-data"/>
+	      <ant:arg value=".."/>
+	      <ant:arg value="-application"/>
+	      <ant:arg value="org.eclipse.xsd.ecore.importer.XSD2GenModel"/>
+	      <ant:arg value="${maven.build.dir}/schema/geronimo-connector-1.0.xsd"/>
+	      <ant:arg value="${maven.build.dir}/geronimo-connector.genmodel"/>
+	      <ant:arg value="-modelProject"/>
+	      <ant:arg value="${basedir}"/>
+	      <ant:arg value="src"/>
+	      <ant:arg value="-packages"/>
+	      <ant:arg value="http://www.openejb.org/xml/ns/openejb-jar-2.0"/>
+	      <ant:arg value="http://www.openejb.org/xml/ns/pkgen-2.0"/>
+	      <ant:arg value="-packageMap"/>
+	      <ant:arg value="http://geronimo.apache.org/xml/ns/naming-1.0"/>
+	      <ant:arg value="org.apache.geronimo.xml.ns.naming"/>
+	      <ant:arg value="http://geronimo.apache.org/xml/ns/deployment-1.0"/>
+	      <ant:arg value="org.apache.geronimo.xml.ns.deployment"/>
+	      <ant:arg value="http://geronimo.apache.org/xml/ns/j2ee/connector-1.0"/>
+	      <ant:arg value="org.apache.geronimo.xml.ns.j2ee.connector"/>	
+		</ant:java> 
+		
+		<echo>Generating geronimo-application-client.genmodel</echo>
+	    <ant:java fork="true" jar="${eclipse.home}/startup.jar" failonerror="true">
+	      <ant:jvmarg value="-Djava.endorsed.dirs=${maven.repo.local}/xerces/jars/"/>
+	      <ant:arg value="-data"/>
+	      <ant:arg value=".."/>
+	      <ant:arg value="-application"/>
+	      <ant:arg value="org.eclipse.xsd.ecore.importer.XSD2GenModel"/>
+	      <ant:arg value="${maven.build.dir}/schema/geronimo-application-client-1.0.xsd"/>
+	      <ant:arg value="${maven.build.dir}/geronimo-appclient.genmodel"/>
+	      <ant:arg value="-modelProject"/>
+	      <ant:arg value="${basedir}"/>
+	      <ant:arg value="src"/>
+	      <ant:arg value="-packages"/>
+	      <ant:arg value="http://geronimo.apache.org/xml/ns/j2ee/application-client-1.0"/>
+	      <ant:arg value="-packageMap"/>
+	      <ant:arg value="http://geronimo.apache.org/xml/ns/naming-1.0"/>
+	      <ant:arg value="org.apache.geronimo.xml.ns.naming"/>
+	      <ant:arg value="http://geronimo.apache.org/xml/ns/deployment-1.0"/>
+	      <ant:arg value="org.apache.geronimo.xml.ns.deployment"/>
+	      <ant:arg value="http://geronimo.apache.org/xml/ns/j2ee/connector-1.0"/>
+	      <ant:arg value="org.apache.geronimo.xml.ns.j2ee.connector"/>	
+	      <ant:arg value="http://geronimo.apache.org/xml/ns/security-1.1"/>
+	      <ant:arg value="org.apache.geronimo.xml.ns.security"/>
+	      <ant:arg value="http://geronimo.apache.org/xml/ns/j2ee/application-client-1.0"/>
+	   	  <ant:arg value="org.apache.geronimo.xml.ns.j2ee.application.client"/>
+		</ant:java> 
+		
+	</goal>
+	
+	<goal name="codegen2" prereqs="genmodels">
+	    <echo>Generating geronimo-web model and edit code</echo>
+	    <ant:java fork="true" jar="${eclipse.home}/startup.jar" failonerror="true">
+	      <ant:arg value="-data"/>
+	      <ant:arg value=".."/>
+	      <ant:arg value="-application"/>
+	      <ant:arg value="org.eclipse.emf.codegen.ecore.Generator"/>
+	      <ant:arg value="-model"/>
+	      <ant:arg value="-edit"/>
+	      <ant:arg value="${maven.build.dir}/geronimo-web.genmodel"/>
+	    </ant:java> 
+		<echo>Generating geronimo-application model and edit code</echo>
+		<ant:java fork="true" jar="${eclipse.home}/startup.jar" failonerror="true">
+	      <ant:arg value="-data"/>
+	      <ant:arg value=".."/>
+	      <ant:arg value="-application"/>
+	      <ant:arg value="org.eclipse.emf.codegen.ecore.Generator"/>
+	      <ant:arg value="-model"/>
+	      <ant:arg value="-edit"/>
+	      <ant:arg value="${maven.build.dir}/geronimo-application.genmodel"/>
+	    </ant:java> 
+		<echo>Generating openejb-jar model and edit code</echo>
+	    <ant:java fork="true" jar="${eclipse.home}/startup.jar" failonerror="true">
+	      <ant:arg value="-data"/>
+	      <ant:arg value=".."/>
+	      <ant:arg value="-application"/>
+	      <ant:arg value="org.eclipse.emf.codegen.ecore.Generator"/>
+	      <ant:arg value="-model"/>
+	      <ant:arg value="-edit"/>
+	      <ant:arg value="${maven.build.dir}/openejb-jar.genmodel"/>
+	    </ant:java> 
+		<echo>Generating geronimo-connector model and edit code</echo>
+	    <ant:java fork="true" jar="${eclipse.home}/startup.jar" failonerror="true">
+	      <ant:arg value="-data"/>
+	      <ant:arg value=".."/>
+	      <ant:arg value="-application"/>
+	      <ant:arg value="org.eclipse.emf.codegen.ecore.Generator"/>
+	      <ant:arg value="-model"/>
+	      <ant:arg value="-edit"/>
+	      <ant:arg value="${maven.build.dir}/geronimo-connector.genmodel"/>
+	    </ant:java> 
+		<echo>Generating geronimo-application-client model and edit code</echo>
+	    <ant:java fork="true" jar="${eclipse.home}/startup.jar" failonerror="true">
+	      <ant:arg value="-data"/>
+	      <ant:arg value=".."/>
+	      <ant:arg value="-application"/>
+	      <ant:arg value="org.eclipse.emf.codegen.ecore.Generator"/>
+	      <ant:arg value="-model"/>
+	      <ant:arg value="-edit"/>
+	      <ant:arg value="${maven.build.dir}/geronimo-appclient.genmodel"/>
+	    </ant:java> 
+	   <ant:delete dir="bin"/>
+	</goal>
+  
+</project>

Added: geronimo/devtools/trunk/modules/eclipse-plugin/geronimo-emf/project.properties
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/geronimo-emf/project.properties?rev=354652&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/geronimo-emf/project.properties (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/geronimo-emf/project.properties Tue Dec  6 17:51:02 2005
@@ -0,0 +1 @@
+eclipse.home=${basedir}/../target/eclipse 
\ No newline at end of file

Added: geronimo/devtools/trunk/modules/eclipse-plugin/geronimo-emf/project.xml
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/geronimo-emf/project.xml?rev=354652&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/geronimo-emf/project.xml (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/geronimo-emf/project.xml Tue Dec  6 17:51:02 2005
@@ -0,0 +1,95 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Copyright 2004 The Apache Software Foundation
+
+    Licensed under the Apache License, Version 2.0 (the "License");
+    you may not use this file except in compliance with the License.
+    You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+<project>
+  <extend>../etc/project.xml</extend>
+  <id>geronimo-emf</id>
+  <name>geronimo-emf</name>
+  <dependencies>
+    <dependency>
+      <groupId>xerces</groupId>
+      <artifactId>xercesImpl</artifactId>
+      <version>2.5.0</version>      
+    </dependency>
+    <dependency>
+      <groupId>xerces</groupId>
+      <artifactId>xmlParserAPIs</artifactId>
+      <version>2.6.2</version>      
+    </dependency>
+    <dependency>
+      <groupId>xerces</groupId>
+      <artifactId>xerces</artifactId>
+      <version>2.4.0</version>      
+    </dependency>
+    <dependency>
+      <groupId>xml-resolver</groupId>
+      <artifactId>xml-resolver</artifactId>
+      <version>1.1</version>      
+    </dependency>
+    <!--  geronimo dependencies needed for schemas during build -->
+    <dependency>
+      <groupId>openejb</groupId>
+      <artifactId>openejb-pkgen-builder</artifactId>
+      <version>${openejb_version}</version>      
+    </dependency>
+    <dependency>
+      <groupId>openejb</groupId>
+      <artifactId>openejb-builder</artifactId>
+      <version>${openejb_version}</version>
+    </dependency>  
+    <dependency>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-security-builder</artifactId>
+      <version>${geronimo_runtime_version}</version>
+    </dependency>
+    <dependency>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-naming-builder</artifactId>
+      <version>${geronimo_runtime_version}</version>
+    </dependency>
+    <dependency>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-web-builder</artifactId>
+      <version>${geronimo_runtime_version}</version>
+    </dependency> 
+    <dependency>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-j2ee-builder</artifactId>
+      <version>${geronimo_runtime_version}</version>
+    </dependency> 
+    <dependency>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-service-builder</artifactId>
+      <version>${geronimo_runtime_version}</version>
+    </dependency>
+    <dependency>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-j2ee-schema</artifactId>
+      <version>${geronimo_runtime_version}</version>
+    </dependency> 
+    <dependency>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-connector-builder</artifactId>
+      <version>${geronimo_runtime_version}</version>
+    </dependency> 
+    <dependency>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-client-builder</artifactId>
+      <version>${geronimo_runtime_version}</version>
+    </dependency>        
+  </dependencies>
+</project>
\ No newline at end of file