geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r290231 - /geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/build.xml
Date Mon, 19 Sep 2005 18:39:27 GMT
Author: sppatel
Date: Mon Sep 19 11:39:24 2005
New Revision: 290231

URL: http://svn.apache.org/viewcvs?rev=290231&view=rev
Log:
build.xml to avoid launching multiple JVMs for each model gen 

Added:
    geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/build.xml

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/build.xml
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/build.xml?rev=290231&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/build.xml
(added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/build.xml
Mon Sep 19 11:39:24 2005
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project default="codegen" basedir=".">
+    <dirname property="antfile.dir" file="${ant.file}"/>
+    
+    <!-- Global properties -->
+	<property name="main.directory" location="${basedir}"/>
+	<property name="source.directory" value="src"/>
+	
+	<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="${main.directory}/emf/@{genModelName}.genmodel"
+					modelProject="${main.directory}"
+					modelProjectFragmentPath="${source.directory}"
+					modelPluginID="org.apache.geronimo.deployment.model"
+					copyright="">
+					<settings/>
+				</emf.XSD2Java>
+			</sequential>
+		</macrodef>
+
+		<!-- Generating the code for the geronimo-web model -->
+		<multipleXSDs2Java genModelName="geronimo-web">
+			<settings>
+				<model file="${main.directory}/schema/geronimo-web.xsd"/>
+			</settings>
+		</multipleXSDs2Java>
+		
+	</target>
+</project>
\ No newline at end of file



Mime
View raw message