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/09/19 20:39:27 UTC
svn commit: r290231 -
/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/build.xml
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