carbidecpp20devenv/plugins/org.eclipse.emf.source_2.4.1.v200808251517/src/org.eclipse.emf.importer.rose_2.4.0.v200808251517/examples/library/build/build.xml
changeset 0 20e4ed35fd3f
--- /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.rose_2.4.0.v200808251517/examples/library/build/build.xml	Fri Apr 03 17:08:57 2009 +0100
@@ -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="rose2Java">
+			<attribute name="modelName"/>
+			<element name="settings"/>
+			<sequential>
+				<emf.Rose2Java
+					model="${main.directory}/model/@{modelName}.mdl"
+					genModel="${output.directory}/emf/@{modelName}.genmodel"
+					modelProject="${output.directory}"
+					modelProjectFragmentPath="${source.directory}"
+					modelPluginID="@{modelName}.model"
+					copyright="This is my code."
+					jdkLevel="${genJDKLevel}">
+					<settings/>
+				</emf.Rose2Java>
+			</sequential>
+		</macrodef>
+
+		<!-- Generating the code for the library model -->
+		<rose2Java modelName="library">
+			<settings>
+				<arg line="-package library library library.xmi org.examples Library"/>
+			</settings>
+		</rose2Java>
+		
+	</target>
+</project>
\ No newline at end of file