1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | <!-- ====================================================================== |
---|
3 | Oct 10, 2005 3:32:31 PM |
---|
4 | |
---|
5 | Base plugins |
---|
6 | This buildfile is used for base-plugins created at the oncology department in Lund, Sweden |
---|
7 | |
---|
8 | johan |
---|
9 | ====================================================================== --> |
---|
10 | <project name="Base plugins" default="dist" basedir="."> |
---|
11 | <description>This buildfile is used for base-plugins created at the oncology department in Lund, Sweden</description> |
---|
12 | |
---|
13 | <!-- doc --> |
---|
14 | <property name="doc" value="doc"/> |
---|
15 | |
---|
16 | <!-- lib --> |
---|
17 | <property name="lib" location="lib" /> |
---|
18 | <property name="qpackage.lib" location="QPackage/lib" /> |
---|
19 | <property name="smooth.doc" location="smooth/doc" /> |
---|
20 | |
---|
21 | <!-- src --> |
---|
22 | <property name="basefile.src" location="BaseFile/src" /> |
---|
23 | <property name="qpackage.src" location="QPackage/src" /> |
---|
24 | <property name="normalization.src" location="Normalization/src" /> |
---|
25 | <property name="null.src" location="NullPlugin/src" /> |
---|
26 | <property name="smooth.src" location="Smooth/src" /> |
---|
27 | <property name="gominer.src" location="GoMiner/src" /> |
---|
28 | <property name="ztest.src" location="ZTest/src" /> |
---|
29 | <property name="annotationfilter.src" location="AnnotationFilter/src" /> |
---|
30 | |
---|
31 | <!-- bin --> |
---|
32 | <property name="bin" location="build" /> |
---|
33 | <property name="basefile.bin" location="${bin}/BaseFile" /> |
---|
34 | <property name="qpackage.bin" location="${bin}/QPackage" /> |
---|
35 | <property name="normalization.bin" location="${bin}/Normalization" /> |
---|
36 | <property name="null.bin" location="${bin}/NullPlugin" /> |
---|
37 | <property name="smooth.bin" location="${bin}/Smooth" /> |
---|
38 | <property name="gominer.bin" location="${bin}/GoMiner" /> |
---|
39 | <property name="ztest.bin" location="${bin}/ZTest" /> |
---|
40 | <property name="annotationfilter.bin" location="${bin}/AnnotationFilter" /> |
---|
41 | |
---|
42 | <!-- dist --> |
---|
43 | <property name="dist" location="dist" /> |
---|
44 | |
---|
45 | <!-- package --> |
---|
46 | <property name="smooth.pac" value="${dist}/smooth"/> |
---|
47 | |
---|
48 | |
---|
49 | <path id="classpath"> |
---|
50 | <fileset dir="${lib}"> |
---|
51 | <include name="**/*.jar"/> |
---|
52 | </fileset> |
---|
53 | <pathelement path="${basefile.bin}"/> |
---|
54 | </path> |
---|
55 | |
---|
56 | <!-- ================================= |
---|
57 | target: compile |
---|
58 | ================================== --> |
---|
59 | <target name="compile" description="--> Compiles all the packages"> |
---|
60 | <ant target="qpackage.compile" /> |
---|
61 | <ant target="normalization.compile" /> |
---|
62 | <ant target="smooth.compile" /> |
---|
63 | </target> |
---|
64 | |
---|
65 | <!-- - - - - - - - - - - - - - - - - - |
---|
66 | target: basefile.compile |
---|
67 | - - - - - - - - - - - - - - - - - --> |
---|
68 | <target name="basefile.compile"> |
---|
69 | <mkdir dir="${basefile.bin}"/> |
---|
70 | <javac |
---|
71 | srcdir="${basefile.src}" |
---|
72 | destdir="${basefile.bin}" |
---|
73 | debug="true" |
---|
74 | deprecation="true" |
---|
75 | encoding="ISO-8859-1" |
---|
76 | /> |
---|
77 | </target> |
---|
78 | |
---|
79 | <!-- - - - - - - - - - - - - - - - - - |
---|
80 | target: qpackage.compile |
---|
81 | - - - - - - - - - - - - - - - - - --> |
---|
82 | <target name="qpackage.compile" depends="basefile.compile"> |
---|
83 | <mkdir dir="${qpackage.bin}"/> |
---|
84 | <javac |
---|
85 | srcdir="${qpackage.src}" |
---|
86 | destdir="${qpackage.bin}" |
---|
87 | classpath="${basefile.bin}" |
---|
88 | debug="true" |
---|
89 | deprecation="true" |
---|
90 | encoding="ISO-8859-1" |
---|
91 | /> |
---|
92 | </target> |
---|
93 | |
---|
94 | <!-- - - - - - - - - - - - - - - - - - |
---|
95 | target: normalization.compile |
---|
96 | - - - - - - - - - - - - - - - - - --> |
---|
97 | <target name="normalization.compile" depends="basefile.compile"> |
---|
98 | <mkdir dir="${normalization.bin}"/> |
---|
99 | <javac |
---|
100 | srcdir="${normalization.src}" |
---|
101 | destdir="${normalization.bin}" |
---|
102 | classpath="${basefile.bin}" |
---|
103 | debug="true" |
---|
104 | deprecation="true" |
---|
105 | encoding="ISO-8859-1" |
---|
106 | /> |
---|
107 | </target> |
---|
108 | |
---|
109 | <!-- - - - - - - - - - - - - - - - - - |
---|
110 | target: smooth.compile |
---|
111 | - - - - - - - - - - - - - - - - - --> |
---|
112 | <target name="smooth.compile" depends="basefile.compile"> |
---|
113 | <mkdir dir="${smooth.bin}"/> |
---|
114 | <javac |
---|
115 | srcdir="${smooth.src}" |
---|
116 | destdir="${smooth.bin}" |
---|
117 | classpathref="classpath" |
---|
118 | debug="true" |
---|
119 | deprecation="true" |
---|
120 | encoding="ISO-8859-1" |
---|
121 | /> |
---|
122 | </target> |
---|
123 | |
---|
124 | <!-- - - - - - - - - - - - - - - - - - |
---|
125 | target: null.compile |
---|
126 | - - - - - - - - - - - - - - - - - --> |
---|
127 | <target name="null.compile" depends="basefile.compile"> |
---|
128 | <mkdir dir="${null.bin}"/> |
---|
129 | <javac |
---|
130 | srcdir="${null.src}" |
---|
131 | destdir="${null.bin}" |
---|
132 | classpath="${basefile.bin}" |
---|
133 | debug="true" |
---|
134 | deprecation="true" |
---|
135 | encoding="ISO-8859-1" |
---|
136 | /> |
---|
137 | </target> |
---|
138 | |
---|
139 | <!-- - - - - - - - - - - - - - - - - - |
---|
140 | target: gominer.compile |
---|
141 | - - - - - - - - - - - - - - - - - --> |
---|
142 | <target name="gominer.compile" depends="basefile.compile"> |
---|
143 | <mkdir dir="${gominer.bin}"/> |
---|
144 | <javac |
---|
145 | srcdir="${gominer.src}" |
---|
146 | destdir="${gominer.bin}" |
---|
147 | classpath="${basefile.bin}" |
---|
148 | debug="true" |
---|
149 | deprecation="true" |
---|
150 | encoding="ISO-8859-1" |
---|
151 | /> |
---|
152 | </target> |
---|
153 | |
---|
154 | <!-- - - - - - - - - - - - - - - - - - |
---|
155 | target: ztest.compile |
---|
156 | - - - - - - - - - - - - - - - - - --> |
---|
157 | <target name="ztest.compile" depends="basefile.compile"> |
---|
158 | <mkdir dir="${ztest.bin}"/> |
---|
159 | <javac |
---|
160 | srcdir="${ztest.src}" |
---|
161 | destdir="${ztest.bin}" |
---|
162 | classpathref="classpath" |
---|
163 | debug="true" |
---|
164 | deprecation="true" |
---|
165 | encoding="ISO-8859-1" |
---|
166 | /> |
---|
167 | </target> |
---|
168 | |
---|
169 | <!-- - - - - - - - - - - - - - - - - - |
---|
170 | target: annotationfilter.compile |
---|
171 | - - - - - - - - - - - - - - - - - --> |
---|
172 | <target name="annotationfilter.compile" depends="basefile.compile"> |
---|
173 | <mkdir dir="${annotationfilter.bin}"/> |
---|
174 | <javac |
---|
175 | srcdir="${annotationfilter.src}" |
---|
176 | destdir="${annotationfilter.bin}" |
---|
177 | classpathref="classpath" |
---|
178 | debug="true" |
---|
179 | deprecation="true" |
---|
180 | encoding="ISO-8859-1" |
---|
181 | /> |
---|
182 | </target> |
---|
183 | |
---|
184 | |
---|
185 | |
---|
186 | <!-- ================================= |
---|
187 | target: clean |
---|
188 | ================================= --> |
---|
189 | <target name="clean" description="--> Remove all generated files"> |
---|
190 | <delete dir="${dist}" /> |
---|
191 | <delete dir="${bin}" /> |
---|
192 | </target> |
---|
193 | |
---|
194 | |
---|
195 | <!-- ================================= |
---|
196 | target: dist |
---|
197 | ================================== --> |
---|
198 | <target name="dist" |
---|
199 | depends="qpackage.dist, lowess.dist, smooth.dist" |
---|
200 | description="--> Creates a ditributable gzipfile for each package"> |
---|
201 | </target> |
---|
202 | |
---|
203 | <!-- - - - - - - - - - - - - - - - - - |
---|
204 | target: qpackage.dist |
---|
205 | - - - - - - - - - - - - - - - - - --> |
---|
206 | <target name="qpackage.dist" depends="qpackage.compile"> |
---|
207 | <mkdir dir="${dist}" /> |
---|
208 | <jar destfile="${dist}/qpackage.jar"> |
---|
209 | <fileset dir="${basefile.src}" /> |
---|
210 | <fileset dir="${basefile.bin}" /> |
---|
211 | <fileset dir="${qpackage.bin}" /> |
---|
212 | <fileset dir="${qpackage.src}" /> |
---|
213 | <manifest> |
---|
214 | <attribute name="Built-By" value="${user.name}"/> |
---|
215 | </manifest> |
---|
216 | </jar> |
---|
217 | </target> |
---|
218 | |
---|
219 | <!-- - - - - - - - - - - - - - - - - - |
---|
220 | target: lowess.dist |
---|
221 | - - - - - - - - - - - - - - - - - --> |
---|
222 | <target name="lowess.dist" depends="normalization.compile"> |
---|
223 | <mkdir dir="${dist}" /> |
---|
224 | <jar destfile="${dist}/lowess.jar"> |
---|
225 | <fileset dir="${basefile.src}" /> |
---|
226 | <fileset dir="${basefile.bin}" /> |
---|
227 | <fileset dir="${normalization.bin}" includes="lowess/**" /> |
---|
228 | <fileset dir="${normalization.src}" includes="lowess/**" /> |
---|
229 | <manifest> |
---|
230 | <attribute name="Built-By" value="${user.name}" /> |
---|
231 | <attribute name="Main-Class" value="lowess.Lowess" /> |
---|
232 | </manifest> |
---|
233 | </jar> |
---|
234 | </target> |
---|
235 | |
---|
236 | <!-- - - - - - - - - - - - - - - - - - |
---|
237 | target: smooth.dist |
---|
238 | - - - - - - - - - - - - - - - - - --> |
---|
239 | <target name="smooth.dist" depends="smooth.compile"> |
---|
240 | <mkdir dir="${dist}" /> |
---|
241 | <jar destfile="${dist}/smooth.jar"> |
---|
242 | <fileset dir="${basefile.src}" /> |
---|
243 | <fileset dir="${basefile.bin}" /> |
---|
244 | <fileset dir="${smooth.bin}" /> |
---|
245 | <fileset dir="${smooth.src}" /> |
---|
246 | <manifest> |
---|
247 | <attribute name="Built-By" value="${user.name}"/> |
---|
248 | <attribute name="Main-Class" value="smooth.SmoothMain"/> |
---|
249 | </manifest> |
---|
250 | </jar> |
---|
251 | </target> |
---|
252 | |
---|
253 | <!-- - - - - - - - - - - - - - - - - - |
---|
254 | target: null.dist |
---|
255 | - - - - - - - - - - - - - - - - - --> |
---|
256 | <target name="null.dist" depends="null.compile"> |
---|
257 | <mkdir dir="${dist}" /> |
---|
258 | <jar destfile="${dist}/nullbase1plugin.jar"> |
---|
259 | <fileset dir="${basefile.src}" /> |
---|
260 | <fileset dir="${basefile.bin}" /> |
---|
261 | <fileset dir="${null.bin}" /> |
---|
262 | <fileset dir="${null.src}" /> |
---|
263 | <manifest> |
---|
264 | <attribute name="Built-By" value="${user.name}"/> |
---|
265 | <attribute name="Main-Class" value="base1null.Base1NullPlugin"/> |
---|
266 | </manifest> |
---|
267 | </jar> |
---|
268 | </target> |
---|
269 | |
---|
270 | <!-- - - - - - - - - - - - - - - - - - |
---|
271 | target: gominer.dist |
---|
272 | - - - - - - - - - - - - - - - - - --> |
---|
273 | <target name="gominer.dist" depends="gominer.compile"> |
---|
274 | <mkdir dir="${dist}" /> |
---|
275 | <jar destfile="${dist}/gominer.jar"> |
---|
276 | <fileset dir="${basefile.src}" /> |
---|
277 | <fileset dir="${basefile.bin}" /> |
---|
278 | <fileset dir="${gominer.bin}" /> |
---|
279 | <fileset dir="${gominer.src}" /> |
---|
280 | <manifest> |
---|
281 | <attribute name="Built-By" value="${user.name}"/> |
---|
282 | <attribute name="Main-Class" value="net.sf.basedb.plugin.gominer.GoMinerExport"/> |
---|
283 | </manifest> |
---|
284 | </jar> |
---|
285 | </target> |
---|
286 | |
---|
287 | <!-- - - - - - - - - - - - - - - - - - |
---|
288 | target: ztest.dist |
---|
289 | - - - - - - - - - - - - - - - - - --> |
---|
290 | <target name="ztest.dist" depends="ztest.compile"> |
---|
291 | <mkdir dir="${dist}" /> |
---|
292 | <jar destfile="${dist}/ztest.jar"> |
---|
293 | <fileset dir="${basefile.src}" /> |
---|
294 | <fileset dir="${basefile.bin}" /> |
---|
295 | <fileset dir="${ztest.bin}" /> |
---|
296 | <fileset dir="${ztest.src}" /> |
---|
297 | <manifest> |
---|
298 | <attribute name="Built-By" value="${user.name}"/> |
---|
299 | <attribute name="Main-Class" value="ztest.Start"/> |
---|
300 | </manifest> |
---|
301 | </jar> |
---|
302 | </target> |
---|
303 | |
---|
304 | <!-- - - - - - - - - - - - - - - - - - |
---|
305 | target: annotationfilter.dist |
---|
306 | - - - - - - - - - - - - - - - - - --> |
---|
307 | <target name="annotationfilter.dist" depends="annotationfilter.compile"> |
---|
308 | <mkdir dir="${dist}" /> |
---|
309 | <jar destfile="${dist}/annotationfilter.jar"> |
---|
310 | <fileset dir="${basefile.src}" /> |
---|
311 | <fileset dir="${basefile.bin}" /> |
---|
312 | <fileset dir="${annotationfilter.bin}" /> |
---|
313 | <fileset dir="${annotationfilter.src}" /> |
---|
314 | <manifest> |
---|
315 | <attribute name="Built-By" value="${user.name}"/> |
---|
316 | <attribute name="Main-Class" value="annotationfilter.Main"/> |
---|
317 | </manifest> |
---|
318 | </jar> |
---|
319 | </target> |
---|
320 | |
---|
321 | |
---|
322 | <!-- ================================= |
---|
323 | target: smooth.package |
---|
324 | ================================= --> |
---|
325 | <target name="smooth.package" depends="smooth.dist" description="--> Create a zip file containting all files necessary for distribution."> |
---|
326 | <mkdir dir="${smooth.pac}"/> |
---|
327 | <copy file="${dist}/smooth.jar" todir="${smooth.pac}" /> |
---|
328 | <copy file="${doc}/gpl.txt" todir="${smooth.pac}" /> |
---|
329 | <copy file="${lib}/jcommon-1.0.6.jar" todir="${smooth.pac}" /> |
---|
330 | <copy file="${lib}/jfreechart-1.0.3.jar" todir="${smooth.pac}" /> |
---|
331 | <copy file="${smooth.doc}/INSTALL.txt" todir="${smooth.pac}" /> |
---|
332 | <copy file="${smooth.doc}/run" todir="${smooth.pac}" /> |
---|
333 | <copy file="${smooth.doc}/smooth.base" todir="${smooth.pac}" /> |
---|
334 | <zip destfile="smooth.zip" basedir="${smooth.pac}" /> |
---|
335 | </target> |
---|
336 | |
---|
337 | </project> |
---|