747 |
27 Aug 08 |
martin |
1 |
<?xml version="1.0" encoding="UTF-8"?> |
747 |
27 Aug 08 |
martin |
2 |
<!-- |
910 |
09 Dec 08 |
jari |
$Id$ |
747 |
27 Aug 08 |
martin |
4 |
|
910 |
09 Dec 08 |
jari |
Copyright (C) 2008 Martin Svensson |
964 |
16 Feb 09 |
jari |
Copyright (C) 2009 Jari Häkkinen, Martin Svensson |
1186 |
15 Jan 10 |
jari |
Copyright (C) 2010 Jari Häkkinen |
910 |
09 Dec 08 |
jari |
8 |
|
910 |
09 Dec 08 |
jari |
This file is part of the Normalizers plug-in package for BASE |
910 |
09 Dec 08 |
jari |
(net.sf.based.normalizers). The package is available at |
910 |
09 Dec 08 |
jari |
http://baseplugins.thep.lu.se/ BASE main site is |
910 |
09 Dec 08 |
jari |
http://base.thep.lu.se/ |
910 |
09 Dec 08 |
jari |
13 |
|
910 |
09 Dec 08 |
jari |
This is free software; you can redistribute it and/or modify it |
910 |
09 Dec 08 |
jari |
under the terms of the GNU General Public License as published by |
910 |
09 Dec 08 |
jari |
the Free Software Foundation; either version 3 of the License, or |
910 |
09 Dec 08 |
jari |
(at your option) any later version. |
910 |
09 Dec 08 |
jari |
18 |
|
910 |
09 Dec 08 |
jari |
The software is distributed in the hope that it will be useful, |
910 |
09 Dec 08 |
jari |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
910 |
09 Dec 08 |
jari |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
910 |
09 Dec 08 |
jari |
General Public License for more details. |
910 |
09 Dec 08 |
jari |
23 |
|
910 |
09 Dec 08 |
jari |
You should have received a copy of the GNU General Public License |
910 |
09 Dec 08 |
jari |
along with this program. If not, see <http://www.gnu.org/licenses/>. |
747 |
27 Aug 08 |
martin |
26 |
--> |
747 |
27 Aug 08 |
martin |
27 |
|
727 |
15 Jul 08 |
martin |
28 |
<project |
727 |
15 Jul 08 |
martin |
29 |
name="NormalizationPlugins" |
961 |
12 Feb 09 |
jari |
30 |
default="dist" |
961 |
12 Feb 09 |
jari |
31 |
basedir="." |
961 |
12 Feb 09 |
jari |
32 |
> |
1039 |
16 Apr 09 |
jari |
33 |
<description> |
1194 |
03 Mar 10 |
jari |
34 |
Build file for the Normalizers plug-in package for BASE. The main |
1039 |
16 Apr 09 |
jari |
35 |
targets are ('dist' is default): |
1039 |
16 Apr 09 |
jari |
36 |
|
1039 |
16 Apr 09 |
jari |
37 |
Clean up: |
1039 |
16 Apr 09 |
jari |
38 |
clean Remove generated files |
1039 |
16 Apr 09 |
jari |
39 |
distclean Remove all generated and downloaded files |
1039 |
16 Apr 09 |
jari |
40 |
|
1039 |
16 Apr 09 |
jari |
41 |
Compiling: |
1039 |
16 Apr 09 |
jari |
42 |
build Build all Java code |
1039 |
16 Apr 09 |
jari |
43 |
c++ Build all C++ code in directory src/c++ |
1039 |
16 Apr 09 |
jari |
44 |
dist Build all Java code for distribution (put in 'dist' |
1039 |
16 Apr 09 |
jari |
45 |
subdirectory) |
1039 |
16 Apr 09 |
jari |
46 |
download-lib Download required external dependecy files |
1039 |
16 Apr 09 |
jari |
47 |
|
1039 |
16 Apr 09 |
jari |
48 |
Packaging: |
1039 |
16 Apr 09 |
jari |
49 |
package: Create *.tar.gz file containing required jars and |
1039 |
16 Apr 09 |
jari |
50 |
source tar.gz files for non-Java source files. |
1039 |
16 Apr 09 |
jari |
51 |
</description> |
727 |
15 Jul 08 |
martin |
52 |
|
961 |
12 Feb 09 |
jari |
<!--create this file if you need to override values from properties below --> |
961 |
12 Feb 09 |
jari |
54 |
<property file="build.properties" /> |
961 |
12 Feb 09 |
jari |
55 |
|
961 |
12 Feb 09 |
jari |
<!-- variables used --> |
1410 |
19 Oct 11 |
nicklas |
57 |
<property name="name" value="normalization-plugins" /> |
2176 |
12 Dec 13 |
jari |
58 |
<property name="version" value="1.1-beta2" description="Version number of the package" /> |
1410 |
19 Oct 11 |
nicklas |
59 |
<property name="src" value="src" /> |
947 |
29 Jan 09 |
martin |
60 |
<property name="build" value="build" description="Location of build class files"/> |
731 |
23 Jul 08 |
martin |
61 |
<property name="dist" value="dist" description="Location where jar-file are created"/> |
731 |
23 Jul 08 |
martin |
62 |
<property name="jar" value="${name}.jar" description="Name of the jar file"/> |
731 |
23 Jul 08 |
martin |
63 |
<property name="package" location="package" description="Directory where packaged distribution files are created"/> |
731 |
23 Jul 08 |
martin |
64 |
<property name="javac.arg" value="-Xlint:unchecked" /> |
2284 |
13 Mar 14 |
nicklas |
65 |
<property name="javac.source" value="1.7" /> |
2284 |
13 Mar 14 |
nicklas |
66 |
<property name="javac.target" value="1.7" /> |
1029 |
07 Apr 09 |
jari |
67 |
<property name="javac.encoding" value="UTF-8" /> |
1410 |
19 Oct 11 |
nicklas |
68 |
<property name="depend.base-version" |
2284 |
13 Mar 14 |
nicklas |
69 |
value="3.3.0" |
1410 |
19 Oct 11 |
nicklas |
70 |
description="The BASE version that this project depends on." |
1410 |
19 Oct 11 |
nicklas |
71 |
/> |
1410 |
19 Oct 11 |
nicklas |
72 |
<property name="depend.jars" |
2759 |
08 Oct 14 |
nicklas |
73 |
value="http://base.thep.lu.se/chrome/site/files/base/jars/${depend.base-version}" |
1410 |
19 Oct 11 |
nicklas |
74 |
description="The location of the BASE core JARs that this project depends on." |
1410 |
19 Oct 11 |
nicklas |
75 |
/> |
961 |
12 Feb 09 |
jari |
76 |
|
961 |
12 Feb 09 |
jari |
77 |
<property name="depend.PluginUtilityLocation" |
961 |
12 Feb 09 |
jari |
78 |
value="http://baseplugins.thep.lu.se/attachment/wiki/net.sf.basedb.pluginutilties" |
961 |
12 Feb 09 |
jari |
79 |
description="The location of the PluginUtility JAR that we depend on" |
961 |
12 Feb 09 |
jari |
80 |
/> |
1079 |
15 May 09 |
jari |
81 |
<property name="PluginUtilityVersion" value="0.2" |
961 |
12 Feb 09 |
jari |
82 |
description="The version of PluginUtility that we depend on" |
961 |
12 Feb 09 |
jari |
83 |
/> |
961 |
12 Feb 09 |
jari |
84 |
<property name="PluginUtilitiesBase" |
961 |
12 Feb 09 |
jari |
85 |
value="PluginUtilities-${PluginUtilityVersion}" /> |
730 |
23 Jul 08 |
martin |
86 |
|
1410 |
19 Oct 11 |
nicklas |
87 |
|
961 |
12 Feb 09 |
jari |
<!-- set up classpath for compiling --> |
961 |
12 Feb 09 |
jari |
89 |
<path id="classpath"> |
961 |
12 Feb 09 |
jari |
90 |
<fileset dir="lib"> |
961 |
12 Feb 09 |
jari |
91 |
<include name="**/*.jar"/> |
961 |
12 Feb 09 |
jari |
92 |
</fileset> |
2182 |
13 Dec 13 |
nicklas |
93 |
<fileset dir="META-INF/lib"> |
2182 |
13 Dec 13 |
nicklas |
94 |
<include name="**/*.jar"/> |
2182 |
13 Dec 13 |
nicklas |
95 |
</fileset> |
961 |
12 Feb 09 |
jari |
96 |
</path> |
961 |
12 Feb 09 |
jari |
97 |
|
731 |
23 Jul 08 |
martin |
98 |
<target name="init"> |
731 |
23 Jul 08 |
martin |
99 |
<mkdir dir="${build}" /> |
731 |
23 Jul 08 |
martin |
100 |
<mkdir dir="${dist}" /> |
731 |
23 Jul 08 |
martin |
101 |
</target> |
731 |
23 Jul 08 |
martin |
102 |
|
731 |
23 Jul 08 |
martin |
103 |
<target name="clean"> |
731 |
23 Jul 08 |
martin |
104 |
<delete failonerror="false" includeemptydirs="true"> |
731 |
23 Jul 08 |
martin |
105 |
<fileset dir="${build}" defaultexcludes="no" /> |
731 |
23 Jul 08 |
martin |
106 |
<fileset dir="${dist}" defaultexcludes="no" /> |
731 |
23 Jul 08 |
martin |
107 |
<fileset dir="${package}" defaultexcludes="no" /> |
731 |
23 Jul 08 |
martin |
108 |
</delete> |
731 |
23 Jul 08 |
martin |
109 |
</target> |
961 |
12 Feb 09 |
jari |
110 |
|
961 |
12 Feb 09 |
jari |
111 |
<target |
961 |
12 Feb 09 |
jari |
112 |
name="distclean" |
961 |
12 Feb 09 |
jari |
113 |
depends="clean"> |
961 |
12 Feb 09 |
jari |
114 |
<delete failonerror="false" includeemptydirs="true"> |
2182 |
13 Dec 13 |
nicklas |
115 |
<fileset file="META-INF/lib/${PluginUtilitiesBase}.jar" /> |
961 |
12 Feb 09 |
jari |
116 |
<fileset file="lib/${PluginUtilitiesBase}.tgz" /> |
961 |
12 Feb 09 |
jari |
117 |
<fileset dir="lib/compile" defaultexcludes="no"> |
961 |
12 Feb 09 |
jari |
118 |
<include name="*.jar" /> |
961 |
12 Feb 09 |
jari |
119 |
</fileset> |
961 |
12 Feb 09 |
jari |
120 |
</delete> |
961 |
12 Feb 09 |
jari |
121 |
</target> |
961 |
12 Feb 09 |
jari |
122 |
|
961 |
12 Feb 09 |
jari |
<!-- main target --> |
961 |
12 Feb 09 |
jari |
124 |
<target |
961 |
12 Feb 09 |
jari |
125 |
name="dist" |
972 |
25 Feb 09 |
jari |
126 |
depends="clean,build,manifest" |
961 |
12 Feb 09 |
jari |
127 |
> |
972 |
25 Feb 09 |
jari |
128 |
<jar |
972 |
25 Feb 09 |
jari |
129 |
jarfile="${dist}/${jar}" |
972 |
25 Feb 09 |
jari |
130 |
basedir="${build}" |
972 |
25 Feb 09 |
jari |
131 |
manifest="${build}/META-INF/MANIFEST.MF" |
972 |
25 Feb 09 |
jari |
132 |
/> |
961 |
12 Feb 09 |
jari |
133 |
<copy todir="${dist}"> |
931 |
18 Dec 08 |
jari |
134 |
<fileset dir="." includes="README*,license.txt,INSTALL" /> |
731 |
23 Jul 08 |
martin |
135 |
</copy> |
961 |
12 Feb 09 |
jari |
136 |
</target> |
961 |
12 Feb 09 |
jari |
137 |
|
731 |
23 Jul 08 |
martin |
138 |
<target |
972 |
25 Feb 09 |
jari |
139 |
name="manifest" |
972 |
25 Feb 09 |
jari |
140 |
description="Create MANIFEST.MF needed to set class path" |
972 |
25 Feb 09 |
jari |
141 |
> |
972 |
25 Feb 09 |
jari |
142 |
<manifest file="${build}/META-INF/MANIFEST.MF"> |
972 |
25 Feb 09 |
jari |
143 |
<attribute name="Built-By" value="${user.name}"/> |
2182 |
13 Dec 13 |
nicklas |
144 |
<attribute name="Class-Path" value="lib/${PluginUtilitiesBase}.jar"/> |
972 |
25 Feb 09 |
jari |
145 |
</manifest> |
972 |
25 Feb 09 |
jari |
146 |
</target> |
972 |
25 Feb 09 |
jari |
147 |
|
972 |
25 Feb 09 |
jari |
148 |
<target |
731 |
23 Jul 08 |
martin |
149 |
name="package" |
964 |
16 Feb 09 |
jari |
150 |
depends="dist, package-qQuantileSource" |
731 |
23 Jul 08 |
martin |
151 |
description="Create binary distribution package" |
731 |
23 Jul 08 |
martin |
152 |
> |
731 |
23 Jul 08 |
martin |
153 |
<property name="tar.prefix" value="${name}-${version}" /> |
731 |
23 Jul 08 |
martin |
154 |
<mkdir dir="${package}" /> |
731 |
23 Jul 08 |
martin |
155 |
<tar |
731 |
23 Jul 08 |
martin |
156 |
destfile="${package}/${tar.prefix}.tar.gz" |
731 |
23 Jul 08 |
martin |
157 |
longfile="gnu" |
731 |
23 Jul 08 |
martin |
158 |
compression="gzip" |
731 |
23 Jul 08 |
martin |
159 |
> |
731 |
23 Jul 08 |
martin |
160 |
<tarfileset |
731 |
23 Jul 08 |
martin |
161 |
dir="${dist}" |
731 |
23 Jul 08 |
martin |
162 |
mode="755" |
731 |
23 Jul 08 |
martin |
163 |
prefix="${tar.prefix}" |
731 |
23 Jul 08 |
martin |
164 |
preserveLeadingSlashes="true" |
731 |
23 Jul 08 |
martin |
165 |
> |
731 |
23 Jul 08 |
martin |
166 |
<include name="**/*.sh" /> |
731 |
23 Jul 08 |
martin |
167 |
</tarfileset> |
731 |
23 Jul 08 |
martin |
168 |
<tarfileset |
731 |
23 Jul 08 |
martin |
169 |
dir="${dist}" |
731 |
23 Jul 08 |
martin |
170 |
prefix="${tar.prefix}" |
731 |
23 Jul 08 |
martin |
171 |
preserveLeadingSlashes="true" |
731 |
23 Jul 08 |
martin |
172 |
> |
731 |
23 Jul 08 |
martin |
173 |
<exclude name="**/*.sh" /> |
731 |
23 Jul 08 |
martin |
174 |
</tarfileset> |
731 |
23 Jul 08 |
martin |
175 |
</tar> |
948 |
30 Jan 09 |
martin |
176 |
<checksum file="${package}/${tar.prefix}.tar.gz" /> |
731 |
23 Jul 08 |
martin |
177 |
</target> |
964 |
16 Feb 09 |
jari |
178 |
|
964 |
16 Feb 09 |
jari |
179 |
<target |
964 |
16 Feb 09 |
jari |
180 |
name="package-qQuantileSource" |
964 |
16 Feb 09 |
jari |
181 |
description="Add qQuantileNormalization C++ package to 'dist'" |
964 |
16 Feb 09 |
jari |
182 |
> |
964 |
16 Feb 09 |
jari |
183 |
<exec dir="${src}/c++/" executable="./bootstrap" /> |
964 |
16 Feb 09 |
jari |
184 |
<replace file="${src}/c++/configure"> |
964 |
16 Feb 09 |
jari |
185 |
<replacefilter |
964 |
16 Feb 09 |
jari |
186 |
token="@PKGVERSION@" |
964 |
16 Feb 09 |
jari |
187 |
value="${version}" |
964 |
16 Feb 09 |
jari |
188 |
/> |
964 |
16 Feb 09 |
jari |
189 |
</replace> |
964 |
16 Feb 09 |
jari |
190 |
<chmod file="${src}/c++/configure" perm="a+x" /> |
964 |
16 Feb 09 |
jari |
191 |
<exec dir="${src}/c++/" executable="./configure"> |
964 |
16 Feb 09 |
jari |
192 |
<arg line="--disable-libcheck" /> |
964 |
16 Feb 09 |
jari |
193 |
</exec> |
964 |
16 Feb 09 |
jari |
194 |
<exec dir="${src}/c++/" executable="make"> |
964 |
16 Feb 09 |
jari |
195 |
<arg line="dist" /> |
964 |
16 Feb 09 |
jari |
196 |
</exec> |
1042 |
20 Apr 09 |
jari |
197 |
<move file="${src}/c++/qqn-${version}.tar.gz" todir="dist" /> |
964 |
16 Feb 09 |
jari |
198 |
</target> |
964 |
16 Feb 09 |
jari |
199 |
|
731 |
23 Jul 08 |
martin |
200 |
<target |
731 |
23 Jul 08 |
martin |
201 |
name="build" |
945 |
28 Jan 09 |
martin |
202 |
depends="init, checkjar" |
731 |
23 Jul 08 |
martin |
203 |
description="Compiles the plugin and put in jar" |
731 |
23 Jul 08 |
martin |
204 |
> |
731 |
23 Jul 08 |
martin |
205 |
<mkdir dir="${build}" /> |
731 |
23 Jul 08 |
martin |
206 |
<javac |
731 |
23 Jul 08 |
martin |
207 |
encoding="${javac.encoding}" |
731 |
23 Jul 08 |
martin |
208 |
srcdir="${src}" |
731 |
23 Jul 08 |
martin |
209 |
destdir="${build}" |
731 |
23 Jul 08 |
martin |
210 |
debug="true" |
731 |
23 Jul 08 |
martin |
211 |
classpathref="classpath" |
731 |
23 Jul 08 |
martin |
212 |
source="${javac.source}" |
731 |
23 Jul 08 |
martin |
213 |
target="${javac.target}" |
1410 |
19 Oct 11 |
nicklas |
214 |
includeantruntime="false" |
731 |
23 Jul 08 |
martin |
215 |
> |
731 |
23 Jul 08 |
martin |
216 |
<compilerarg value="${javac.arg}" /> |
731 |
23 Jul 08 |
martin |
217 |
</javac> |
731 |
23 Jul 08 |
martin |
218 |
<copy todir="${build}"> |
2182 |
13 Dec 13 |
nicklas |
219 |
<fileset dir="." includes="META-INF/**" /> |
730 |
23 Jul 08 |
martin |
220 |
</copy> |
947 |
29 Jan 09 |
martin |
221 |
|
731 |
23 Jul 08 |
martin |
222 |
</target> |
731 |
23 Jul 08 |
martin |
223 |
|
2180 |
12 Dec 13 |
nicklas |
224 |
<target |
2180 |
12 Dec 13 |
nicklas |
225 |
name="install" |
2180 |
12 Dec 13 |
nicklas |
226 |
depends="dist" |
2180 |
12 Dec 13 |
nicklas |
227 |
> |
2180 |
12 Dec 13 |
nicklas |
228 |
<fail unless="base.plugins" message="base.plugins is not set to the path of BASE plug-ins directory." /> |
2180 |
12 Dec 13 |
nicklas |
229 |
<copy todir="${base.plugins}"> |
2180 |
12 Dec 13 |
nicklas |
230 |
<fileset file="${dist}/${jar}" /> |
2180 |
12 Dec 13 |
nicklas |
231 |
</copy> |
2180 |
12 Dec 13 |
nicklas |
232 |
<echo>Copied '${jar}' to '${base.plugins}'.</echo> |
2180 |
12 Dec 13 |
nicklas |
233 |
</target> |
2180 |
12 Dec 13 |
nicklas |
234 |
|
1410 |
19 Oct 11 |
nicklas |
235 |
<target name="update-version"> |
1410 |
19 Oct 11 |
nicklas |
236 |
<echo>Setting version to: ${version}</echo> |
1410 |
19 Oct 11 |
nicklas |
237 |
|
1410 |
19 Oct 11 |
nicklas |
238 |
<echo>Normalizations.java</echo> |
1410 |
19 Oct 11 |
nicklas |
239 |
<replaceregexp |
1410 |
19 Oct 11 |
nicklas |
240 |
file="${src}/net/sf/basedb/normalizers/Normalizations.java" |
1410 |
19 Oct 11 |
nicklas |
241 |
match="public static final String VERSION = ".*";" |
1410 |
19 Oct 11 |
nicklas |
242 |
replace="public static final String VERSION = "${version}";" |
1410 |
19 Oct 11 |
nicklas |
243 |
encoding="UTF-8" |
1410 |
19 Oct 11 |
nicklas |
244 |
/> |
1410 |
19 Oct 11 |
nicklas |
245 |
|
1410 |
19 Oct 11 |
nicklas |
246 |
<echo>extensions.xml</echo> |
1410 |
19 Oct 11 |
nicklas |
247 |
<replaceregexp |
1410 |
19 Oct 11 |
nicklas |
248 |
file="META-INF/extensions.xml" |
1410 |
19 Oct 11 |
nicklas |
249 |
match="<version>.*</version>" |
1410 |
19 Oct 11 |
nicklas |
250 |
replace="<version>${version}</version>" |
1410 |
19 Oct 11 |
nicklas |
251 |
encoding="UTF-8" |
1410 |
19 Oct 11 |
nicklas |
252 |
/> |
1410 |
19 Oct 11 |
nicklas |
253 |
<replaceregexp |
1410 |
19 Oct 11 |
nicklas |
254 |
file="META-INF/extensions.xml" |
1410 |
19 Oct 11 |
nicklas |
255 |
match="<min-base-version>.*</min-base-version>" |
1410 |
19 Oct 11 |
nicklas |
256 |
replace="<min-base-version>${depend.base-version}</min-base-version>" |
1410 |
19 Oct 11 |
nicklas |
257 |
encoding="UTF-8" |
1410 |
19 Oct 11 |
nicklas |
258 |
/> |
1410 |
19 Oct 11 |
nicklas |
259 |
<echo>Don't forget to commit the changes to the subversion repository!</echo> |
1410 |
19 Oct 11 |
nicklas |
260 |
</target> |
1410 |
19 Oct 11 |
nicklas |
261 |
|
945 |
28 Jan 09 |
martin |
262 |
<target |
945 |
28 Jan 09 |
martin |
263 |
name="checkjar" |
1410 |
19 Oct 11 |
nicklas |
264 |
description="Checks that the BASE JAR files, |
961 |
12 Feb 09 |
jari |
265 |
and appropriate PluginUtilities jar file exists." |
945 |
28 Jan 09 |
martin |
266 |
> |
945 |
28 Jan 09 |
martin |
267 |
<available classname="net.sf.basedb.core.Application" |
1410 |
19 Oct 11 |
nicklas |
268 |
classpathref="classpath" property="base-core" /> |
945 |
28 Jan 09 |
martin |
269 |
<available classname="net.sf.basedb.plugins.ReporterFlatFileImporter" |
1410 |
19 Oct 11 |
nicklas |
270 |
classpathref="classpath" property="base-coreplugins" /> |
961 |
12 Feb 09 |
jari |
271 |
<available classname="net.sf.basedb.plugins.AbstractRunBinaryPlugin" |
961 |
12 Feb 09 |
jari |
272 |
classpathref="classpath" |
2182 |
13 Dec 13 |
nicklas |
273 |
classpath="META-INF/lib/${PluginUtilitiesBase}/${PluginUtilitiesBase}.jar" |
961 |
12 Feb 09 |
jari |
274 |
property="pluginutilities" /> |
1410 |
19 Oct 11 |
nicklas |
275 |
<fail unless="base-core" message="Can't find base-core-${depend.base-version}.jar in ./lib/compile. Try 'ant download-lib' to download the missing file." /> |
1410 |
19 Oct 11 |
nicklas |
276 |
<fail unless="base-coreplugins" message="Can't find base-coreplugins-${depend.base-version}.jar in ./lib/compile. Try 'ant download-lib' to download the missing file." /> |
2182 |
13 Dec 13 |
nicklas |
277 |
<fail unless="pluginutilities" message="Can't find PluginUtilities jar file in ./META-INF/lib. Try 'ant download-lib' to download the missing file." /> |
1410 |
19 Oct 11 |
nicklas |
278 |
<echo>Found all required jar files</echo> |
945 |
28 Jan 09 |
martin |
279 |
</target> |
945 |
28 Jan 09 |
martin |
280 |
|
1039 |
16 Apr 09 |
jari |
281 |
<target name="c++"> |
1039 |
16 Apr 09 |
jari |
282 |
<exec dir="${src}/c++/" executable="./bootstrap" /> |
1039 |
16 Apr 09 |
jari |
283 |
<replace file="${src}/c++/configure"> |
1039 |
16 Apr 09 |
jari |
284 |
<replacefilter |
1039 |
16 Apr 09 |
jari |
285 |
token="@PKGVERSION@" |
1039 |
16 Apr 09 |
jari |
286 |
value="${version}" |
1039 |
16 Apr 09 |
jari |
287 |
/> |
1039 |
16 Apr 09 |
jari |
288 |
</replace> |
1039 |
16 Apr 09 |
jari |
289 |
<chmod file="${src}/c++/configure" perm="a+x" /> |
1039 |
16 Apr 09 |
jari |
290 |
<exec dir="${src}/c++/" executable="./configure"> |
1039 |
16 Apr 09 |
jari |
291 |
</exec> |
1039 |
16 Apr 09 |
jari |
292 |
<exec dir="${src}/c++/" executable="make"> |
1039 |
16 Apr 09 |
jari |
293 |
</exec> |
1039 |
16 Apr 09 |
jari |
294 |
</target> |
1039 |
16 Apr 09 |
jari |
295 |
|
945 |
28 Jan 09 |
martin |
296 |
<target |
945 |
28 Jan 09 |
martin |
297 |
name="download-lib" |
961 |
12 Feb 09 |
jari |
298 |
depends="download-message, download-pluginutilities" |
1410 |
19 Oct 11 |
nicklas |
299 |
description="Download BASE JAR files" |
945 |
28 Jan 09 |
martin |
300 |
> |
961 |
12 Feb 09 |
jari |
301 |
<download |
1410 |
19 Oct 11 |
nicklas |
302 |
location="${depend.jars}" |
1410 |
19 Oct 11 |
nicklas |
303 |
file="base-core-${depend.base-version}.jar" |
961 |
12 Feb 09 |
jari |
304 |
destdir="lib/compile" |
1410 |
19 Oct 11 |
nicklas |
305 |
tofile="base-core-${depend.base-version}.jar" |
961 |
12 Feb 09 |
jari |
306 |
/> |
961 |
12 Feb 09 |
jari |
307 |
<download |
1410 |
19 Oct 11 |
nicklas |
308 |
location="${depend.jars}" |
1410 |
19 Oct 11 |
nicklas |
309 |
file="base-coreplugins-${depend.base-version}.jar" |
961 |
12 Feb 09 |
jari |
310 |
destdir="lib/compile" |
1410 |
19 Oct 11 |
nicklas |
311 |
tofile="base-coreplugins-${depend.base-version}.jar" |
961 |
12 Feb 09 |
jari |
312 |
/> |
961 |
12 Feb 09 |
jari |
313 |
</target> |
961 |
12 Feb 09 |
jari |
314 |
|
961 |
12 Feb 09 |
jari |
315 |
<target name="download-message"> |
945 |
28 Jan 09 |
martin |
316 |
<echo> |
945 |
28 Jan 09 |
martin |
317 |
------------------------------------------------------- |
961 |
12 Feb 09 |
jari |
318 |
NOTE! You may specify a different download locations by |
961 |
12 Feb 09 |
jari |
319 |
creating the file './build.properties' and set one or |
961 |
12 Feb 09 |
jari |
320 |
more of the below variables |
961 |
12 Feb 09 |
jari |
321 |
|
1410 |
19 Oct 11 |
nicklas |
322 |
'depend.jars': the URL to download BASE core jar |
961 |
12 Feb 09 |
jari |
323 |
files from. |
961 |
12 Feb 09 |
jari |
324 |
|
961 |
12 Feb 09 |
jari |
325 |
'depend.PluginUtilityLocation': the URL to download |
961 |
12 Feb 09 |
jari |
326 |
PluginUtility jar from. |
961 |
12 Feb 09 |
jari |
327 |
'PluginUtilityVersion': the version of PluginUtility to |
961 |
12 Feb 09 |
jari |
328 |
download. |
945 |
28 Jan 09 |
martin |
329 |
------------------------------------------------------- |
945 |
28 Jan 09 |
martin |
330 |
</echo> |
945 |
28 Jan 09 |
martin |
331 |
</target> |
961 |
12 Feb 09 |
jari |
332 |
|
961 |
12 Feb 09 |
jari |
333 |
<target |
961 |
12 Feb 09 |
jari |
334 |
name="download-pluginutilities" |
961 |
12 Feb 09 |
jari |
335 |
description="Download PluginUtilities.jar." |
961 |
12 Feb 09 |
jari |
336 |
> |
961 |
12 Feb 09 |
jari |
337 |
<download |
961 |
12 Feb 09 |
jari |
338 |
location="${depend.PluginUtilityLocation}" |
961 |
12 Feb 09 |
jari |
339 |
file="${PluginUtilitiesBase}.tgz?format=raw" |
961 |
12 Feb 09 |
jari |
340 |
destdir="lib" |
961 |
12 Feb 09 |
jari |
341 |
tofile="${PluginUtilitiesBase}.tgz" |
961 |
12 Feb 09 |
jari |
342 |
/> |
2182 |
13 Dec 13 |
nicklas |
<!-- Extract the PluginUtilities.jar file to the META-INF/lib directory --> |
2182 |
13 Dec 13 |
nicklas |
344 |
<untar src="lib/${PluginUtilitiesBase}.tgz" dest="META-INF/lib" compression="gzip" > |
2182 |
13 Dec 13 |
nicklas |
345 |
<patternset> |
2182 |
13 Dec 13 |
nicklas |
346 |
<include name="${PluginUtilitiesBase}/*.jar" /> |
2182 |
13 Dec 13 |
nicklas |
347 |
</patternset> |
2182 |
13 Dec 13 |
nicklas |
348 |
<flattenmapper/> |
2182 |
13 Dec 13 |
nicklas |
349 |
</untar> |
961 |
12 Feb 09 |
jari |
350 |
</target> |
961 |
12 Feb 09 |
jari |
351 |
|
1219 |
30 Mar 10 |
jari |
352 |
<macrodef name="download" description="Download requested files"> |
961 |
12 Feb 09 |
jari |
353 |
<attribute name="destdir" /> |
961 |
12 Feb 09 |
jari |
354 |
<attribute name="location" /> |
945 |
28 Jan 09 |
martin |
355 |
<attribute name="file" /> |
961 |
12 Feb 09 |
jari |
356 |
<attribute name="tofile" /> |
945 |
28 Jan 09 |
martin |
357 |
<sequential> |
945 |
28 Jan 09 |
martin |
358 |
<get |
961 |
12 Feb 09 |
jari |
359 |
dest="@{destdir}/@{tofile}" |
961 |
12 Feb 09 |
jari |
360 |
src="@{location}/@{file}" |
945 |
28 Jan 09 |
martin |
361 |
usetimestamp="true" |
945 |
28 Jan 09 |
martin |
362 |
verbose="true" |
961 |
12 Feb 09 |
jari |
363 |
ignoreerrors="false" |
945 |
28 Jan 09 |
martin |
364 |
/> |
945 |
28 Jan 09 |
martin |
365 |
</sequential> |
945 |
28 Jan 09 |
martin |
366 |
</macrodef> |
945 |
28 Jan 09 |
martin |
367 |
|
910 |
09 Dec 08 |
jari |
368 |
</project> |