-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
69 lines (68 loc) · 3.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
57
58
59
60
61
62
63
64
65
66
67
68
69
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- WARNING: Eclipse auto-generated file.
Any modifications will be overwritten.
To include a user specific buildfile here, simply create one in the same
directory with the processing instruction <?eclipse.ant.import?>
as the first entry and export the buildfile again. -->
<project basedir="." default="build" name="TuLiPA">
<property environment="env"/>
<property name="debuglevel" value="source,lines,vars"/>
<property name="target" value="1.8"/>
<property name="source" value="1.8"/>
<property name="lib.dir" value="${basedir}/lib"/>
<property name="build.dir" value="${basedir}/bin"/>
<property name="src.dir" value="${basedir}/src"/>
<property name="run.dir" value="${basedir}/run"/>
<path id="TuLiPA.classpath">
<pathelement location="bin"/>
<pathelement location="lib/DTool.jar"/>
<pathelement location="lib/postagger-2006-05-21.jar"/>
<pathelement location="lib/Utool-src-3.1.1.jar"/>
</path>
<target name="init">
<mkdir dir="bin"/>
<copy includeemptydirs="false" todir="bin">
<fileset dir="src" excludes="**/*.launch, **/*.java"/>
</copy>
</target>
<target name="clean">
<delete dir="bin"/>
</target>
<target depends="clean" name="cleanall"/>
<target depends="build-subprojects,build-project" name="build"/>
<target name="build-subprojects"/>
<target depends="init" name="build-project">
<echo message="${ant.project.name}: ${ant.file}"/>
<javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}">
<src path="src"/>
<classpath refid="TuLiPA.classpath"/>
</javac>
</target>
<target depends="init" name="jar">
<jar destfile="${run.dir}/TuLiPA.jar" >
<fileset dir="${build.dir}"
includes="**/*.class"/>
<fileset dir="${src.dir}"
includes="**/*.png **/*.svg **/*.xar **/*.gif **/*.dtd,xml"/>
<fileset dir="${lib.dir}" includes="**/*.jar"/>
<manifest>
<attribute name="Rsrc-Class-Path" value="./ postagger-2006-05-21.jar xalan.jar xercesImpl.jar
serializer.jar DTool.jar Utool-src-3.1.1.jar"/>
<attribute name="Class-Path" value="."/>
<attribute name="Main-Class" value="de.tuebingen.ui.Interface"/>
</manifest>
</jar>
</target>
<target name="create_run_jar">
<jar destfile="${basedir}/TuLiPA-frames.jar" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="de.tuebingen.ui.Interface"/>
<attribute name="Class-Path" value="."/>
</manifest>
<fileset dir="${build.dir}"/>
<zipfileset excludes="META-INF/*.SF" src="${lib.dir}/DTool.jar"/>
<zipfileset excludes="META-INF/*.SF" src="${lib.dir}/postagger-2006-05-21.jar"/>
<zipfileset excludes="META-INF/*.SF" src="${lib.dir}/Utool-src-3.1.1.jar"/>
</jar>
</target>
</project>