-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.xml
55 lines (47 loc) · 1.61 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="lium-diarization" default="stand-alone-jar" basedir=".">
<property name="src.dir" location="src"/>
<property name="build.dir" location="build"/>
<!-- distribution libraries -->
<path id="classpath">
<fileset dir="lib"/>
<fileset dir="lib-dev"/>
<pathelement path="lib-class"/>
</path>
<!-- compile to build dir -->
<target name="compile">
<delete dir="${build.dir}"/>
<mkdir dir="${build.dir}"/>
<javac
destdir="${build.dir}"
classpathref="classpath"
debug="true"
target="1.8"
source="1.8"
debuglevel="vars,lines,source">
<src path="${src.dir}"/>
</javac>
<copy todir="${build.dir}">
<fileset dir="${src.dir}" excludes="**/*.java"/>
</copy>
</target>
<target name="jar" depends="clean, compile">
<jar file="lium-diarization.jar">
<fileset dir="${build.dir}"/>
<fileset dir="lib-class"/>
</jar>
</target>
<target name="clean">
<delete dir="${build.dir}"/>
</target>
<!-- standalone jar. -->
<target name="stand-alone-jar" depends="jar">
<taskdef name="jarjar"
classname="org.pantsbuild.jarjar.JarJarTask"
classpath="lib-dev/jarjar.jar"/>
<jarjar jarfile="lium-diarization-full.jar">
<zipfileset src="lium-diarization.jar"/>
<zipfileset src="lib/xstream-1.4.10.jar"/>
</jarjar>
</target>
</project>