-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
49 lines (42 loc) · 1.58 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
<project default="dist">
<property file="./build.properties" />
<property name="app.build" value="${app.path}/${app.name}/build"/>
<property name="app.src" value="${app.path}/${app.name}/src"/>
<property name="app.lib" value="${app.path}/${app.name}/lib"/>
<path id="compile.classpath">
<fileset dir="${app.lib}" >
<include name="*.jar" />
</fileset>
</path>
<target name="clean" description="Delete and re-create build directory">
<delete dir="${app.build}" failonerror="false"/>
<delete dir="exec" failonerror="false" />
<mkdir dir="${app.build}"/>
<mkdir dir="exec"/>
</target>
<target name="compile" depends="clean">
<javac encoding="8859_1"
includeantruntime="true"
target="${compile.target}"
source="${compile.source}"
srcdir="${app.src}"
destdir="${app.build}"
debug="${compile.debug}"
deprecation="${compile.deprecation}"
optimize="${compile.optimize}">
<classpath refid="compile.classpath" />
</javac>
</target>
<target name="dist" depends="compile" description="Create jar distribution">
<!-- Create the jar file. It will included all the resources (for example: help.txt) all the jar files from the lib folder -->
<jar jarfile="exec/${app.name}.jar" basedir="${app.build}">
<zipgroupfileset dir="${app.lib}" includes="*.jar"/>
<manifest>
<!-- Set the default main class for the .jar file -->
<attribute name="Main-Class" value="etr.TimetableGUI"/>
</manifest>
</jar>
<!-- Create the loader bach file for Windows -->
<!--<echo file="exec/timetable.bat">@java -jar ${app.name}.jar %*</echo> -->
</target>
</project>