Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 7f7f50ece0cffc30010dd4e7822418f314ec4074 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<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>

Back to the top