-
Notifications
You must be signed in to change notification settings - Fork 1
/
build-cli.xml
71 lines (59 loc) · 1.93 KB
/
build-cli.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
70
<project name="PEWO" default="dist" basedir=".">
<description>
PEWO: Placement Evaluation WOrkflow
</description>
<!-- directories setup -->
<property name="src" location="./src"/>
<property name="build" location="./build"/>
<property name="dist" location="./dist"/>
<property name="lib" location="./lib"/>
<target name="init">
<tstamp/>
<mkdir dir="${build}"/>
</target>
<!-- compilation confifiguration -->
<presetdef name="javac">
<javac includeantruntime="false" />
</presetdef>
<!-- compile dependencies -->
<target name="libraries" depends="init">
<ant antfile="./lib/RAPPAS/build-cli.xml" target="clean" inheritAll="false"/>
<ant antfile="./lib/RAPPAS/build-cli.xml" target="dist" inheritAll="false"/>
<move file="./lib/RAPPAS/dist/RAPPAS.jar" tofile="./lib/RAPPAS.jar"/>
</target>
<!-- compile PEWO_java itself -->
<path id="project.classpath">
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="compile" depends="libraries" >
<javac srcdir="${src}" destdir="${build}" optimize="on" source="1.8" target="1.8" encoding="UTF-8">
<classpath refid="project.classpath" />
</javac>
</target>
<!-- jar package -->
<target name="dist" depends="compile" >
<mkdir dir="${dist}"/>
<jar destfile="${dist}/PEWO.jar" basedir="${build}">
<zipgroupfileset dir="${lib}" includes="*.jar" />
<manifest>
<attribute name="PEWO" value="main"/>
<attribute name="Main-Class" value="Default"/>
</manifest>
</jar>
</target>
<!-- build javadoc -->
<target name="javadoc">
<javadoc sourcepath="src" destdir="doc" >
<fileset dir="src" defaultexcludes="yes">
<include name="**/*.java" />
</fileset>
</javadoc>
</target>
<!-- clean compilation directories -->
<target name="clean" >
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>