-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.xml
172 lines (149 loc) · 6.33 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<project name="UACALC" default="compile-dist" basedir=".">
<!-- set global properties for this build -->
<!-- we will want debug off for dist so this should be reorganized -->
<property file="build.properties"/>
<property name="src" value="."/>
<property name="src.dir" value="."/>
<property name="work.dir" value="../local"/>
<property name="image.dir" value="${src.dir}/org/uacalc/ui/images"/>
<property name="algs.dir" value="resources/algebras"/>
<property name="class.dir" value="../classes"/>
<property name="jar.dir" value="jars"/>
<property name="webjar.dir" value="/tmp"/>
<property name="manifest.file" value="manifest"/>
<!-- <property name="javadoc.dir" value="/www/ralph/UACalc/doc"/> -->
<!-- <property name="javadoc.dir" value="/var/www/vhosts/uacalc/doc"/> -->
<property name="javadoc.dir" value="/tmp/doc"/>
<property name="debug" value="on"/>
<property name="dist-debug" value="on"/>
<property name="verbose" value="yes"/>
<property name="build" value="build"/>
<property name="dist.dir" value="../dist"/>
<path id="classpath">
<pathelement location="."/>
<pathelement location="./work"/>
<fileset dir="${jar.dir}">
<include name="**/*.jar"/>
</fileset>
</path>
<path id="dist-classpath">
<pathelement location="${class.dir}"/>
<fileset dir="${jar.dir}">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="compile">
<javac srcdir="${src}" debug="${debug}">
<classpath refid="classpath"/>
</javac>
</target>
<target name="compile-dist" depends="compile-dist-src,compile-dist-work"/>
<target name="compile-dist-src">
<mkdir dir="${class.dir}"/>
<javac srcdir="${src.dir}"
debug="${dist-debug}"
destdir="${class.dir}"
excludes="board/geom/BSpline.java">
<classpath refid="dist-classpath"/>
<!-- <compilerarg value="-Xlint:unchecked" compiler="javac1.5"/> -->
</javac>
</target>
<target name="compile-dist-work">
<mkdir dir="${class.dir}"/>
<mkdir dir="${work.dir}"/>
<javac srcdir="${work.dir}"
debug="${dist-debug}"
destdir="${class.dir}"
excludes="board/geom/BSpline.java">
<classpath refid="dist-classpath"/>
<!-- <compilerarg value="-Xlint:unchecked" compiler="javac1.5"/> -->
</javac>
</target>
<target name="dist-files">
<!-- Create the distribution directory -->
<mkdir dir="${dist.dir}/lib"/>
<copy todir="${dist.dir}/lib" overwrite="yes">
<fileset dir="${jar.dir}"/>
</copy>
<copy todir="${class.dir}/org/uacalc/ui/images" overwrite="yes">
<fileset dir="${image.dir}"/>
</copy>
<copy todir="${class.dir}/algebras" overwrite="yes">
<fileset dir="${algs.dir}"/>
</copy>
</target>
<target name="dist" depends="dist-jar,compile-dist-work"/>
<target name="dist-small" depends="dist-jar"/>
<target name="dist-signed" depends="dist-jar-signed,compile-dist-work"/>
<target name="dist-web" depends="dist-jar-signed">
<copy file="${dist.dir}/lib/uacalc.jar"
todir="${webjar.dir}" overwrite="yes"/>
</target>
<target name="dist-nb" depends="dist-jar-nb"/>
<target name="dist-jar-nb" depends="clean,dist-files,compile-dist-src">
<mkdir dir="${dist.dir}/lib"/>
<jar jarfile="${dist.dir}/lib/uacalc.jar"
manifest="${manifest.file}"
basedir="${class.dir}"/>
<delete file="${class.dir}/org/uacalc/nbui/UACalculatorUI.class"/>
<jar jarfile="${dist.dir}/lib/uacalc-nb.jar"
manifest="${manifest.file}"
basedir="${class.dir}"/>
</target>
<target name="dist-jar-signed" depends="clean,dist-files,compile-dist-src">
<!-- Create the distribution directory -->
<mkdir dir="${dist.dir}/lib"/>
<jar jarfile="${dist.dir}/lib/uacalc.jar"
manifest="${manifest.file}"
basedir="${class.dir}"/>
<!--
<signjar jar="${dist.dir}/lib/uacalc.jar"
storetype="${signjar.storetype}"
keystore="${signjar.keystore}" tsaurl="${signjar.tsaurl}"
alias="${signjar.alias}" storepass="${signjar.storepass}" />
<signjar jar="${dist.dir}/lib/LatDraw.jar"
keystore="${signjar.keystore}" tsaurl="${signjar.tsaurl}"
storetype="${signjar.storetype}"
alias="${signjar.alias}" storepass="${signjar.storepass}" />
<signjar jar="${dist.dir}/lib/groovy-all-1.0.jar"
keystore="${signjar.keystore}" tsaurl="${signjar.tsaurl}"
storetype="${signjar.storetype}"
alias="${signjar.alias}" storepass="${signjar.storepass}" />
<signjar jar="${dist.dir}/lib/groovy-engine.jar"
keystore="${signjar.keystore}" tsaurl="${signjar.tsaurl}"
storetype="${signjar.storetype}"
alias="${signjar.alias}" storepass="${signjar.storepass}" />
<signjar jar="${dist.dir}/lib/miglayout-3.7-swing.jar"
keystore="${signjar.keystore}" tsaurl="${signjar.tsaurl}"
storetype="${signjar.storetype}"
alias="${signjar.alias}" storepass="${signjar.storepass}" />
-->
</target>
<target name="dist-jar" depends="clean,dist-files,compile-dist-src">
<!-- Create the distribution directory -->
<mkdir dir="${dist.dir}/lib"/>
<jar jarfile="${dist.dir}/lib/uacalc.jar"
manifest="${manifest.file}"
basedir="${class.dir}"/>
</target>
<target name="javadoc" depends="compile-dist">
<mkdir dir="${javadoc.dir}"/>
<javadoc packagenames="org.uacalc.alg,org.uacalc.alg.conlat,org.uacalc.alg.sublat,org.uacalc.alg.op,org.uacalc.alg.example,org.uacalc.io,org.uacalc.util,org.uacalc.ui,org.uacalc.ui.util,org.uacalc.ui.images,org.uacalc.ui.table,org.uacalc.ui.tm,org.uacalc.lat,org.uacalc.terms,org.uacalc.eq,org.uacalc.element,org.uacalc.nbui"
sourcepath="${src.dir}"
destdir="${javadoc.dir}"
author="true"
version="true"
protected="true"
windowtitle="Universal Algebra Calculator API"
doctitle="Universal Algebra Calculator API"
bottom="Copyright 2003 Ralph Freese. All Rights Reserved."
>
<classpath refid="dist-classpath"/>
</javadoc>
</target>
<target name="clean">
<!-- Delete the ${build} and ${dist.dir} directory trees -->
<delete dir="${class.dir}"/>
<delete dir="${dist.dir}"/>
</target>
</project>