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

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

changed in the mergebioassay package target

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