/[pdpsoft]/branches/nl.nikhef.jgridstart-flyingsaucer/nl.nikhef.jgridstart/build.xml
ViewVC logotype

Annotation of /branches/nl.nikhef.jgridstart-flyingsaucer/nl.nikhef.jgridstart/build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1868 - (hide annotations) (download)
Wed Jul 28 13:51:45 2010 UTC (11 years, 5 months ago) by wvengen
File MIME type: text/plain
File size: 21673 byte(s)
release 1.9
1 wvengen 178 <?xml version="1.0" encoding="utf-8"?>
2     <project name="jgridstart" default="compile">
3 wvengen 821 <description>jGridstart build file</description>
4 wvengen 178
5     <!--
6     - Property definitions
7     -->
8 wvengen 183 <!-- display name -->
9 wvengen 821 <property name="target.title" value="jGridstart"/>
10 wvengen 183 <!-- internal name -->
11 wvengen 178 <property name="target.name" value="${ant.project.name}"/>
12 wvengen 183 <!-- the program's version -->
13 wvengen 1868 <property name="target.version" value="1.9"/>
14 wvengen 183 <!-- main class to execute -->
15 wvengen 178 <property name="target.main" value="nl.nikhef.jgridstart.gui.Main"/>
16 wvengen 183 <!-- java virtual machine version to compile for -->
17 wvengen 178 <property name="target.jvmversion" value="1.5"/>
18    
19 wvengen 183 <!-- Java Web Start base url (for use in JNLP files) -->
20 wvengen 561 <property name="wwwbase" value="http://www.nikhef.nl/~wvengen/jgridstart-devel/"/>
21 wvengen 178
22 wvengen 183 <!-- location of source files -->
23     <property name="dir.src" location="src"/>
24     <!-- location of compiled classes -->
25     <property name="dir.build" location="bin"/>
26     <!-- location of output files for deployment -->
27     <property name="dir.dist" location="deployment"/>
28     <!-- location of thirdparty libraries -->
29     <property name="dir.thirdparty" location="thirdparty"/>
30 wvengen 487 <!-- location of javadoc output -->
31     <property name="dir.javadoc" location="doc"/>
32 wvengen 514 <!-- location of junit test output -->
33     <property name="dir.testreports" location="testreports"/>
34 wvengen 860 <!-- location of screenshot output -->
35     <property name="dir.screenshots" location="screenshots"/>
36     <property name="screenshots.main" value="nl.nikhef.jgridstart.gui.util.GUIScreenshotsTest"/>
37 wvengen 183
38 wvengen 464 <!-- extra tool definitions -->
39     <property name="browsertool.target.name" value="browsertool"/>
40     <property name="browsertool.target.main" value="nl.nikhef.jgridstart.install.BrowserTool"/>
41 wvengen 707
42     <property name="tests.target.name" value="tests"/>
43     <property name="tests.target.main" value="nl.nikhef.jgridstart.AllTests"/>
44 wvengen 989 <property name="tests.guitarget.name" value="testgui"/>
45     <property name="tests.guitarget.main" value="nl.nikhef.jgridstart.logging.UserTestRunner"/>
46 wvengen 464
47 wvengen 183 <!-- reference to property file defining the properties
48     - keystore.file java keystore file
49     - keystore.passwd password for accessing the java keystore
50     - keystore.alias alias pointing to certificate to sign with
51     - if the property file cannot be found or does not define a keystore.file
52     - that points to a file, a self-signed certificate is generated so you can
53     - get started easily. For production, of course, you'll need your own
54     - secure certificate that users can trust.
55     - An example keystore.properties could be as follows:
56     - keystore.file = ${dir.keystore}/keystore.ks
57     - keystore.alias = default
58     - keystore.passwd = mysecret
59     -->
60 wvengen 178 <property name="dir.keystore" location=".."/>
61     <property file="${dir.keystore}/keystore.properties"/>
62 wvengen 621
63 wvengen 250 <!--
64     - dependencies
65     -->
66    
67 wvengen 1339 <property name="dep.bouncycastle" location="${dir.thirdparty}/bouncycastle/bcprov-jdk15-144.jar"/>
68 wvengen 1355 <property name="target.bouncycastle" value="bcprov-144"/>
69 wvengen 1351 <basename property="dep.bouncycastle.basename" file="${dep.bouncycastle}"/>
70 wvengen 1339 <property name="dep.bouncycastle.smime" location="${dir.thirdparty}/bouncycastle/bcmail-jdk15-144.jar"/>
71     <property name="dep.bouncycastle.tsp" location="${dir.thirdparty}/bouncycastle/bctsp-jdk15-144.jar"/>
72 wvengen 1596 <property name="dep.javamail" location="${dir.thirdparty}/bouncycastle/mail-1.4.3.jar"/>
73 wvengen 595 <property name="dep.commons-cli" location="${dir.thirdparty}/commons/commons-cli-1.2.jar"/>
74     <property name="dep.commons-lang" location="${dir.thirdparty}/commons/commons-lang-2.4.jar"/>
75 wvengen 1055 <property name="dep.commons-exec" location="${dir.thirdparty}/commons/commons-exec-1.0.jar"/>
76 wvengen 982 <property name="dep.junit" location="${dir.thirdparty}/junit/junit-4.7.jar"/>
77 wvengen 364 <property name="dep.abbot" location="${dir.thirdparty}/junit/abbot.jar"/>
78 wvengen 250 <property name="dep.swingworker" location="${dir.thirdparty}/swingworker/swing-worker-1.2.jar"/>
79 wvengen 196 <property name="dep.xhtmlrenderer" location="${dir.thirdparty}/flyingsaucer/core-renderer-minimal.jar"/>
80 wvengen 253 <property name="dep.itext" location="${dir.thirdparty}/flyingsaucer/iText-2.0.8.jar"/>
81 wvengen 444 <property name="dep.winregistry" location="${dir.thirdparty}/winregistry/WinRegistry-3.4.jar"/>
82 wvengen 487 <property name="dep.apiviz" location="${dir.thirdparty}/javadoc/apiviz-1.3.0.GA.jar"/>
83 wvengen 1372
84     <!-- java activation framework; trickery to make it build on java6 and run on java5 too
85     (see target jar.small-add.activation) -->
86 wvengen 557 <property name="dep.activation" location="${dir.thirdparty}/bouncycastle/activation.jar"/>
87 wvengen 1372 <condition property="dep.activation.pgfilter" value="!javax/activation/**,!com/sun/activation/**" else="**">
88     <available classname="javax.activation.DataSource"/>
89     </condition>
90    
91     <!-- Compile-time dependencies -->
92 wvengen 178 <path id="path.dependencies">
93     <pathelement location="${dep.bouncycastle}"/>
94 wvengen 553 <pathelement location="${dep.bouncycastle.smime}"/>
95     <pathelement location="${dep.javamail}"/>
96 wvengen 1372 <pathelement location="${dep.activation}"/>
97 wvengen 595 <pathelement location="${dep.commons-lang}"/>
98     <pathelement location="${dep.commons-cli}"/>
99 wvengen 1055 <pathelement location="${dep.commons-exec}"/>
100 wvengen 1372 <pathelement location="${dep.swingworker}"/>
101 wvengen 196 <pathelement location="${dep.xhtmlrenderer}"/>
102 wvengen 553 <pathelement location="${dep.itext}"/>
103 wvengen 444 <pathelement location="${dep.winregistry}"/>
104 wvengen 1372 <pathelement location="${dep.junit}"/>
105     <pathelement location="${dep.abbot}"/>
106 wvengen 178 </path>
107 wvengen 595
108 wvengen 597 <patternset id="distfiles">
109 wvengen 595 <!-- exclude non-production files -->
110     <exclude name="**/test*"/>
111     <exclude name="**/*test/**"/>
112     <exclude name="**/*tests/**"/>
113     <exclude name="**/package.html"/>
114     <exclude name="**/*Test.class"/>
115     <exclude name="**/*Test$*.class"/>
116     <exclude name="**/AllTests.class"/>
117     <exclude name="**/AllTests$*.class"/>
118     <exclude name="**/CVS"/>
119     <exclude name="**/.svn"/>
120 wvengen 597 </patternset>
121 wvengen 707
122 wvengen 1372 <!-- files from dependencies to merge into main distribution jar -->
123 wvengen 707 <resources id="depfiles">
124     <zipfileset src="${dep.commons-lang}" includes="**/*.class"/>
125     <zipfileset src="${dep.commons-cli}" includes="**/*.class"/>
126 wvengen 1055 <zipfileset src="${dep.commons-exec}" includes="**/*.class"/>
127 wvengen 707 <zipfileset src="${dep.swingworker}" includes="**/*.class"/>
128     <zipfileset src="${dep.xhtmlrenderer}">
129     <include name="**/*.class"/>
130 wvengen 929 <exclude name="**/tool/**"/>
131 wvengen 707 <exclude name="**/swt/**"/>
132     <exclude name="**/SWT**"/>
133     </zipfileset>
134     <zipfileset src="${dep.itext}">
135     <include name="**/*.class"/>
136     <include name="**/fonts/*"/>
137     <exclude name="**/tools/**"/>
138     </zipfileset>
139     <zipfileset src="${dep.winregistry}" includes="**/*.class"/>
140 wvengen 929 <zipfileset src="${dep.bouncycastle.smime}" includes="**/*.class"/>
141     <zipfileset src="${dep.bouncycastle.tsp}" includes="**/*.class"/>
142 wvengen 1372 <zipfileset src="${dep.javamail}" includes="**/*.class"/>
143 wvengen 772 <zipfileset src="${dep.activation}" includes="**/*.class"/>
144 wvengen 707 </resources>
145    
146 wvengen 178
147     <!--
148     - Initialisation and other setup
149     -->
150 wvengen 183
151 wvengen 1372 <!-- keystore; create one with test certificate if not supplied -->
152 wvengen 183 <available file="${keystore.file}" type="file" property="keystore.available"/>
153     <target name="keystore" unless="keystore.available">
154     <tempfile property="keystore.file" prefix="keystore" suffix=".ks"/>
155     <property name="keystore.tempfile" value="${keystore.file}"/>
156     <property name="keystore.alias" value="default"/>
157     <property name="keystore.passwd" value="xyz12345"/>
158     <genkey alias="${keystore.alias}" storepass="${keystore.passwd}" keystore="${keystore.file}"
159     validity="1" dname="CN=Test, OU=Test, O=Test, C=Test"/>
160 wvengen 993 <property name="keystore.available" value="true"/>
161 wvengen 183 </target>
162    
163     <!-- proguard -->
164 wvengen 178 <taskdef resource="proguard/ant/task.properties"
165     classpath="${dir.thirdparty}/proguard/proguard.jar"/>
166 wvengen 621 <!-- subversion -->
167 wvengen 728 <typedef resource="org/tigris/subversion/svnant/svnantlib.xml">
168 wvengen 621 <classpath><fileset dir="${dir.thirdparty}/svnant">
169 wvengen 728 <include name="*.jar"/>
170 wvengen 621 </fileset></classpath>
171     </typedef>
172 wvengen 183 <!-- timestamp -->
173 wvengen 178 <target name="init">
174     <tstamp/>
175     </target>
176    
177     <!--
178     - Compilation target
179     -->
180     <target name="compile" depends="init">
181     <mkdir dir="${dir.build}"/>
182     <!-- compile java sources -->
183 wvengen 1003 <javac srcdir="${dir.src}" destdir="${dir.build}" target="${target.jvmversion}" debug="on">
184 wvengen 178 <classpath refid="path.dependencies" />
185     </javac>
186 wvengen 621 <!-- copy resources; skip VCS dirs (and other hidden .*) -->
187 wvengen 178 <copy todir="${dir.build}">
188     <fileset dir="${dir.src}">
189     <exclude name="**/*.java"/>
190     <exclude name="**/CVS"/>
191     <exclude name="**/.*"/>
192 wvengen 621 <exclude name="resources/conf/global.properties"/>
193 wvengen 178 </fileset>
194     </copy>
195 wvengen 621 <!-- set global variables from build -->
196 wvengen 1355 <svn failonerror="false"><wcVersion path="." prefix="svn."/></svn>
197     <property name="target.revision" value="${svn.revision.range}"/>
198 wvengen 621 <copy file="${dir.src}/resources/conf/global.properties"
199     tofile="${dir.build}/resources/conf/global.properties">
200     <filterchain>
201     <replacetokens>
202     <token key="jgridstart.version" value="${target.version}"/>
203     <token key="jgridstart.revision" value="${target.revision}"/>
204     </replacetokens>
205     </filterchain>
206     </copy>
207 wvengen 178 </target>
208 wvengen 557
209 wvengen 178 <!--
210 wvengen 557 - Full JAR creation target
211 wvengen 178 -->
212 wvengen 1372 <target name="jar.large" depends="compile,jar.bcprov">
213 wvengen 178 <jar jarfile="${dir.dist}/${target.name}.large.jar">
214     <manifest>
215     <attribute name="Built-By" value="${user.name}"/>
216     <attribute name="Main-Class" value="${target.main}"/>
217 wvengen 1355 <attribute name="Class-Path" value="${target.bouncycastle}.jar"/>
218 wvengen 178 </manifest>
219 wvengen 597 <fileset dir="${dir.build}">
220     <patternset refid="distfiles"/>
221     </fileset>
222 wvengen 707 <resources refid="depfiles"/>
223 wvengen 178 </jar>
224 wvengen 557 </target>
225 wvengen 562
226 wvengen 557 <!--
227 wvengen 562 - ProGuard-minimised JAR creation
228 wvengen 557 -->
229 wvengen 562 <target name="jar.small" depends="jar.large">
230 wvengen 178 <!-- minimize jar file; skipnonpubliclibraryclasses needed for java1.6 -->
231 wvengen 929 <proguard obfuscate="false" skipnonpubliclibraryclasses="false" verbose="true">
232 wvengen 1372 <!-- filter out activation classes when building on java6 to avoid clashing with
233     system classes. These are added at the end when needed to make sure it runs
234     on java5 as well -->
235     <injar file="${dir.dist}/${target.name}.large.jar" filter="${dep.activation.pgfilter}"/>
236 wvengen 612 <outjar file="${dir.dist}/${target.name}.small.jar"/>
237 wvengen 178 <libraryjar file="${java.home}/lib/rt.jar"/>
238 wvengen 399 <libraryjar file="${java.home}/lib/jce.jar"/>
239 wvengen 196 <libraryjar file="${java.home}/lib/jsse.jar"/>
240 wvengen 178 <libraryjar file="${dep.bouncycastle}"/>
241 wvengen 250 <libraryjar file="${dep.junit}"/>
242 wvengen 364 <libraryjar file="${dep.abbot}"/>
243 wvengen 1372 <!-- program entry point, keep this! -->
244 wvengen 250 <keepclasseswithmembers access="public">
245 wvengen 1372 <method access="public static" type="void" name="main" parameters="java.lang.String[]"/>
246 wvengen 178 </keepclasseswithmembers>
247 wvengen 612 <!-- Somehow xhtmlrenderer classes are stripped too much, this is a workaround. Error e.g.
248     "Invalid index 2 in LocalVariableTable in class file org/xhtmlrenderer/render/Box" -->
249 wvengen 929 <keepclasseswithmembers name="org.xhtmlrenderer.render.Box"> <method name="*"/></keepclasseswithmembers>
250     <keepclasseswithmembers name="org.xhtmlrenderer.swing.NaiveUserAgent"> <method name="*"/></keepclasseswithmembers>
251     <keepclasseswithmembers name="org.xhtmlrenderer.css.**"> <method name="*"/></keepclasseswithmembers>
252     <keepclasseswithmembers name="org.xhtmlrenderer.newtable.**"> <method name="*"/></keepclasseswithmembers>
253     <keepclasseswithmembers name="org.xhtmlrenderer.resource.XMLResource**"> <method name="*"/></keepclasseswithmembers>
254     <!-- xhtmlrenderer descriptor classes that proguard warns about otherwise -->
255     <keepclasseswithmembers name="org.xhtmlrenderer.render.**"> <method name="*"/></keepclasseswithmembers>
256     <keepclasseswithmembers name="org.xhtmlrenderer.layout.**"> <method name="*"/></keepclasseswithmembers>
257     <keepclasseswithmembers name="org.xhtmlrenderer.extend.OutputDevice"> <method name="*"/></keepclasseswithmembers>
258     <keepclasseswithmembers name="org.xhtmlrenderer.extend.FontContext"> <method name="*"/></keepclasseswithmembers>
259 wvengen 298 <!-- logging is dynamically configured -->
260 wvengen 929 <keepclasseswithmembers access="public" name="org.xhtmlrenderer.util.XRSimpleLogFormatter"> <method name="*"/></keepclasseswithmembers>
261     <keepclasseswithmembers access="public" name="org.xhtmlrenderer.util.Configuration"> <method name="*"/></keepclasseswithmembers>
262 wvengen 735 <!-- CA class used is set in configfile -->
263 wvengen 929 <keepclasseswithmembers name="nl.nikhef.jgridstart.ca.**"> <method name="*"/></keepclasseswithmembers>
264     <!-- S/MIME does some dynamic loading as well, and the "Invalid index 2 in LocalVariableTable"
265     error can appear again; disable some optimisations to solve the latter. -->
266     <optimizations filter="!code/simplification/variable,!method/marking/static"/>
267     <keepclasseswithmembers name="com.sun.mail.handlers.**"> <method name="*"/></keepclasseswithmembers>
268     <keepclasseswithmembers name="org.bouncycastle.mail.smime.handlers.**"> <method name="*"/></keepclasseswithmembers>
269     <!-- S/MIME descriptor classes that proguard warns about otherwise -->
270     <keepclasseswithmembers name="javax.activation.DataSource"><method name="*"/></keepclasseswithmembers>
271     <keepclasseswithmembers name="javax.mail.internet.MimePart"> <method name="*"/></keepclasseswithmembers>
272     <keepclasseswithmembers name="javax.mail.internet.MimeBodyPart"> <method name="*"/></keepclasseswithmembers>
273     <keepclasseswithmembers name="javax.activation.ActivationDataFlavor"> <method name="*"/></keepclasseswithmembers>
274 wvengen 562 </proguard>
275 wvengen 1372 <!-- add activation framework when building on java6 -->
276     <antcall target="jar.small-add.activation"/>
277 wvengen 562 </target>
278 wvengen 1372
279 wvengen 562 <!--
280 wvengen 1372 - Target to add java activation framework to small jar
281     - Since the java activation framework is present on java6, we can't include it in
282     - the proguard step. But to make the resulting jar work on java6 as well, the
283     - framework still needs to be present in the final jar. This target adds these
284     - classes only if they're not already present in the final small jar.
285     -->
286     <target name="jar.small-add.activation">
287     <condition property="dep.activation.needpostadd">
288     <not>
289     <available classname="javax.activation.DataSource" classpath="${dir.dist}/${target.name}.small.jar" ignoresystemclasses="true"/>
290     </not>
291     </condition>
292     <antcall target="jar.small-add.activation-do"/>
293     </target>
294     <target name="jar.small-add.activation-do" if="dep.activation.needpostadd">
295     <jar destfile="${dir.dist}/${target.name}.small.jar" update="true" duplicate="fail">
296     <zipfileset src="${dep.activation}" includes="**/*.class"/>
297     </jar>
298     </target>
299    
300     <!--
301     - BouncyCastle copy target (dependency as external jar)
302     -->
303     <target name="jar.bcprov">
304     <!-- copy bouncycastle jar to deployment area; also sign it -->
305     <copy file="${dep.bouncycastle}" tofile="${dir.dist}/${target.bouncycastle}.jar"/>
306     </target>
307    
308     <!--
309 wvengen 562 - Distribution creation target
310     -->
311 wvengen 1372 <target name="dist" depends="keystore,jar.small,jar.testgui,jar.bcprov">
312 wvengen 562 <!-- copy large/small jar to distribution -->
313 wvengen 612 <copy file="${dir.dist}/${target.name}.small.jar" tofile="${dir.dist}/${target.name}.jar"/>
314 wvengen 986 <!-- sign, required for java web start -->
315 wvengen 178 <signjar keystore="${keystore.file}" jar="${dir.dist}/${target.name}.jar"
316 wvengen 183 alias="${keystore.alias}" storepass="${keystore.passwd}"/>
317 wvengen 178 <!-- substitute variables in java web start files -->
318     <copy file="${dir.dist}/${target.name}.jnlp.in" tofile="${dir.dist}/${target.name}.jnlp" />
319 wvengen 1355 <copy file="${dir.dist}/bcprov.jnlp.in" tofile="${dir.dist}/${target.bouncycastle}.jnlp" />
320 wvengen 989 <copy file="${dir.dist}/${tests.guitarget.name}.jnlp.in" tofile="${dir.dist}/${tests.guitarget.name}.jnlp" />
321 wvengen 178 <replace dir="${dir.dist}">
322     <include name="${target.name}.jnlp"/>
323 wvengen 1355 <include name="${target.bouncycastle}.jnlp"/>
324 wvengen 989 <include name="${tests.guitarget.name}.jnlp"/>
325 wvengen 178 <replacefilter token="@wwwbase@" value="${wwwbase}"/>
326     <replacefilter token="@main@" value="${target.main}"/>
327 wvengen 989 <replacefilter token="@tests.main@" value="${tests.guitarget.main}"/>
328     <replacefilter token="@tests.name@" value="${tests.guitarget.name}"/>
329 wvengen 1355 <replacefilter token="@bouncycastle@" value="${target.bouncycastle}"/>
330 wvengen 178 </replace>
331 wvengen 1355 <signjar keystore="${keystore.file}" jar="${dir.dist}/${target.bouncycastle}.jar"
332 wvengen 1349 alias="${keystore.alias}" storepass="${keystore.passwd}"/>
333     <delete file="${keystore.tempfile}" quiet="true"/>
334 wvengen 178 </target>
335    
336     <!--
337     - Cleaning target
338     -->
339     <target name="clean">
340     <delete dir="${dir.build}"/>
341     <delete file="${dir.dist}/${target.name}.jar"/>
342 wvengen 1349 <delete file="${dir.dist}/${target.name}.large.jar"/>
343     <delete file="${dir.dist}/${target.name}.small.jar"/>
344 wvengen 178 <delete file="${dir.dist}/${target.name}.jnlp"/>
345 wvengen 1355 <delete file="${dir.dist}/${target.bouncycastle}.jnlp"/>
346     <delete file="${dir.dist}/${target.bouncycastle}.jar"/>
347 wvengen 707 <delete file="${dir.dist}/${browsertool.target.name}.jar"/>
348     <delete file="${dir.dist}/${tests.target.name}.jar"/>
349 wvengen 994 <delete file="${dir.dist}/${tests.guitarget.name}.jnlp"/>
350     <delete file="${dir.dist}/${tests.guitarget.name}.jar"/>
351 wvengen 178 </target>
352    
353 wvengen 464 <!--
354     - extra targets
355     -->
356 wvengen 707 <!-- browsertool -->
357 wvengen 464 <target name="browsertool" depends="compile">
358     <jar jarfile="${dir.dist}/${browsertool.target.name}.jar">
359     <manifest>
360     <attribute name="Built-By" value="${user.name}"/>
361     <attribute name="Main-Class" value="${browsertool.target.main}"/>
362     </manifest>
363 wvengen 597 <fileset dir="${dir.build}">
364     <patternset refid="distfiles"/>
365 wvengen 464 <include name="nl/nikhef/jgridstart/install/**"/>
366     <include name="nl/nikhef/jgridstart/util/**"/>
367     </fileset>
368 wvengen 929 <zipfileset src="${dep.commons-lang}" includes="**/*.class"/>
369 wvengen 599 <zipfileset src="${dep.commons-cli}" includes="**/*.class"/>
370 wvengen 1055 <zipfileset src="${dep.commons-exec}" includes="**/*.class"/>
371 wvengen 464 <zipfileset src="${dep.winregistry}" includes="**/*.class"/>
372     </jar>
373     <!-- sign it, required for java web start -->
374     <signjar keystore="${keystore.file}" jar="${dir.dist}/${browsertool.name}.jar"
375     alias="${keystore.alias}" storepass="${keystore.passwd}"/>
376     </target>
377 wvengen 707
378     <!-- archive with unit tests -->
379     <target name="jar.tests" depends="compile">
380     <jar jarfile="${dir.dist}/${tests.target.name}.jar">
381     <manifest>
382     <attribute name="Built-By" value="${user.name}"/>
383     <attribute name="Main-Class" value="${tests.target.main}"/>
384 wvengen 1355 <attribute name="Class-Path" value="${target.bouncycastle}.jar"/>
385 wvengen 707 </manifest>
386     <fileset dir="${dir.build}"/>
387     <resources refid="depfiles"/>
388 wvengen 987 <zipfileset src="${dep.junit}" excludes="LICENSE.txt"/>
389     <zipfileset src="${dep.abbot}"/>
390 wvengen 707 </jar>
391     </target>
392 wvengen 1372
393 wvengen 989 <!-- user test runner -->
394 wvengen 992 <target name="jar.testgui" depends="jar.tests,keystore">
395 wvengen 989 <!-- create file with jar names -->
396     <echo file="${dir.build}/nl/nikhef/jgridstart/logging/testjars.txt">
397     ${tests.target.name}.jar
398 wvengen 1351 ${dep.bouncycastle.basename}
399 wvengen 989 </echo>
400     <!-- and build jars -->
401     <jar jarfile="${dir.dist}/${tests.guitarget.name}.jar">
402     <manifest>
403     <attribute name="Built-By" value="${user.name}"/>
404     <attribute name="Main-Class" value="${tests.guitarget.main}"/>
405     </manifest>
406     <!-- the files for the runner -->
407     <fileset dir="${dir.build}">
408     <include name="nl/nikhef/jgridstart/logging/UserTestRunner*.class"/>
409     <include name="nl/nikhef/jgridstart/util/ConnectionUtils*.class"/>
410     <include name="nl/nikhef/jgridstart/util/FileUtils*.class"/>
411     <include name="nl/nikhef/jgridstart/logging/testjars.txt"/>
412     </fileset>
413     <zipfileset src="${dep.commons-lang}" includes="org/**"/>
414 wvengen 1055 <zipfileset src="${dep.commons-exec}" includes="**/*.class"/>
415 wvengen 989 <!-- and jars with all stuff that will be unpacked later -->
416     <fileset file="${dir.dist}/${tests.target.name}.jar"/>
417 wvengen 1351 <fileset file="${dep.bouncycastle}" />
418 wvengen 989 </jar>
419     <signjar keystore="${keystore.file}" jar="${dir.dist}/${tests.guitarget.name}.jar"
420     alias="${keystore.alias}" storepass="${keystore.passwd}"/>
421     </target>
422 wvengen 464
423 wvengen 487 <!-- javadoc with APIviz, needs graphviz >= 2.20 -->
424     <target name="javadoc" depends="compile">
425     <javadoc
426     destdir="${dir.javadoc}"
427     classpathref="path.dependencies"
428     access="protected" source="${target.jvmversion}"
429     doclet="org.jboss.apiviz.APIviz" docletpath="${dep.apiviz}" additionalparam="-sourceclasspath ${dir.build}">
430     <sourcefiles>
431     <fileset dir="${dir.src}">
432     <include name="**/*.java"/>
433 wvengen 492 <exclude name="**/*Test.*"/>
434     <exclude name="**/AllTests.*"/>
435 wvengen 487 </fileset>
436     </sourcefiles>
437     <link href="http://java.sun.com/j2se/1.5.0/docs/api/"/>
438     <link href="http://bouncycastle.org/docs/docs1.4/"/>
439     <link href="http://bouncycastle.org/docs/mdocs1.4/"/>
440 wvengen 595 <link href="http://commons.apache.org/lang/api-release/"/>
441 wvengen 487 <link href="http://commons.apache.org/cli/api-1.2/"/>
442 wvengen 1056 <link href="http://commons.apache.org/exec/apidocs/"/>
443 wvengen 982 <link href="http://junit.org/apidocs/"/>
444 wvengen 487 <link href="http://abbot.sourceforge.net/doc/api/"/>
445     <link href="https://swingworker.dev.java.net/nonav/javadoc/"/>
446     <link href="http://pigeonholdings.com/projects/flyingsaucer/R8/javadoc/user/"/>
447 wvengen 1355 <link href="http://api.itextpdf.com/"/>
448 wvengen 553 <link href="http://java.sun.com/products/javamail/javadocs/"/>
449 wvengen 514 <!-- no online javadoc found for WinRegistry -->
450 wvengen 487 </javadoc>
451     </target>
452 wvengen 514
453     <!-- test report -->
454     <target name="testreport" depends="compile">
455     <junit fork="yes" haltonfailure="no">
456     <test fork="yes" todir="${dir.testreports}" name="nl.nikhef.jgridstart.AllTests"/>
457     <formatter type="xml"/>
458     <classpath refid="path.dependencies"/>
459     <classpath path="${dir.build}"/>
460     </junit>
461     </target>
462 wvengen 860
463     <!-- generate screenshots for documentation -->
464     <target name="screenshots" depends="compile">
465     <java classname="${screenshots.main}" fork="yes">
466     <arg value="${dir.screenshots}"/>
467     <classpath refid="path.dependencies"/>
468     <classpath path="${dir.build}"/>
469     </java>
470     </target>
471    
472 wvengen 253 </project>

Properties

Name Value
svn:mime-type text/plain

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28