/
build.xml
50 lines (43 loc) · 1.32 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
<!-- Java Emotion Recognition Project -->
<project name="jemotionrec" default="all">
<target name="all">
<antcall target="init"/>
<antcall target="compile"/>
<antcall target="jar"/>
<antcall target="zipjar"/>
</target>
<target name="init">
<mkdir dir="out/"/>
<mkdir dir="out/classes"/>
<mkdir dir="out/dist"/>
</target>
<target name="compile">
<javac debug="on" srcdir="src"
destdir="out/classes"
includeAntRuntime="no">
<classpath>
<pathelement path="contrib"/>
<fileset dir="contrib">
<include name="**/*.jar"/>
</fileset>
</classpath>
<!-- compilerarg value="-Xlint"/ -->
</javac>
</target>
<target name="jar">
<jar manifest="manifest"
jarfile="out/dist/jemotionrec.jar"
basedir="out/classes">
<fileset dir="out/classes"/>
</jar>
</target>
<target name="zipjar">
<zip destfile="out/jemotionrec-distrib.jar">
<zipgroupfileset dir="contrib" includes="*.jar"/>
<zipgroupfileset dir="out/dist/" includes="*.jar"/>
</zip>
</target>
<target name="clean">
<delete dir="out"/>
</target>
</project>