-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.xml
55 lines (45 loc) · 1.85 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>
<property file="project.properties"/>
<target name="default" depends="jar" />
<!--
===================
COMPILATION SECTION
===================
-->
<target name="compile">
<mkdir dir="${build.classes.dir}"/>
<javac srcdir="${locales.dir}:${reports.dir}:${src-beans.dir}:${src-data.dir}:${src-pos.dir}"
destdir="${build.classes.dir}"
classpath="${javac.classpath}"/>
<copy todir="${build.classes.dir}">
<fileset dir="${locales.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
<fileset dir="${reports.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
<fileset dir="${src-beans.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
<fileset dir="${src-data.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
<fileset dir="${src-pos.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
</copy>
</target>
<!--
====================
JAR BUILDING SECTION
====================
-->
<target name="jar" depends="compile">
<dirname file="${dist.jar}" property="dist.jar.dir"/>
<mkdir dir="${dist.jar.dir}"/>
<copy todir="${dist.jar.dir}/lib/">
<fileset dir="lib" />
</copy>
<copy todir="${dist.jar.dir}/">
<fileset dir="locales/${dist.locale}"/>
<file file="start.sh"/>
</copy>
<chmod file="${dist.jar.dir}/start.sh" perm="700"/>
<jar destfile="${dist.jar}" basedir="${build.classes.dir}">
<manifest>
<attribute name="Main-Class" value="${main.class}"/>
</manifest>
</jar>
</target>
</project>