forked from dbacvetkov/PASH-Viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
88 lines (75 loc) · 2.91 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?xml version="1.0"?>
<project default="run" name="PASHV">
<description>
PASH Viewer build file
</description>
<property name="main.class" value="org.ash.MainApp"/>
<property name="jar.name" value="${ant.project.name}.jar"/>
<property name="src.dir" value="src"/>
<property name="build.dir" value="bin"/>
<property name="dist.dir" value="dist"/>
<property name="lib.dir" value="lib"/>
<path id="build.classpath">
<fileset dir="${lib.dir}">
<include name="**.jar"/>
</fileset>
</path>
<property name="build.classpath" refid="build.classpath"/>
<target name="clean">
<delete dir="${build.dir}"/>
<delete dir="${dist.dir}"/>
</target>
<target name="compile" depends="clean">
<mkdir dir="${build.dir}"/>
<javac srcdir="${src.dir}"
destdir="${build.dir}"
debug="on"
deprecation="false"
source="1.7"
target="1.7"
classpath="${build.classpath}"
includeantruntime="false">
<include name="org/jfree/**"/>
<include name="org/ash/**"/>
<include name="ext/egantt/**"/>
<include name="com/egantt/**"/>
<exclude name="org/jfree/chart/xml/**"/>
<exclude name="org/jfree/chart/encoders/SunPNGEncoderAdapter.java" unless="ImageIO.present"/>
<exclude name="org/jfree/chart/encoders/SunJPEGEncoderAdapter.java" unless="ImageIO.present"/>
</javac>
<!-- copy across .properties files -->
<copy todir="${build.dir}/org/jfree/chart/">
<fileset dir="${src.dir}/org/jfree/chart">
<include name="*.properties" />
</fileset>
</copy>
<copy todir="${build.dir}/org/jfree/chart/plot">
<fileset dir="${src.dir}/org/jfree/chart/plot">
<include name="*.properties" />
</fileset>
</copy>
<copy todir="${build.dir}/org/jfree/chart/editor">
<fileset dir="${src.dir}/org/jfree/chart/editor">
<include name="*.properties" />
</fileset>
</copy>
</target>
<target name="jar" depends="compile">
<mkdir dir="${dist.dir}/${lib.dir}"/>
<copy todir="${dist.dir}/${lib.dir}">
<fileset dir="${lib.dir}"/>
</copy>
<manifestclasspath property="jar.classpath" jarfile="${jar.name}">
<classpath refid="build.classpath"/>
</manifestclasspath>
<jar basedir="${build.dir}" destfile="${dist.dir}/${jar.name}">
<manifest>
<attribute name="Main-Class" value="${main.class}"/>
<attribute name="Class-Path" value="${jar.classpath}"/>
</manifest>
</jar>
</target>
<target name="run" depends="jar">
<java jar="${dist.dir}/${jar.name}" fork="true"/>
</target>
</project>