-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
132 lines (93 loc) · 3.78 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<?xml version="1.0" encoding="UTF-8"?>
<project name="pisces" default="update">
<tstamp/>
<property name="compiler.source" value="1.6"/>
<property name="compiler.target" value="1.6"/>
<property name="compiler.optimize" value="false"/>
<property name="compiler.debug" value="true"/>
<property name="compiler.deprecation" value="false"/>
<property name="src" value="src"/>
<property name="ver.src" value="ver/src"/>
<property name="bin" value="bin"/>
<property name="lib" value="lib"/>
<property name="test" value="test"/>
<property file="${user.home}/build.properties"/>
<import file="ant/build.in.java.xml"/>
<import file="ant/build.in.update.xml"/>
<import file="ant/build.in.version.xml"/>
<path id="lib.path">
<fileset dir="${lib}">
<include name="**/*.jar" />
</fileset>
</path>
<path id="lib.path.test">
<fileset dir="${lib}">
<include name="**/*.jar" />
</fileset>
<fileset dir=".">
<include name="**/${ant.project.name}-*.jar" />
</fileset>
</path>
<target name="clean" description="Delete all products: 'out', 'jar', etc..">
<clean bin="${bin}" this="."/>
</target>
<target name="cleanb" description="Delete classes, then compile, then package.">
<flush dir="${bin}" type="class"/>
<antcall target="update"/>
</target>
<target name="update" if="pisces.update" depends="jar" description="Copy jar product to targets defined in '../update.properties' name 'pisces.update'.">
<do-update src="${target.jar}" tgt="${pisces.update}" />
</target>
<target name="jar" depends="compile" description="Produce 'name-V*.jar' and 'name-V*.jar.md5'. See 'version'.">
<archive.cleanly/>
<archive target="${target.jar}" bin="${bin}" manifest="${src}/Manifest.mf">
<pack/>
</archive>
<flush dir="${bin}" type="class"/>
</target>
<target name="compile" depends="version" description="Compile code from 'src' to bin.">
<compile src="${src}" ver="${ver.src}" bin="${bin}" classpath.id="lib.path"/>
</target>
<target name="version" description="Report current project version.">
<version/>
<property name="target.jar" value="${ant.project.name}-${this.version}.jar"/>
</target>
<target name="build" description="Increment project version build number.">
<version-build/>
<version/>
</target>
<target name="major" description="Increment project version major number.">
<version-major/>
<version/>
</target>
<target name="minor" description="Increment project version minor number.">
<version-minor/>
<version/>
</target>
<target name="test" depends="test-jar">
<java classpath="${test-target.jar}" classname="FillImage" fork="true" failonerror="true">
<arg value="${test}/FillImage.png"/>
</java>
<java classpath="${test-target.jar}" classname="FillPath" fork="true" failonerror="true">
<arg value="${test}/FillPath.png"/>
</java>
<java classpath="${test-target.jar}" classname="ABC" fork="true" failonerror="true">
<arg value="${test}/ABC.png"/>
</java>
</target>
<target name="test-jar" depends="test-compile" description="Produce 'name-V*.jar' and 'name-V*.jar.md5'. See 'version'.">
<property name="test-target.jar" value="${ant.project.name}-test-${this.version}.jar"/>
<archive target="${test-target.jar}" bin="${bin}" manifest="${test}/src/Manifest.mf">
<pack>
<zipfileset src="${target.jar}" />
<fileset dir="${test}">
<include name="**/*.psfu" />
</fileset>
</pack>
</archive>
<flush dir="${bin}" type="class"/>
</target>
<target name="test-compile" depends="jar" description="Compile code from 'test/src' to bin.">
<compile src="${test}/src" ver="${test}/ver" bin="${bin}" classpath.id="lib.path.test"/>
</target>
</project>