546 |
18 Jan 08 |
nicklas |
1 |
<?xml version="1.0" encoding="UTF-8"?> |
703 |
23 May 08 |
jari |
2 |
|
703 |
23 May 08 |
jari |
<!-- $Id$ --> |
703 |
23 May 08 |
jari |
4 |
|
546 |
18 Jan 08 |
nicklas |
5 |
<project |
546 |
18 Jan 08 |
nicklas |
6 |
name="IlluminaPlugins" |
546 |
18 Jan 08 |
nicklas |
7 |
default="dist" |
546 |
18 Jan 08 |
nicklas |
8 |
basedir="."> |
546 |
18 Jan 08 |
nicklas |
9 |
|
807 |
21 Oct 08 |
nicklas |
<!--create this file if you need to override values from properties below --> |
807 |
21 Oct 08 |
nicklas |
11 |
<property file="build.properties" /> |
807 |
21 Oct 08 |
nicklas |
12 |
|
807 |
21 Oct 08 |
nicklas |
13 |
|
546 |
18 Jan 08 |
nicklas |
<!-- variables used --> |
546 |
18 Jan 08 |
nicklas |
15 |
<property name="name" value="illumina-plugins" /> |
1448 |
02 Nov 11 |
nicklas |
16 |
<property name="version" value="1.8-dev" /> |
546 |
18 Jan 08 |
nicklas |
17 |
<property name="src" location="src" description="Location of source files" /> |
546 |
18 Jan 08 |
nicklas |
18 |
<property name="build" location="build" description="Location of compiled files" /> |
546 |
18 Jan 08 |
nicklas |
19 |
<property name="dist" location="dist" description="Directory where distribution should be created" /> |
546 |
18 Jan 08 |
nicklas |
20 |
<property name="package" location="package" description="Directory where packaged distribution files are created"/> |
1542 |
22 Feb 12 |
nicklas |
21 |
<property name="jar.name" value="${name}.jar" description="Name of JAR file with the extensions." /> |
1542 |
22 Feb 12 |
nicklas |
22 |
<property name="tar.prefix" value="${name}-${version}" description="Prefix of .tar.gz file for download." /> |
1542 |
22 Feb 12 |
nicklas |
23 |
<property name="tar.name" value="${tar.prefix}.tar.gz" description="Full name of .tar.gz file for download." /> |
546 |
18 Jan 08 |
nicklas |
24 |
<property name="javac.arg" value="-Xlint:unchecked" /> |
2283 |
13 Mar 14 |
nicklas |
25 |
<property name="javac.source" value="1.7" /> |
2283 |
13 Mar 14 |
nicklas |
26 |
<property name="javac.target" value="1.7" /> |
1032 |
07 Apr 09 |
nicklas |
27 |
<property name="javac.encoding" value="UTF-8" /> |
1386 |
06 Sep 11 |
nicklas |
28 |
<property name="depend.base-version" |
2283 |
13 Mar 14 |
nicklas |
29 |
value="3.3.0" |
1386 |
06 Sep 11 |
nicklas |
30 |
description="The BASE version that this project depends on." |
1386 |
06 Sep 11 |
nicklas |
31 |
/> |
807 |
21 Oct 08 |
nicklas |
32 |
<property name="depend.jars" |
2756 |
08 Oct 14 |
nicklas |
33 |
value="http://base.thep.lu.se/chrome/site/files/base/jars/${depend.base-version}" |
1386 |
06 Sep 11 |
nicklas |
34 |
description="The location of the BASE core JARs that this project depends on." |
807 |
21 Oct 08 |
nicklas |
35 |
/> |
546 |
18 Jan 08 |
nicklas |
36 |
|
546 |
18 Jan 08 |
nicklas |
<!-- set up classpath for compiling --> |
546 |
18 Jan 08 |
nicklas |
38 |
<path id="classpath"> |
546 |
18 Jan 08 |
nicklas |
39 |
<fileset dir="lib"> |
546 |
18 Jan 08 |
nicklas |
40 |
<include name="**/*.jar" /> |
546 |
18 Jan 08 |
nicklas |
41 |
</fileset> |
546 |
18 Jan 08 |
nicklas |
42 |
</path> |
546 |
18 Jan 08 |
nicklas |
43 |
|
546 |
18 Jan 08 |
nicklas |
44 |
<target name="init"> |
546 |
18 Jan 08 |
nicklas |
45 |
<mkdir dir="${build}" /> |
546 |
18 Jan 08 |
nicklas |
46 |
<mkdir dir="${dist}" /> |
546 |
18 Jan 08 |
nicklas |
47 |
</target> |
546 |
18 Jan 08 |
nicklas |
48 |
|
546 |
18 Jan 08 |
nicklas |
49 |
<target name="clean"> |
546 |
18 Jan 08 |
nicklas |
50 |
<delete failonerror="false" includeemptydirs="true"> |
546 |
18 Jan 08 |
nicklas |
51 |
<fileset dir="${build}" defaultexcludes="no" /> |
546 |
18 Jan 08 |
nicklas |
52 |
<fileset dir="${dist}" defaultexcludes="no" /> |
546 |
18 Jan 08 |
nicklas |
53 |
<fileset dir="${package}" defaultexcludes="no" /> |
546 |
18 Jan 08 |
nicklas |
54 |
</delete> |
546 |
18 Jan 08 |
nicklas |
55 |
</target> |
546 |
18 Jan 08 |
nicklas |
56 |
|
546 |
18 Jan 08 |
nicklas |
57 |
<target |
546 |
18 Jan 08 |
nicklas |
58 |
name="dist" |
629 |
13 Mar 08 |
nicklas |
59 |
depends="clean,build" |
546 |
18 Jan 08 |
nicklas |
60 |
> |
546 |
18 Jan 08 |
nicklas |
61 |
<copy todir="${dist}"> |
629 |
13 Mar 08 |
nicklas |
62 |
<fileset dir="." includes="README*,LICENSE,INSTALL" /> |
549 |
22 Jan 08 |
nicklas |
63 |
<fileset dir="." includes="config/*" /> |
957 |
09 Feb 09 |
nicklas |
64 |
<fileset dir="." includes="contrib/*" /> |
546 |
18 Jan 08 |
nicklas |
65 |
</copy> |
546 |
18 Jan 08 |
nicklas |
66 |
</target> |
546 |
18 Jan 08 |
nicklas |
67 |
|
546 |
18 Jan 08 |
nicklas |
68 |
<target |
546 |
18 Jan 08 |
nicklas |
69 |
name="package" |
629 |
13 Mar 08 |
nicklas |
70 |
depends="dist" |
546 |
18 Jan 08 |
nicklas |
71 |
description="Create binary distribution package" |
546 |
18 Jan 08 |
nicklas |
72 |
> |
546 |
18 Jan 08 |
nicklas |
73 |
<mkdir dir="${package}" /> |
546 |
18 Jan 08 |
nicklas |
74 |
<tar |
1542 |
22 Feb 12 |
nicklas |
75 |
destfile="${package}/${tar.name}" |
546 |
18 Jan 08 |
nicklas |
76 |
longfile="gnu" |
546 |
18 Jan 08 |
nicklas |
77 |
compression="gzip" |
546 |
18 Jan 08 |
nicklas |
78 |
> |
546 |
18 Jan 08 |
nicklas |
79 |
<tarfileset |
546 |
18 Jan 08 |
nicklas |
80 |
dir="${dist}" |
546 |
18 Jan 08 |
nicklas |
81 |
mode="755" |
546 |
18 Jan 08 |
nicklas |
82 |
prefix="${tar.prefix}" |
546 |
18 Jan 08 |
nicklas |
83 |
preserveLeadingSlashes="true" |
546 |
18 Jan 08 |
nicklas |
84 |
> |
546 |
18 Jan 08 |
nicklas |
85 |
<include name="**/*.sh" /> |
546 |
18 Jan 08 |
nicklas |
86 |
</tarfileset> |
546 |
18 Jan 08 |
nicklas |
87 |
<tarfileset |
546 |
18 Jan 08 |
nicklas |
88 |
dir="${dist}" |
546 |
18 Jan 08 |
nicklas |
89 |
prefix="${tar.prefix}" |
546 |
18 Jan 08 |
nicklas |
90 |
preserveLeadingSlashes="true" |
546 |
18 Jan 08 |
nicklas |
91 |
> |
546 |
18 Jan 08 |
nicklas |
92 |
<exclude name="**/*.sh" /> |
546 |
18 Jan 08 |
nicklas |
93 |
</tarfileset> |
546 |
18 Jan 08 |
nicklas |
94 |
</tar> |
546 |
18 Jan 08 |
nicklas |
95 |
</target> |
546 |
18 Jan 08 |
nicklas |
96 |
|
546 |
18 Jan 08 |
nicklas |
97 |
<target |
546 |
18 Jan 08 |
nicklas |
98 |
name="build" |
585 |
13 Feb 08 |
nicklas |
99 |
depends="init,checkjar" |
546 |
18 Jan 08 |
nicklas |
100 |
description="Compiles the plugin and put in jar" |
546 |
18 Jan 08 |
nicklas |
101 |
> |
629 |
13 Mar 08 |
nicklas |
102 |
<property name="jar" value="${name}.jar" /> |
546 |
18 Jan 08 |
nicklas |
103 |
<mkdir dir="${build}" /> |
546 |
18 Jan 08 |
nicklas |
104 |
<javac |
546 |
18 Jan 08 |
nicklas |
105 |
encoding="${javac.encoding}" |
546 |
18 Jan 08 |
nicklas |
106 |
srcdir="${src}" |
546 |
18 Jan 08 |
nicklas |
107 |
destdir="${build}" |
546 |
18 Jan 08 |
nicklas |
108 |
debug="true" |
1386 |
06 Sep 11 |
nicklas |
109 |
deprecation="true" |
546 |
18 Jan 08 |
nicklas |
110 |
classpathref="classpath" |
546 |
18 Jan 08 |
nicklas |
111 |
source="${javac.source}" |
546 |
18 Jan 08 |
nicklas |
112 |
target="${javac.target}" |
1238 |
07 Sep 10 |
nicklas |
113 |
includeantruntime="false" |
546 |
18 Jan 08 |
nicklas |
114 |
> |
546 |
18 Jan 08 |
nicklas |
115 |
<compilerarg value="${javac.arg}" /> |
546 |
18 Jan 08 |
nicklas |
116 |
</javac> |
546 |
18 Jan 08 |
nicklas |
117 |
<copy todir="${build}"> |
1097 |
28 May 09 |
martin |
118 |
<fileset dir="." includes="META-INF/*"/> |
1385 |
02 Sep 11 |
martin |
119 |
</copy> |
546 |
18 Jan 08 |
nicklas |
120 |
<jar |
1542 |
22 Feb 12 |
nicklas |
121 |
jarfile="${dist}/${jar.name}" |
1097 |
28 May 09 |
martin |
122 |
basedir="${build}" |
546 |
18 Jan 08 |
nicklas |
123 |
> |
1097 |
28 May 09 |
martin |
124 |
</jar> |
546 |
18 Jan 08 |
nicklas |
125 |
</target> |
546 |
18 Jan 08 |
nicklas |
126 |
|
1542 |
22 Feb 12 |
nicklas |
127 |
<target |
1542 |
22 Feb 12 |
nicklas |
128 |
name="install" |
1542 |
22 Feb 12 |
nicklas |
129 |
depends="build" |
1542 |
22 Feb 12 |
nicklas |
130 |
> |
1542 |
22 Feb 12 |
nicklas |
131 |
<fail unless="base.plugins" message="base.plugins is not set to the path of BASE plug-ins directory." /> |
1542 |
22 Feb 12 |
nicklas |
132 |
<copy todir="${base.plugins}"> |
1542 |
22 Feb 12 |
nicklas |
133 |
<fileset file="${dist}/${jar.name}" /> |
1542 |
22 Feb 12 |
nicklas |
134 |
</copy> |
1542 |
22 Feb 12 |
nicklas |
135 |
<echo>Copied '${jar.name}' to '${base.plugins}'.</echo> |
1542 |
22 Feb 12 |
nicklas |
136 |
</target> |
1542 |
22 Feb 12 |
nicklas |
137 |
|
1238 |
07 Sep 10 |
nicklas |
138 |
<target name="update-version"> |
1238 |
07 Sep 10 |
nicklas |
139 |
<echo>Setting version to: ${version}</echo> |
1238 |
07 Sep 10 |
nicklas |
140 |
|
1238 |
07 Sep 10 |
nicklas |
141 |
<echo>Illumina.java</echo> |
1238 |
07 Sep 10 |
nicklas |
142 |
<replaceregexp |
1238 |
07 Sep 10 |
nicklas |
143 |
file="${src}/net/sf/basedb/illumina/Illumina.java" |
1238 |
07 Sep 10 |
nicklas |
144 |
match="public static final String VERSION = ".*";" |
1238 |
07 Sep 10 |
nicklas |
145 |
replace="public static final String VERSION = "${version}";" |
1238 |
07 Sep 10 |
nicklas |
146 |
encoding="UTF-8" |
1238 |
07 Sep 10 |
nicklas |
147 |
/> |
1238 |
07 Sep 10 |
nicklas |
148 |
|
1238 |
07 Sep 10 |
nicklas |
149 |
<echo>extensions.xml</echo> |
1238 |
07 Sep 10 |
nicklas |
150 |
<replaceregexp |
1238 |
07 Sep 10 |
nicklas |
151 |
file="META-INF/extensions.xml" |
1238 |
07 Sep 10 |
nicklas |
152 |
match="<version>.*</version>" |
1238 |
07 Sep 10 |
nicklas |
153 |
replace="<version>${version}</version>" |
1238 |
07 Sep 10 |
nicklas |
154 |
encoding="UTF-8" |
1238 |
07 Sep 10 |
nicklas |
155 |
/> |
1386 |
06 Sep 11 |
nicklas |
156 |
<replaceregexp |
1386 |
06 Sep 11 |
nicklas |
157 |
file="META-INF/extensions.xml" |
1386 |
06 Sep 11 |
nicklas |
158 |
match="<min-base-version>.*</min-base-version>" |
1386 |
06 Sep 11 |
nicklas |
159 |
replace="<min-base-version>${depend.base-version}</min-base-version>" |
1386 |
06 Sep 11 |
nicklas |
160 |
encoding="UTF-8" |
1386 |
06 Sep 11 |
nicklas |
161 |
/> |
1238 |
07 Sep 10 |
nicklas |
162 |
<echo>Don't forget to commit the changes to the subversion repository!</echo> |
1238 |
07 Sep 10 |
nicklas |
163 |
</target> |
1238 |
07 Sep 10 |
nicklas |
164 |
|
585 |
13 Feb 08 |
nicklas |
165 |
<target |
585 |
13 Feb 08 |
nicklas |
166 |
name="checkjar" |
1386 |
06 Sep 11 |
nicklas |
167 |
description="Checks that the base-core-${depend.base-version}.jar, base-webclient-${depend.base-version}.jar, base-coreplugins-${depend.base-version}.jar and base-wsclient-${depend.base-version}.jar exists." |
585 |
13 Feb 08 |
nicklas |
168 |
> |
585 |
13 Feb 08 |
nicklas |
169 |
<available classname="net.sf.basedb.core.Application" |
1386 |
06 Sep 11 |
nicklas |
170 |
classpathref="classpath" property="base-core" /> |
585 |
13 Feb 08 |
nicklas |
171 |
<available classname="net.sf.basedb.plugins.ReporterFlatFileImporter" |
1386 |
06 Sep 11 |
nicklas |
172 |
classpathref="classpath" property="base-coreplugins" /> |
684 |
30 Apr 08 |
jari |
173 |
<available classname="net.sf.basedb.ws.client.SessionClient" |
1386 |
06 Sep 11 |
nicklas |
174 |
classpathref="classpath" property="base-webservices-client" /> |
1097 |
28 May 09 |
martin |
175 |
<available classname="net.sf.basedb.clients.web.extensions.menu.FixedMenuItemFactory" |
1386 |
06 Sep 11 |
nicklas |
176 |
classpathref="classpath" property="base-webclient" /> |
1386 |
06 Sep 11 |
nicklas |
177 |
<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." /> |
1386 |
06 Sep 11 |
nicklas |
178 |
<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." /> |
1386 |
06 Sep 11 |
nicklas |
179 |
<fail unless="base-webservices-client" message="Can't find base-webservices-client-${depend.base-version}.jar in ./lib/compile. Try 'ant download-lib' to download the missing file." /> |
1386 |
06 Sep 11 |
nicklas |
180 |
<fail unless="base-webclient" message="Can't find base-webclient-${depend.base-version}.jar in ./lib/compile. Try 'ant download-lib' to download the missing file." /> |
1386 |
06 Sep 11 |
nicklas |
181 |
<echo> |
1386 |
06 Sep 11 |
nicklas |
182 |
Found base-core-${depend.base-version}.jar, |
1386 |
06 Sep 11 |
nicklas |
183 |
base-coreplugins-${depend.base-version}.jar, |
1386 |
06 Sep 11 |
nicklas |
184 |
base-webservices-client-${depend.base-version}.jar and |
1386 |
06 Sep 11 |
nicklas |
185 |
base-webclient-${depend.base-version}.jar.</echo> |
585 |
13 Feb 08 |
nicklas |
186 |
</target> |
807 |
21 Oct 08 |
nicklas |
187 |
|
1386 |
06 Sep 11 |
nicklas |
188 |
<target |
807 |
21 Oct 08 |
nicklas |
189 |
name="download-lib" |
1386 |
06 Sep 11 |
nicklas |
190 |
description="Download BASE JAR files that are needed for compilation" |
807 |
21 Oct 08 |
nicklas |
191 |
> |
807 |
21 Oct 08 |
nicklas |
192 |
<echo> |
807 |
21 Oct 08 |
nicklas |
193 |
------------------------------------------------------- |
817 |
21 Nov 08 |
jari |
194 |
NOTE! You may specify a different download location by |
807 |
21 Oct 08 |
nicklas |
195 |
creating the file './build.properties' and |
807 |
21 Oct 08 |
nicklas |
196 |
setting 'depend.jars' to the URL to download from. |
807 |
21 Oct 08 |
nicklas |
197 |
------------------------------------------------------- |
807 |
21 Oct 08 |
nicklas |
198 |
</echo> |
1386 |
06 Sep 11 |
nicklas |
199 |
<download-lib file="base-core-${depend.base-version}.jar" /> |
1386 |
06 Sep 11 |
nicklas |
200 |
<download-lib file="base-coreplugins-${depend.base-version}.jar" /> |
1386 |
06 Sep 11 |
nicklas |
201 |
<download-lib file="base-webservices-client-${depend.base-version}.jar" /> |
1386 |
06 Sep 11 |
nicklas |
202 |
<download-lib file="base-webclient-${depend.base-version}.jar" /> |
807 |
21 Oct 08 |
nicklas |
203 |
</target> |
807 |
21 Oct 08 |
nicklas |
204 |
|
807 |
21 Oct 08 |
nicklas |
205 |
<macrodef name="download-lib" description="Download BASE core JAR files"> |
807 |
21 Oct 08 |
nicklas |
206 |
<attribute name="file" /> |
807 |
21 Oct 08 |
nicklas |
207 |
<sequential> |
807 |
21 Oct 08 |
nicklas |
208 |
<get |
807 |
21 Oct 08 |
nicklas |
209 |
dest="lib/compile/@{file}" |
807 |
21 Oct 08 |
nicklas |
210 |
src="${depend.jars}/@{file}" |
807 |
21 Oct 08 |
nicklas |
211 |
usetimestamp="true" |
807 |
21 Oct 08 |
nicklas |
212 |
verbose="true" |
807 |
21 Oct 08 |
nicklas |
213 |
ignoreerrors="true" |
807 |
21 Oct 08 |
nicklas |
214 |
/> |
807 |
21 Oct 08 |
nicklas |
215 |
</sequential> |
807 |
21 Oct 08 |
nicklas |
216 |
</macrodef> |
807 |
21 Oct 08 |
nicklas |
217 |
|
546 |
18 Jan 08 |
nicklas |
218 |
</project> |