source: trunk/se/lu/onk/build.xml @ 196

Last change on this file since 196 was 196, checked in by Johan Enell, 17 years ago

gominer compile and dist targets added

  • Property svn:eol-style set to native
File size: 13.7 KB
Line 
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  <property name="replicateerror.lib" location="ReplicateError/lib" />
17  <property name="virtualarray.lib" location="VirtualArray/lib" />
18  <property name="mergebioassay.doc" location="MergeBioAssay/doc" />
19  <property name="qpackage.lib" location="QPackage/lib" />
20  <property name="smooth.doc" location="smooth/doc" />
21
22  <!-- src -->
23  <property name="basefile.src" location="BaseFile/src" />
24  <property name="virtualarray.src" location="VirtualArray/src" />
25  <property name="replicateerror.src" location="ReplicateError/src" />
26  <property name="mergebioassay.src" location="MergeBioAssay/src" />
27  <property name="qpackage.src" location="QPackage/src" />
28  <property name="center.src" location="Center/src" />
29  <property name="normalization.src" location="Normalization/src" />
30  <property name="null.src" location="NullPlugin/src" />
31  <property name="smooth.src" location="Smooth/src" />
32  <property name="gominer.src" location="GoMiner/src" />
33
34  <!-- bin -->
35  <property name="bin" location="build" />
36  <property name="basefile.bin" location="${bin}/BaseFile" />
37  <property name="virtualarray.bin" location="${bin}/VirtualArray" />
38  <property name="replicateerror.bin" location="${bin}/ReplicateError" />
39  <property name="mergebioassay.bin" location="${bin}/MergeBioAssay" />
40  <property name="qpackage.bin" location="${bin}/QPackage" />
41  <property name="center.bin" location="${bin}/Center" />
42  <property name="normalization.bin" location="${bin}/Normalization" />
43  <property name="null.bin" location="${bin}/NullPlugin" />
44  <property name="smooth.bin" location="${bin}/Smooth" />
45  <property name="gominer.bin" location="${bin}/GoMiner" />
46
47  <!-- dist -->
48  <property name="dist" location="dist" />
49 
50  <!-- package -->
51  <property name="mergebioassay.pac" value="${dist}/mergebioassay"/>
52  <property name="smooth.pac" value="${dist}/smooth"/>
53
54 
55  <!-- =================================
56      target: compile
57    ================================== -->
58  <target name="compile" description="--> Compiles all the packages">
59    <ant target="virtualarray.compile" />
60    <ant target="replicateerror.compile" />
61    <ant target="mergebioassay.compile" />
62    <ant target="qpackage.compile" />
63    <ant target="center.compile" />
64    <ant target="normalization.compile" />
65    <ant target="smooth.compile" />
66  </target>
67 
68  <!-- - - - - - - - - - - - - - - - - -
69      target: basefile.compile                     
70     - - - - - - - - - - - - - - - - - -->
71  <target name="basefile.compile">
72    <mkdir dir="${basefile.bin}"/>
73    <javac
74      srcdir="${basefile.src}"
75      destdir="${basefile.bin}"
76      debug="true"
77      deprecation="true"
78      encoding="ISO-8859-1"
79    />
80  </target>
81
82  <!-- - - - - - - - - - - - - - - - - -
83      target: virtualarray.compile
84     - - - - - - - - - - - - - - - - - -->
85    <target name="virtualarray.compile" depends="basefile.compile">
86      <mkdir dir="${virtualarray.bin}"/>
87      <javac
88        srcdir="${virtualarray.src}"
89        destdir="${virtualarray.bin}"
90        classpath="${basefile.bin}"
91        debug="true"
92        deprecation="true"
93        encoding="ISO-8859-1"
94      />
95    </target>
96 
97  <!-- - - - - - - - - - - - - - - - - -
98      target: replicateerror.compile
99     - - - - - - - - - - - - - - - - - -->
100    <target name="replicateerror.compile" depends="basefile.compile">
101      <mkdir dir="${replicateerror.bin}"/>
102      <javac
103        srcdir="${replicateerror.src}"
104        destdir="${replicateerror.bin}"
105        classpath="${basefile.bin}"
106        debug="true"
107        deprecation="true"
108        encoding="ISO-8859-1"
109      />
110    </target>
111 
112  <!-- - - - - - - - - - - - - - - - - -
113      target: mergebioassay.compile
114     - - - - - - - - - - - - - - - - - -->
115    <target name="mergebioassay.compile" depends="basefile.compile">
116      <mkdir dir="${mergebioassay.bin}"/>
117      <javac
118        srcdir="${mergebioassay.src}"
119        destdir="${mergebioassay.bin}"
120        classpath="${basefile.bin}"
121        debug="true"
122        deprecation="true"
123        encoding="ISO-8859-1"
124      />
125    </target>
126 
127  <!-- - - - - - - - - - - - - - - - - -
128      target: qpackage.compile
129     - - - - - - - - - - - - - - - - - -->
130    <target name="qpackage.compile" depends="basefile.compile">
131      <mkdir dir="${qpackage.bin}"/>
132      <javac
133        srcdir="${qpackage.src}"
134        destdir="${qpackage.bin}"
135        classpath="${basefile.bin}"
136        debug="true"
137        deprecation="true"
138        encoding="ISO-8859-1"
139      />
140    </target>
141 
142  <!-- - - - - - - - - - - - - - - - - -
143      target: center.compile
144     - - - - - - - - - - - - - - - - - -->
145    <target name="center.compile" depends="basefile.compile">
146      <mkdir dir="${center.bin}"/>
147      <javac
148        srcdir="${center.src}"
149        destdir="${center.bin}"
150        classpath="${basefile.bin}"
151        debug="true"
152        deprecation="true"
153        encoding="ISO-8859-1"
154      />
155    </target>
156 
157  <!-- - - - - - - - - - - - - - - - - -
158      target: normalization.compile
159     - - - - - - - - - - - - - - - - - -->
160    <target name="normalization.compile" depends="basefile.compile">
161      <mkdir dir="${normalization.bin}"/>
162      <javac
163        srcdir="${normalization.src}"
164        destdir="${normalization.bin}"
165        classpath="${basefile.bin}"
166        debug="true"
167        deprecation="true"
168        encoding="ISO-8859-1"
169      />
170    </target>
171 
172  <!-- - - - - - - - - - - - - - - - - -
173      target: smooth.compile
174     - - - - - - - - - - - - - - - - - -->
175    <target name="smooth.compile" depends="basefile.compile">
176      <mkdir dir="${smooth.bin}"/>
177      <javac
178        srcdir="${smooth.src}"
179        destdir="${smooth.bin}"
180        classpath="${basefile.bin}"
181        debug="true"
182        deprecation="true"
183        encoding="ISO-8859-1"
184      />
185    </target>
186 
187  <!-- - - - - - - - - - - - - - - - - -
188      target: null.compile
189     - - - - - - - - - - - - - - - - - -->
190    <target name="null.compile" depends="basefile.compile">
191      <mkdir dir="${null.bin}"/>
192      <javac
193        srcdir="${null.src}"
194        destdir="${null.bin}"
195        classpath="${basefile.bin}"
196        debug="true"
197        deprecation="true"
198        encoding="ISO-8859-1"
199      />
200    </target>
201 
202  <!-- - - - - - - - - - - - - - - - - -
203      target: gominer.compile
204     - - - - - - - - - - - - - - - - - -->
205    <target name="gominer.compile" depends="basefile.compile">
206      <mkdir dir="${gominer.bin}"/>
207      <javac
208        srcdir="${gominer.src}"
209        destdir="${gominer.bin}"
210        classpath="${basefile.bin}"
211        debug="true"
212        deprecation="true"
213        encoding="ISO-8859-1"
214      />
215    </target>
216
217
218  <!-- =================================
219      target: clean
220     ================================= -->
221  <target name="clean" description="--> Remove all generated files">
222    <delete dir="${dist}" />
223    <delete dir="${bin}" />
224  </target>
225
226 
227  <!-- =================================
228      target: dist
229    ================================== -->
230  <target name="dist"
231    depends="virtualarray.dist, replicateerror.dist, mergebioassay.dist,
232      qpackage.dist, center.dist, lowess.dist, smooth.dist"
233    description="--> Creates a ditributable gzipfile for each package">
234  </target>
235 
236  <!-- - - - - - - - - - - - - - - - - -
237      target: virtualarray.dist                     
238     - - - - - - - - - - - - - - - - - -->
239  <target name="virtualarray.dist" depends="virtualarray.compile">
240    <mkdir dir="${dist}" />
241    <jar destfile="${dist}/virtualarray.jar">
242      <fileset dir="${basefile.src}" />
243      <fileset dir="${basefile.bin}" />
244      <fileset dir="${virtualarray.bin}" />
245      <fileset dir="${virtualarray.src}" />
246        <manifest>
247          <attribute name="Built-By" value="${user.name}" />
248          <attribute name="Main-Class" value="virtualarray.VirtualArray" />
249        </manifest>
250    </jar>
251  </target>
252 
253  <!-- - - - - - - - - - - - - - - - - -
254      target: replicateerror.dist                     
255     - - - - - - - - - - - - - - - - - -->
256  <target name="replicateerror.dist" depends="replicateerror.compile">
257    <mkdir dir="${dist}" />
258    <jar destfile="${dist}/replicateerror.jar">
259      <fileset dir="${basefile.src}" />
260      <fileset dir="${basefile.bin}" />
261      <fileset dir="${replicateerror.bin}" />
262      <fileset dir="${replicateerror.src}" />
263        <manifest>
264          <attribute name="Built-By" value="${user.name}"/>
265          <attribute name="Main-Class" value="replicateerror.ReplicateError"/>
266        </manifest>
267    </jar>
268  </target>
269 
270  <!-- - - - - - - - - - - - - - - - - -
271      target: mergebioassay.dist                     
272     - - - - - - - - - - - - - - - - - -->
273  <target name="mergebioassay.dist" depends="mergebioassay.compile">
274    <mkdir dir="${dist}" />
275    <jar destfile="${dist}/mergebioassay.jar">
276      <fileset dir="${basefile.src}" />
277      <fileset dir="${basefile.bin}" />
278      <fileset dir="${mergebioassay.bin}" />
279      <fileset dir="${mergebioassay.src}" />
280        <manifest>
281          <attribute name="Built-By" value="${user.name}"/>
282          <attribute name="Main-Class" value="mergebioassay.MergeBioAssay"/>
283        </manifest>
284    </jar>
285  </target>
286 
287  <!-- - - - - - - - - - - - - - - - - -
288      target: qpackage.dist                     
289     - - - - - - - - - - - - - - - - - -->
290  <target name="qpackage.dist" depends="qpackage.compile">
291    <mkdir dir="${dist}" />
292    <jar destfile="${dist}/qpackage.jar">
293      <fileset dir="${basefile.src}" />
294      <fileset dir="${basefile.bin}" />
295      <fileset dir="${qpackage.bin}" />
296      <fileset dir="${qpackage.src}" />
297        <manifest>
298          <attribute name="Built-By" value="${user.name}"/>
299        </manifest>
300    </jar>
301  </target>
302 
303  <!-- - - - - - - - - - - - - - - - - -
304      target: center.dist                     
305     - - - - - - - - - - - - - - - - - -->
306  <target name="center.dist" depends="center.compile">
307    <mkdir dir="${dist}" />
308    <jar destfile="${dist}/center.jar">
309      <fileset dir="${basefile.src}" />
310      <fileset dir="${basefile.bin}" />
311      <fileset dir="${center.bin}" />
312      <fileset dir="${center.src}" />
313        <manifest>
314          <attribute name="Built-By" value="${user.name}"/>
315          <attribute name="Main-Class" value="center.Center"/>
316        </manifest>
317    </jar>
318  </target>
319 
320  <!-- - - - - - - - - - - - - - - - - -
321      target: lowess.dist                     
322     - - - - - - - - - - - - - - - - - -->
323  <target name="lowess.dist" depends="normalization.compile">
324    <mkdir dir="${dist}" />
325    <jar destfile="${dist}/lowess.jar">
326      <fileset dir="${basefile.src}" />
327      <fileset dir="${basefile.bin}" />
328      <fileset dir="${normalization.bin}" includes="lowess/**" />
329      <fileset dir="${normalization.src}" includes="lowess/**" />
330        <manifest>
331          <attribute name="Built-By" value="${user.name}" />
332          <attribute name="Main-Class" value="lowess.Lowess" />
333        </manifest>
334    </jar>
335  </target>
336 
337  <!-- - - - - - - - - - - - - - - - - -
338      target: smooth.dist                     
339     - - - - - - - - - - - - - - - - - -->
340  <target name="smooth.dist" depends="smooth.compile">
341    <mkdir dir="${dist}" />
342    <jar destfile="${dist}/smooth.jar">
343      <fileset dir="${basefile.src}" />
344      <fileset dir="${basefile.bin}" />
345      <fileset dir="${smooth.bin}" />
346      <fileset dir="${smooth.src}" />
347        <manifest>
348          <attribute name="Built-By" value="${user.name}"/>
349          <attribute name="Main-Class" value="smooth.SmoothMain"/>
350        </manifest>
351    </jar>
352  </target>
353 
354  <!-- - - - - - - - - - - - - - - - - -
355      target: null.dist                     
356     - - - - - - - - - - - - - - - - - -->
357  <target name="null.dist" depends="null.compile">
358    <mkdir dir="${dist}" />
359    <jar destfile="${dist}/nullbase1plugin.jar">
360      <fileset dir="${basefile.src}" />
361      <fileset dir="${basefile.bin}" />
362      <fileset dir="${null.bin}" />
363      <fileset dir="${null.src}" />
364        <manifest>
365          <attribute name="Built-By" value="${user.name}"/>
366          <attribute name="Main-Class" value="base1null.Base1NullPlugin"/>
367        </manifest>
368    </jar>
369  </target>
370 
371  <!-- - - - - - - - - - - - - - - - - -
372      target: gominer.dist                     
373     - - - - - - - - - - - - - - - - - -->
374  <target name="gominer.dist" depends="gominer.compile">
375    <mkdir dir="${dist}" />
376    <jar destfile="${dist}/gominer.jar">
377      <fileset dir="${basefile.src}" />
378      <fileset dir="${basefile.bin}" />
379      <fileset dir="${gominer.bin}" />
380      <fileset dir="${gominer.src}" />
381        <manifest>
382          <attribute name="Built-By" value="${user.name}"/>
383          <attribute name="Main-Class" value="et.sf.basedb.plugin.gominer.GoMinerExport"/>
384        </manifest>
385    </jar>
386  </target> 
387 
388  <!-- =================================
389      target: mergebioassay.package             
390     ================================= -->
391  <target name="mergebioassay.package" depends="mergebioassay.dist" description="--> Create a zip file containting all files necessary for distribution.">
392    <mkdir dir="${mergebioassay.pac}"/>
393    <copy file="${dist}/mergebioassay.jar" todir="${mergebioassay.pac}" />
394    <copy file="${doc}/gpl.txt" todir="${mergebioassay.pac}" />
395    <copy file="${mergebioassay.doc}/run" todir="${mergebioassay.pac}" />
396    <copy file="${mergebioassay.doc}/mergebioassay.base" todir="${mergebioassay.pac}" />
397    <zip destfile="mergebioassay.zip" basedir="${mergebioassay.pac}" />
398  </target>
399
400  <!-- =================================
401      target: smooth.package             
402     ================================= -->
403  <target name="smooth.package" depends="smooth.dist" description="--> Create a zip file containting all files necessary for distribution.">
404    <mkdir dir="${smooth.pac}"/>
405    <copy file="${dist}/smooth.jar" todir="${smooth.pac}" />
406    <copy file="${doc}/gpl.txt" todir="${smooth.pac}" />
407    <copy file="${smooth.doc}/run" todir="${smooth.pac}" />
408    <copy file="${smooth.doc}/smooth.base" todir="${smooth.pac}" />
409    <zip destfile="smooth.zip" basedir="${smooth.pac}" />
410  </target> 
411 
412</project>
Note: See TracBrowser for help on using the repository browser.