11 |
11 Oct 05 |
enell |
1 |
<?xml version="1.0" encoding="UTF-8"?> |
758 |
15 Sep 08 |
jari |
2 |
<!-- |
789 |
18 Sep 08 |
jari |
$Id$ |
11 |
11 Oct 05 |
enell |
4 |
|
789 |
18 Sep 08 |
jari |
Copyright (C) 2005, 2006 Johan Enell |
789 |
18 Sep 08 |
jari |
Copyright (C) 2008 Jari Hakkinen |
65 |
07 Feb 06 |
enell |
7 |
|
789 |
18 Sep 08 |
jari |
This file is part of the se.lu.onk.ReplicateError plug-in for |
758 |
15 Sep 08 |
jari |
BASE. Available at http://baseplugins.thep.lu.se/ and BASE web |
758 |
15 Sep 08 |
jari |
site is http://base.thep.lu.se |
11 |
11 Oct 05 |
enell |
11 |
|
789 |
18 Sep 08 |
jari |
This is free software; you can redistribute it and/or modify it |
789 |
18 Sep 08 |
jari |
under the terms of the GNU General Public License as published by |
789 |
18 Sep 08 |
jari |
the Free Software Foundation; either version 3 of the License, or |
789 |
18 Sep 08 |
jari |
(at your option) any later version. |
180 |
27 Sep 06 |
enell |
16 |
|
789 |
18 Sep 08 |
jari |
The software is distributed in the hope that it will be useful, |
789 |
18 Sep 08 |
jari |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
789 |
18 Sep 08 |
jari |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
789 |
18 Sep 08 |
jari |
General Public License for more details. |
65 |
07 Feb 06 |
enell |
21 |
|
789 |
18 Sep 08 |
jari |
You should have received a copy of the GNU General Public License |
789 |
18 Sep 08 |
jari |
along with BASE. If not, see <http://www.gnu.org/licenses/>. |
758 |
15 Sep 08 |
jari |
24 |
--> |
758 |
15 Sep 08 |
jari |
25 |
<project name="se.lu.onk.ReplicateError plug-in for BASE" |
758 |
15 Sep 08 |
jari |
26 |
default="dist" basedir="."> |
758 |
15 Sep 08 |
jari |
27 |
<description> |
758 |
15 Sep 08 |
jari |
28 |
This build file is used for se.lu.onk.ReplicateError plug-in for |
758 |
15 Sep 08 |
jari |
29 |
BASE created at the Department of Oncology, Lund University, |
758 |
15 Sep 08 |
jari |
30 |
Sweden. |
758 |
15 Sep 08 |
jari |
31 |
</description> |
65 |
07 Feb 06 |
enell |
32 |
|
758 |
15 Sep 08 |
jari |
<!-- properties --> |
764 |
16 Sep 08 |
jari |
34 |
|
764 |
16 Sep 08 |
jari |
<!-- set version |
764 |
16 Sep 08 |
jari |
Two numbers are used. 1.0 is the first release, the second |
764 |
16 Sep 08 |
jari |
number is increased for each new release that does not changed |
764 |
16 Sep 08 |
jari |
the API. The first number is changed for API changing |
764 |
16 Sep 08 |
jari |
releases. Add "pre" to unreleased versions. Examples: |
764 |
16 Sep 08 |
jari |
1.0, 1.1, 1.2pre |
764 |
16 Sep 08 |
jari |
41 |
--> |
803 |
01 Oct 08 |
jari |
42 |
<property name="version" value="1.4pre" /> |
764 |
16 Sep 08 |
jari |
43 |
|
764 |
16 Sep 08 |
jari |
44 |
<property name="basefilejar" value="BaseFile" /> |
758 |
15 Sep 08 |
jari |
45 |
<property name="build" location="build" /> |
99 |
20 Apr 06 |
enell |
46 |
<property name="dist" location="dist" /> |
764 |
16 Sep 08 |
jari |
47 |
<property name="lib" location="lib" /> |
758 |
15 Sep 08 |
jari |
48 |
<property name="package" value="replicateerror"/> |
764 |
16 Sep 08 |
jari |
49 |
<property name="packagestring" value="ReplicateError-${version}" /> |
764 |
16 Sep 08 |
jari |
50 |
<property name="src" location="src" /> |
789 |
18 Sep 08 |
jari |
51 |
|
205 |
24 Nov 06 |
enell |
52 |
<path id="classpath"> |
764 |
16 Sep 08 |
jari |
53 |
<fileset dir="${basefilejar}"> |
789 |
18 Sep 08 |
jari |
54 |
<include name="**/*.jar"/> |
789 |
18 Sep 08 |
jari |
55 |
</fileset> |
205 |
24 Nov 06 |
enell |
56 |
</path> |
789 |
18 Sep 08 |
jari |
57 |
|
65 |
07 Feb 06 |
enell |
58 |
<!-- ================================= |
789 |
18 Sep 08 |
jari |
target: compile |
99 |
20 Apr 06 |
enell |
60 |
================================== --> |
758 |
15 Sep 08 |
jari |
61 |
<target name="compile" description="--> Compile the package"> |
758 |
15 Sep 08 |
jari |
62 |
<mkdir dir="${build}"/> |
99 |
20 Apr 06 |
enell |
63 |
<javac |
758 |
15 Sep 08 |
jari |
64 |
srcdir="${src}" |
758 |
15 Sep 08 |
jari |
65 |
destdir="${build}" |
758 |
15 Sep 08 |
jari |
66 |
classpathref="classpath" |
758 |
15 Sep 08 |
jari |
67 |
debug="true" |
758 |
15 Sep 08 |
jari |
68 |
deprecation="true" |
758 |
15 Sep 08 |
jari |
69 |
encoding="ISO-8859-1" |
758 |
15 Sep 08 |
jari |
70 |
/> |
789 |
18 Sep 08 |
jari |
71 |
</target> |
789 |
18 Sep 08 |
jari |
72 |
|
65 |
07 Feb 06 |
enell |
73 |
<!-- ================================= |
789 |
18 Sep 08 |
jari |
target: clean |
11 |
11 Oct 05 |
enell |
75 |
================================= --> |
100 |
20 Apr 06 |
enell |
76 |
<target name="clean" description="--> Remove all generated files"> |
758 |
15 Sep 08 |
jari |
77 |
<delete dir="${build}" /> |
100 |
20 Apr 06 |
enell |
78 |
<delete dir="${dist}" /> |
758 |
15 Sep 08 |
jari |
79 |
<delete dir="${package}" /> |
764 |
16 Sep 08 |
jari |
80 |
<delete file="${packagestring}.tgz" /> |
764 |
16 Sep 08 |
jari |
81 |
<delete file="${packagestring}.tgz.MD5" /> |
11 |
11 Oct 05 |
enell |
82 |
</target> |
65 |
07 Feb 06 |
enell |
83 |
|
65 |
07 Feb 06 |
enell |
84 |
<!-- ================================= |
789 |
18 Sep 08 |
jari |
target: dist |
65 |
07 Feb 06 |
enell |
86 |
================================== --> |
758 |
15 Sep 08 |
jari |
87 |
<target name="dist" depends="compile"> |
140 |
10 Aug 06 |
enell |
88 |
<mkdir dir="${dist}" /> |
758 |
15 Sep 08 |
jari |
89 |
<jar destfile="${dist}/ReplicateError.jar"> |
758 |
15 Sep 08 |
jari |
90 |
<fileset dir="${build}" /> |
789 |
18 Sep 08 |
jari |
91 |
<manifest> |
789 |
18 Sep 08 |
jari |
92 |
<attribute name="Built-By" value="${user.name}"/> |
789 |
18 Sep 08 |
jari |
93 |
<attribute name="Main-Class" value="replicateerror.ReplicateError"/> |
789 |
18 Sep 08 |
jari |
94 |
</manifest> |
99 |
20 Apr 06 |
enell |
95 |
</jar> |
99 |
20 Apr 06 |
enell |
96 |
</target> |
789 |
18 Sep 08 |
jari |
97 |
|
789 |
18 Sep 08 |
jari |
98 |
<!-- ================================= |
789 |
18 Sep 08 |
jari |
target: package |
180 |
27 Sep 06 |
enell |
100 |
================================= --> |
758 |
15 Sep 08 |
jari |
101 |
<target name="package" depends="dist" |
766 |
16 Sep 08 |
jari |
102 |
description="--> Create a tgz file for distribution."> |
758 |
15 Sep 08 |
jari |
103 |
<mkdir dir="${package}"/> |
764 |
16 Sep 08 |
jari |
104 |
<mkdir dir="${package}/${basefilejar}"/> |
764 |
16 Sep 08 |
jari |
105 |
<copy todir="${package}"> |
758 |
15 Sep 08 |
jari |
106 |
<fileset file="${dist}/ReplicateError.jar" /> |
764 |
16 Sep 08 |
jari |
107 |
<fileset dir="${lib}" /> |
758 |
15 Sep 08 |
jari |
108 |
<fileset file="license.txt" /> |
764 |
16 Sep 08 |
jari |
109 |
<fileset file="README" /> |
758 |
15 Sep 08 |
jari |
110 |
</copy> |
764 |
16 Sep 08 |
jari |
111 |
<copy todir="${package}/${basefilejar}"> |
764 |
16 Sep 08 |
jari |
112 |
<fileset dir="${basefilejar}" /> |
764 |
16 Sep 08 |
jari |
113 |
</copy> |
773 |
18 Sep 08 |
jari |
114 |
<replace dir="${package}"> |
773 |
18 Sep 08 |
jari |
115 |
<include name="*.base" /> |
771 |
18 Sep 08 |
jari |
116 |
<replacefilter |
771 |
18 Sep 08 |
jari |
117 |
token="@VERSION@" |
771 |
18 Sep 08 |
jari |
118 |
value="${version}" |
771 |
18 Sep 08 |
jari |
119 |
/> |
771 |
18 Sep 08 |
jari |
120 |
</replace> |
764 |
16 Sep 08 |
jari |
121 |
<tar |
764 |
16 Sep 08 |
jari |
122 |
destfile="${packagestring}.tgz" |
764 |
16 Sep 08 |
jari |
123 |
longfile="gnu" |
764 |
16 Sep 08 |
jari |
124 |
compression="gzip" |
764 |
16 Sep 08 |
jari |
125 |
> |
764 |
16 Sep 08 |
jari |
126 |
<tarfileset |
764 |
16 Sep 08 |
jari |
127 |
dir="${package}" |
764 |
16 Sep 08 |
jari |
128 |
mode="755" |
764 |
16 Sep 08 |
jari |
129 |
prefix="${packagestring}" |
764 |
16 Sep 08 |
jari |
130 |
preserveLeadingSlashes="true" |
764 |
16 Sep 08 |
jari |
131 |
> |
764 |
16 Sep 08 |
jari |
132 |
<include name="runAA" /> |
764 |
16 Sep 08 |
jari |
133 |
<include name="runWA" /> |
764 |
16 Sep 08 |
jari |
134 |
</tarfileset> |
764 |
16 Sep 08 |
jari |
135 |
<tarfileset |
764 |
16 Sep 08 |
jari |
136 |
dir="${package}" |
764 |
16 Sep 08 |
jari |
137 |
prefix="${packagestring}" |
764 |
16 Sep 08 |
jari |
138 |
preserveLeadingSlashes="true" |
764 |
16 Sep 08 |
jari |
139 |
> |
764 |
16 Sep 08 |
jari |
140 |
<exclude name="runAA" /> |
764 |
16 Sep 08 |
jari |
141 |
<exclude name="runWA" /> |
764 |
16 Sep 08 |
jari |
142 |
</tarfileset> |
764 |
16 Sep 08 |
jari |
143 |
</tar> |
764 |
16 Sep 08 |
jari |
144 |
<checksum file="${packagestring}.tgz" /> |
789 |
18 Sep 08 |
jari |
145 |
</target> |
789 |
18 Sep 08 |
jari |
146 |
|
707 |
27 May 08 |
jari |
147 |
</project> |