-
Daniel Ratiu authoredDaniel Ratiu authored
generate-ecore.xml 1.45 KiB
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--
$Id$
@version $Rev$
@ConQAT.Rating GREEN Hash: 7928C78126C557E8FCBAAE2B8DA1A7D4
-->
<project name="org.fortiss.tooling.kernel" default="generate-ecore" basedir="..">
<property name="model.name" value="kernel" />
<property name="model.project" value="org.fortiss.tooling.kernel" />
<property file="bm.properties"/>
<!-- Classpath Definition -->
<buckminster.valuepath id="project.classpath" value="${fs:project.classpath}" />
<path id="classpath">
<path refid="project.classpath"/>
<!-- add src to the classpath as only the bin directory is in the classpath
and some resources such as the workflow or properties file might not yet
have been copied to the bin directory -->
<pathelement location="src"/>
</path>
<!-- Generation Task -->
<target name="generate-ecore">
<emf.Ecore2Java
model="model/${model.name}.ecore"
genModel="model/${model.name}.genmodel"
modelProject="/${model.project}"
modelProjectFragmentPath="generated-src"
reconcileGenModel="reload">
</emf.Ecore2Java>
</target>
<target name="clean">
<delete includeemptydirs="true">
<fileset dir="generated-src" includes="**/*"/>
</delete>
<eclipse.convertPath filesystempath="${basedir}" property="resource.basedir"/>
<eclipse.refreshLocal resource="${resource.basedir}" depth="infinite"/>
</target>
</project>