blob: 7f7f50ece0cffc30010dd4e7822418f314ec4074 [file] [log] [blame]
<project name="Build specific targets and properties" default="enhance" basedir=".">
<target name="enhance">
<!-- set up classpath required by jpoxenhancer task -->
<!-- MT: on emft server: teneo.samples.base = ${buildDirectory}/plugins/org.eclipse.emf.teneo.samples -->
<property name="teneo.samples.base" value="/home/mtaal/mydata/dev/workspaces/elverspace/org.eclipse.emf.teneo.samples"/>
<!-- MT: on emft server: teneo.jpox.lib = ${buildDirectory}/plugins/org.eclipse.emf.teneo.jpox.libraries -->
<property name="teneo.jpox.lib" value="/home/mtaal/mydata/dev/workspaces/elverspace/org.eclipse.emf.teneo.jpox.libraries"/>
<echo message="teneo.jpox.lib = ${teneo.jpox.lib}"/>
<!-- MT: This reads the org.eclipse.emf.teneo.jar -->
<property name="teneo.extra.lib" value="/home/mtaal/mytmp/enhance"/>
<property name="teneo.samples.dot" value="${teneo.samples.base}/bin"/>
<echo message="teneo.samples.dot = ${teneo.samples.dot}"/>
<property name="log4j.config.file" value="${teneo.samples.base}/log4j.properties"/>
<path id="enhancer.classpath">
<fileset dir="${teneo.jpox.lib}">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${teneo.extra.lib}">
<include name="**/*.jar"/>
</fileset>
<!--
MT: the enhance needs various emf jars,
this is a trick to just read all the jar files in eclipse,
should be replaced with the path to the eclipse runtime
-->
<fileset dir="/local/eclipse/callisto/plugins">
<include name="**/*.jar"/>
</fileset>
<pathelement location="${teneo.samples.dot}"/>
</path>
<!-- define the task enhancer used by target "enhance" -->
<taskdef name="jpoxenhancer"
classpathref="enhancer.classpath"
classname="org.jpox.enhancer.tools.EnhancerTask"/>
<!-- enhance -->
<jpoxenhancer dir="${teneo.samples.base}/jdofiles"
classpathref="enhancer.classpath" verbose="true">
<jvmarg line="-Dlog4j.configuration=${log4j.config.file}"/>
</jpoxenhancer>
</target>
</project>