carbidecpp20devenv/plugins/org.eclipse.emf.source_2.4.1.v200808251517/src/org.eclipse.emf.importer.ecore_2.4.0.v200808251517/examples/library/build/build.xml
changeset 1 82d1d1de1a01
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/carbidecpp20devenv/plugins/org.eclipse.emf.source_2.4.1.v200808251517/src/org.eclipse.emf.importer.ecore_2.4.0.v200808251517/examples/library/build/build.xml	Wed Mar 18 17:21:00 2009 -0500
@@ -0,0 +1,39 @@
+<?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="${antfile.dir}/.."/>
+	<property name="output.directory" location="${main.directory}"/>
+	<property name="source.directory" value="src"/>
+	<property name="genJDKLevel" value="5.0"/>
+	
+	<target name="codegen">
+
+	  <!-- A macrodef makes it easier to generate code for multiple models in one script. -->
+		<macrodef name="ecore2Java">
+			<attribute name="modelName"/>
+			<element name="settings"/>
+			<sequential>
+				<emf.Ecore2Java
+					model="${main.directory}/model/@{modelName}.ecore"
+					genModel="${output.directory}/emf/@{modelName}.genmodel"
+					modelProject="${output.directory}"
+					modelProjectFragmentPath="${source.directory}"
+					modelPluginID="@{modelName}.model"
+					copyright="This is my code."
+					jdkLevel="${genJDKLevel}">
+					<settings/>
+				</emf.Ecore2Java>
+			</sequential>
+		</macrodef>
+
+		<!-- Generating the code for the library model -->
+		<ecore2Java modelName="library">
+			<settings>
+				<arg line="-package http:///library.ecore org.examples Library"/>
+			</settings>
+		</ecore2Java>
+		
+	</target>
+</project>
\ No newline at end of file