-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
56 lines (45 loc) · 2.12 KB
/
build.xml
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
56
<?xml version="1.0" encoding="UTF-8"?>
<project name="jex" basedir="." default="build">
<property name="projectname" value="java-extractor" />
<property name="main" value="" />
<property name="rsa2tg.n" value="true" />
<property name="rsa2tg.c" value="true" />
<property name="compileexcludes" value="de/uni_koblenz/jgralab/java_extractor/utilities/**" />
<import file="../jgralab/common.xml" />
<property name="schema.file" value="${project.dir}/java5schema.rsa.tg" />
<property name="xmi.schema.file" value="${project.dir}/Java5.xmi" />
<path id="classpath">
<pathelement location="../jgralab/build/jar/jgralab.jar"/>
<pathelement location="../jgralab/lib/apache/commons/cli/commons-cli-1.2.jar"/>
<pathelement path="build/classes/"/>
<pathelement location="../edl/lib/strategoxt.jar"/>
<pathelement location="../edl/build/jar/edl.jar"/>
</path>
<target name="clean" depends="customAntTasks">
<delete dir="src/de/uni_koblenz/jgralab/java_extractor/schema/" />
<delete dir="src/de/uni_koblenz/jgralab/java_extractor/builder/" />
<delete dir="${tmp.dir}" />
<delete dir="${testclasses.dir}" />
<antcall target="deleteGeneratedSchemaFiles" />
</target>
<target name="process-edl">
<mkdir dir="src/de/uni_koblenz/jgralab/java_extractor/builder"/>
<java fork="true"
classname="de.uni_koblenz.edl.preprocessor.EDLPreprocessor"
classpathref="classpath">
<arg value="-i"/> <arg value="."/>
<arg value="-m"/> <arg value="java/Main"/>
<arg value="-o"/> <arg value="src/de/uni_koblenz/jgralab/java_extractor/builder"/>
<arg value="-p"/> <arg value="de.uni_koblenz.jgralab.java_extractor.builder"/>
<arg value="-n"/> <!-- no default mappings -->
</java>
<javac includeantruntime="false" fork="true"
classpathref="classpath" debug="true"
includes="de/uni_koblenz/jgralab/java_extractor/utilities/** de/uni_koblenz/jgralab/java_extractor/builder/**"
srcdir="src" destdir="build/classes"/>
</target>
<target name="createLibDir">
<mkdir dir="${lib.dir}" />
</target>
<target name="build" depends="createLibDir,jgralab,clean,compile,process-edl,jar" />
</project>