source: build.xml @ 34e3909

Last change on this file since 34e3909 was 34e3909, checked in by zzz <zzz@…>, 5 years ago

Build: Add some config checks before signed-updater tasks

  • Property mode set to 100644
File size: 114.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<project basedir="." default="all" name="i2p">
3
4    <!-- Include property files so that values can be easily overridden.
5         Users should create an override.properties file to make changes.
6     -->
7    <property file="override.properties"/>
8    <property file="build.properties"/>
9
10    <!-- You probably don't want to change anything from here down -->
11    <target name="help" depends="all" />
12    <target name="all" >
13        <echo message="Useful targets: " />
14        <echo message="  pkg:       distclean then package everything up (updater, installer)" />
15        <echo message="  dist:      pkg and javadoc" />
16        <echo message="  dist200:   pkg, updater200, and javadoc" />
17        <echo message="  installer: build the GUI installer" />
18        <echo message="  installer-freebsd: build the GUI installer (FreeBSD only)" />
19        <echo message="  installer-linux: build the GUI installer (Linux only)" />
20        <echo message="  installer-osx: build the GUI installer (OSX only)" />
21        <echo message="  installer-windows: build the GUI installer (Windows only)" />
22        <echo message="  installer-nowindows: build the GUI installer (all but Windows)" />
23        <echo message="  tarball:   tar the full install into i2p.tar.bz2 (extracts to build a new clean install)" />
24        <echo message="  updater:   Package the built files in i2pupdate.zip (extracts safely over existing installs)" />
25        <echo message="  updater200: Updater compressed with pack200 (creates i2pupdate200.zip, 60% smaller)" />
26        <echo message="  signed-updater200: Signed updater compressed with pack200 (creates i2pupdate.su3, 60% smaller)" />
27        <echo message="  updaterWithJavadoc: updater including the javadocs, for display in the console" />
28        <echo message="  updater200WithJavadoc: updater including the javadocs, for display in the console (creates i2pupdate200.zip)" />
29        <echo message="  signed-updater200WithJavadoc: Signed updater including the javadocs, for display in the console (creates i2pupdate.su3)" />
30        <echo message="  updaterWithJavadocAndJetty: updater including the javadocs, for display in the console, and Jetty " />
31        <echo message="  updater200WithJavadocAndJetty: updater including the javadocs, for display in the console, and Jetty (creates i2pupdate200.zip)" />
32        <echo message="  signed-updater200WithJavadocAndJetty: Signed updater including the javadocs, for display in the console, and Jetty (creates i2pupdate.su3)" />
33        <echo message="  updaterWithJetty: Updater including Jetty" />
34        <echo message="  updater200withJetty: Updater including Jetty" />
35        <echo message="  updater200withJetty: Updater including Jetty" />
36        <echo message="  signed-updater200withJetty: Signed updater including Jetty" />
37        <echo message="  updaterWithJettyFixes: updater including local jetty patches" />
38        <echo message="  updaterWithGeoIP: updater including GeoIP Files" />
39        <echo message="  updaterWithJettyFixesAndGeoIP" />
40        <echo message="  updaterWithJettyFixesAndJbigi" />
41        <echo message="  updaterSmall:   updater with the essentials only - no SAM, i2psnark, SusiMail, SusiDNS, or history.txt" />
42        <echo message="  updaterRouter:  updater with the i2p.jar and router.jar only" />
43        <echo message="  distclean: clean up all derived files" />
44        <!-- <echo message="  syndie:    generate a standalone syndie install" /> -->
45        <echo message="  desktopgui: generate a standalone desktopgui install" />
46        <echo message="  i2psnark:  generate a standalone i2psnark install" />
47        <echo message="  justBOB:  generate a standalone BOB-one.jar" />
48        <echo message="  javadoc:   generate javadoc for the entire project into ./build/javadoc and ./javadoc.zip" />
49        <echo message="  javadoc-test: Javadocs for unit test classes (build/javadoc-test)" />
50        <echo message="  slackpkg:  generate Slackware package in ./Slackware/i2p" />
51        <echo message="  debianhowto: instructions on building Debian packages" />
52        <echo message="  debian: generate Debian packages in ../" />
53        <echo message="          run &quot;ant debianhowto&quot; for instructions" />
54        <echo message="  debian-clean: rollback debian specific patches and run the &quot;distclean&quot; target (done automatically at the end of the &quot;debian&quot; target)" />
55        <!-- <echo message="  debianrepo: build a Debian repository (reprepro required)" /> -->
56        <echo message="  poupdate: update the .po files for translators" />
57        <echo message="  pkg-portable-win32:  build a minimum portable version for win32" />
58   </target>
59    <target name="debianhowto">
60            <echo message="To build debian packages, you must make sure that you have" />
61            <echo message="the necessary build-dependencies installed." />
62            <echo message="The packages required to build can be found in the file "/>
63            <echo message="&quot;debian/control&quot; in the &quot;Build-Depends&quot; field."/>
64            <echo message="In addition to those packages, be sure to install &quot;fakeroot&quot;,"/>
65            <echo message="&quot;quilt&quot; and &quot;build-essential&quot;!" />
66            <echo message="" />
67            <echo message="The following command will install the build dependencies for you:" />
68            <echo message=" " />
69            <echo message="sudo apt-get install debhelper ant debconf default-jdk gettext libgmp-dev po-debconf fakeroot \" />
70            <echo message="  build-essential quilt libcommons-logging-java dh-apparmor dh-systemd libservice-wrapper-java \"  />
71            <echo message="  devscripts libjetty8-java glassfish-javaee"  />
72            <echo message=" " />
73            <echo message="The following command will install the additional runtime dependencies:" />
74            <echo message="sudo apt-get install libecj-java geoip-database" />
75            <echo message=" " />
76            <echo message="Once the dependencies are installed, run &quot;ant debian&quot;"/>
77            <echo message="to patch the source and build the packages." />
78    </target>
79
80    <macrodef name="gpgsign">
81        <attribute name="file" />
82        <sequential>
83            <delete file="@{file}.sig" quiet="true" />
84            <exec executable="gpg" failonerror="true">
85                <arg value="--default-key" />
86                <arg value="${release.gpg.keyid}" />
87                <arg value="-b" />
88                <arg value="@{file}" />
89            </exec>
90            <chmod type="file" perm="444">
91                <fileset dir="${basedir}">
92                    <include name="@{file} @{file}.sig" />
93                </fileset>
94            </chmod>
95        </sequential>
96    </macrodef>
97
98    <macrodef name="mktorrent">
99        <attribute name="file" />
100        <sequential>
101            <delete file="@{file}.torrent" quiet="true"/>
102            <java classname="org.klomp.snark.Storage" fork="true" failonerror="true">
103                <classpath>
104                    <pathelement location="build/i2p.jar" />
105                    <pathelement location="build/i2psnark.jar" />
106                </classpath>
107                <arg value="-a" />
108                <arg value="http://tracker2.postman.i2p/announce.php" />
109                <arg value="-c" />
110                <arg value="${build.built-by}" />
111                <arg value="@{file}" />
112            </java>
113        </sequential>
114    </macrodef>
115
116    <macrodef name="sha256sum">
117        <attribute name="file" />
118        <sequential>
119            <!--
120                 Note: "local" only works with ant 1.8+. This limitation shouldn't be
121                 a big deal since this macro is only called by the release
122                 target.
123             -->
124            <local name="file-sum"/>
125            <checksum format="MD5SUM" file="@{file}" property="file-sum" algorithm="sha-256"/>
126            <echo message="${file-sum}  @{file}" />
127        </sequential>
128    </macrodef>
129
130    <macrodef name="sudsign">
131        <attribute name="infile" />
132        <attribute name="outfile" />
133        <sequential>
134            <input message="Enter private signing key file:" addproperty="release.privkey" />
135            <fail message="You must enter an existing file path." >
136                <condition>
137                    <or>
138                        <equals arg1="${release.privkey}" arg2=""/>
139                        <not>
140                            <length file="${release.privkey}" when="greater" length="0" />
141                        </not>
142                    </or>
143                </condition>
144            </fail>
145            <echo message="Key file is ${release.privkey}" />
146            <java classname="net.i2p.crypto.TrustedUpdate" fork="true" failonerror="true">
147                <classpath>
148                    <pathelement location="build/i2p.jar" />
149                </classpath>
150                <arg value="sign" />
151                <arg value="@{infile}" />
152                <arg value="@{outfile}" />
153                <arg value="${release.privkey}" />
154                <arg value="${release.number}" />
155            </java>
156            <echo message="Verify version and VALID signature:" />
157            <java classname="net.i2p.crypto.TrustedUpdate" fork="true" failonerror="true">
158                <classpath>
159                    <pathelement location="build/i2p.jar" />
160                </classpath>
161                <arg value="verifysig" />
162                <arg value="@{outfile}" />
163            </java>
164            <java classname="net.i2p.crypto.TrustedUpdate" fork="true" failonerror="true">
165                <classpath>
166                    <pathelement location="build/i2p.jar" />
167                </classpath>
168                <arg value="verifyversion" />
169                <arg value="@{outfile}" />
170            </java>
171            <java classname="net.i2p.crypto.TrustedUpdate" fork="true" failonerror="true">
172                <classpath>
173                    <pathelement location="build/i2p.jar" />
174                </classpath>
175                <arg value="showversion" />
176                <arg value="@{outfile}" />
177            </java>
178        </sequential>
179    </macrodef>
180
181    <macrodef name="su3sign">
182        <attribute name="infile" />
183        <attribute name="outfile" />
184        <attribute name="sigtype" />
185        <attribute name="su3.ver" />
186        <sequential>
187        <input message="Enter su3 private signing key store:" addproperty="release.privkey.su3" />
188        <fail message="You must enter an existing file path." >
189            <condition>
190                <or>
191                    <equals arg1="${release.privkey.su3}" arg2=""/>
192                    <not>
193                        <length file="${release.privkey.su3}" when="greater" length="0" />
194                    </not>
195                </or>
196            </condition>
197        </fail>
198        <input message="Enter key name (you@mail.i2p):" addproperty="release.signer.su3" />
199        <fail message="You must enter a name." >
200            <condition>
201                <equals arg1="${release.signer.su3}" arg2=""/>
202            </condition>
203        </fail>
204        <input message="Enter key password for ${release.signer.su3}:" addproperty="release.password.su3" />
205        <fail message="You must enter a password." >
206            <condition>
207                <equals arg1="${release.password.su3}" arg2=""/>
208            </condition>
209        </fail>
210            <java classname="net.i2p.crypto.SU3File" inputstring="${release.password.su3}" fork="true" failonerror="true">
211                <classpath>
212                    <pathelement location="build/i2p.jar" />
213                </classpath>
214                <arg value="sign" />
215                <arg value="-c" />
216                <arg value="@{sigtype}" />
217                <arg value="-t" />
218                <arg value="RSA_SHA512_4096" />
219                <arg value="@{infile}" />
220                <arg value="@{outfile}" />
221                <arg value="${release.privkey.su3}" />
222                <arg value="@{su3.ver}" />
223                <arg value="${release.signer.su3}" />
224            </java>
225            <echo message="Verify version and VALID signature:" />
226            <java classname="net.i2p.crypto.SU3File" fork="true" failonerror="true">
227                <classpath>
228                    <pathelement location="build/i2p.jar" />
229                </classpath>
230                <!-- set base dir so it can find the pubkey cert -->
231                <jvmarg value="-Di2p.dir.base=installer/resources" />
232                <arg value="verifysig" />
233                <arg value="@{outfile}" />
234            </java>
235            <java classname="net.i2p.crypto.SU3File" fork="true" failonerror="true">
236                <classpath>
237                    <pathelement location="build/i2p.jar" />
238                </classpath>
239                <!-- set base dir so it can find the pubkey cert -->
240                <jvmarg value="-Di2p.dir.base=installer/resources" />
241                <arg value="showversion" />
242                <arg value="@{outfile}" />
243            </java>
244        </sequential>
245    </macrodef>
246
247    <target name="dist" depends="pkg, javadoc" />
248    <target name="dist200" depends="pkg200, javadoc" />
249    <target name="build" depends="build2">
250        <!-- so we don't build standalone for the updater -->
251        <!-- This builds apps/i2psnark/java/i2psnark-standalone.zip,
252          -   which we don't distribute anywhere...
253        <ant dir="apps/i2psnark/java/" target="standalone" />
254        -->
255    </target>
256    <target name="build2" depends="builddep, jar, buildWEB" />
257    <target name="buildSmall" depends="builddepSmall, jarSmall, buildWEB" />
258    <target name="buildclean" depends="distclean, build" />
259
260    <target name="builddep" depends="builddepSmall, buildBOB, buildSAM, buildSusiMail, buildSusiDNS, buildI2PSnark" />
261
262    <target name="builddepSmall" depends="buildrouter, buildSystray, buildDesktopGui, buildRouterConsole, buildStreaming, buildI2PTunnel, buildAddressbook" />
263
264    <!-- start of buildX, one for each sub-build.xml.
265         Do not put ant tasks in the sub-build.xmls anymore,
266         so the build will go faster.
267      -->
268
269    <target name="-setepoch">
270        <script language="javascript">
271            <![CDATA[
272              property = project.setProperty("epoch",Math.floor((new Date()).getTime()/1000));
273            ]]>
274        </script>
275    </target>
276
277    <target name="buildBOB" depends="buildStreaming" >
278        <ant dir="apps/BOB/" target="jar" />
279        <copy file="apps/BOB/dist/BOB.jar" todir="build/" />
280    </target>
281
282    <target name="buildSAM" depends="buildStreaming" >
283        <ant dir="apps/sam/java/" target="jar" />
284        <copy file="apps/sam/java/build/sam.jar" todir="build/" />
285    </target>
286
287    <target name="buildSusiMail" depends="buildCore, buildJetty" >
288        <ant dir="apps/susimail/" target="war" />
289        <copy file="apps/susimail/susimail.war" todir="build/" />
290    </target>
291
292    <target name="buildSusiDNS" depends="buildCore, buildJetty, buildImagegen" >
293        <ant dir="apps/susidns/src" target="all" />
294        <copy file="apps/susidns/src/susidns.war" todir="build/" />
295    </target>
296
297    <target name="buildImagegen" depends="buildCore, buildJetty" >
298        <ant dir="apps/imagegen" target="all" />
299        <copy file="apps/imagegen/imagegen/build/imagegen.war" todir="build/" />
300    </target>
301
302    <target name="buildI2PSnark" depends="buildStreaming, buildJetty" >
303        <ant dir="apps/i2psnark/java/" target="war" />
304        <copy file="apps/i2psnark/i2psnark.war" todir="build/" />
305        <copy file="apps/i2psnark/java/build/i2psnark.jar" todir="build/" />
306    </target>
307
308    <!-- jar (not war) for Android -->
309    <target name="buildAddressbookJar" depends="buildCore" >
310        <ant dir="apps/addressbook/" target="jar" />
311        <copy file="apps/addressbook/dist/addressbook.jar" todir="build/" />
312    </target>
313
314    <target name="buildAddressbook" depends="buildCore, buildJetty" >
315        <ant dir="apps/addressbook/" target="war" />
316        <copy file="apps/addressbook/dist/addressbook.war" todir="build/" />
317    </target>
318
319    <!-- Both jars and no war, for Android -->
320    <target name="buildI2PTunnelJars" depends="buildStreaming" >
321        <ant dir="apps/i2ptunnel/java/" target="uiJar" />
322        <copy file="apps/i2ptunnel/java/build/i2ptunnel.jar" todir="build/" />
323        <copy file="apps/i2ptunnel/java/build/i2ptunnel-ui.jar" todir="build/" />
324    </target>
325
326    <target name="buildI2PTunnel" depends="buildStreaming, buildJetty" >
327        <ant dir="apps/i2ptunnel/java/" target="build" />
328        <copy file="apps/i2ptunnel/java/build/i2ptunnel.jar" todir="build/" />
329        <copy file="apps/i2ptunnel/java/build/i2ptunnel.war" todir="build/" />
330    </target>
331
332    <target name="buildDesktopGui" depends="buildCore, buildrouter" >
333<!--
334        <ant dir="apps/desktopgui" target="clean" />
335-->
336        <ant dir="apps/desktopgui" target="jar" />
337        <copy file="apps/desktopgui/dist/desktopgui.jar" todir="build/" />
338    </target>
339
340    <target name="buildRouterConsole" depends="buildrouter, buildSystray, buildDesktopGui, buildJetty" >
341        <ant dir="apps/routerconsole/java/" target="jar" />
342    </target>
343
344    <!-- newsxml.jar only (subset of routerconsole, no war) for Android -->
345    <target name="buildNewsXMLJar" depends="buildRouter" >
346        <ant dir="apps/routerconsole/java/" target="newsxmljar" />
347    </target>
348
349    <target name="buildJetty" depends="buildCore" >
350        <ant dir="apps/jetty" target="build" />
351        <copy todir="build/" >
352            <fileset dir="apps/jetty/jettylib" excludes="ant.jar" />
353        </copy>
354    </target>
355
356    <target name="buildSystray" depends="buildCore" >
357        <ant dir="apps/systray/java/" target="jar" />
358        <copy file="apps/systray/java/build/systray.jar" todir="build/" />
359    </target>
360
361    <target name="buildStreaming" depends="buildMinistreaming" >
362        <ant dir="apps/streaming/java/" target="jar" />
363        <copy file="apps/streaming/java/build/streaming.jar" todir="build/" />
364    </target>
365
366    <target name="buildMinistreaming" depends="buildCore" >
367        <ant dir="apps/ministreaming/java/" target="jar" />
368        <copy file="apps/ministreaming/java/build/mstreaming.jar" todir="build/" />
369    </target>
370
371    <target name="buildRouter" depends="buildrouter" />
372    <target name="buildrouter" depends="buildCore" >
373        <ant dir="router/java/" target="jar" />
374        <copy file="router/java/build/router.jar" todir="build/" />
375    </target>
376
377    <target name="buildCore" depends="buildProperties" >
378        <ant dir="core/java/" target="jar" />
379        <copy file="core/java/build/i2p.jar" todir="build/" />
380    </target>
381
382    <target name="buildJrobin" depends="buildProperties" >
383        <!-- take only what we need from the jrobin jar -->
384        <jar destfile="build/jrobin.jar" >
385            <zipfileset src="apps/jrobin/jrobin-1.5.9.1.jar"
386                        excludes="org/jrobin/cmd/ org/jrobin/convertor/ org/jrobin/inspector/" />
387            <manifest>
388                <attribute name="Built-By" value="${build.built-by}" />
389                <attribute name="Build-Date" value="${build.timestamp}" />
390                <attribute name="Base-Revision" value="${workspace.version}" />
391            </manifest>
392        </jar>
393    </target>
394
395    <target name="buildProperties" depends="getMtnRev, getReleaseNumber, getBuildNumber" >
396        <!-- default if not set above -->
397        <property name="workspace.version" value="unknown" />
398        <tstamp>
399            <format property="build.timestamp" pattern="yyyy-MM-dd HH:mm:ss z" timezone="UTC" locale="en" />
400        </tstamp>
401        <property name="full.version" value="${release.number}-${i2p.build.number}${build.extra}" />
402        <echo message="Building version ${full.version} (mtn rev ${workspace.version})" />
403    </target>
404
405    <target name="buildWEB" depends="buildRouterConsole" >
406        <copy file="apps/routerconsole/java/build/routerconsole.jar" todir="build/" />
407        <copy file="apps/routerconsole/java/build/routerconsole.war" todir="build/" />
408    </target>
409
410    <target name="buildTools" depends="buildrouter" >
411        <ant dir="installer/tools/java" target="jar" />
412        <copy file="installer/tools/java/build/tools.jar" todir="build/" />
413    </target>
414
415    <!-- end of sub-build.xml targets -->
416
417    <target name="checkForMtn" >
418        <available property="mtn.available" file="_MTN" type="dir" />
419    </target>
420
421    <target name="getMtnRev" depends="checkForMtn" if="mtn.available" >
422        <exec executable="mtn" outputproperty="workspace.version" errorproperty="mtn.error1" failifexecutionfails="false" >
423            <arg value="automate" />
424            <arg value="get_base_revision_id" />
425        </exec>
426    </target>
427
428    <target name="trimMtnRev" depends="getMtnRev">
429        <script language="javascript">
430            <![CDATA[
431            var MtnRev = project.getProperty("workspace.version");
432            if (MtnRev != 'unknown' && MtnRev != null) {
433                echo = project.createTask("echo");
434                var MtnShortHash = MtnRev.substring(0,8);
435                project.setProperty("MtnShortHash", MtnShortHash);
436                echo.setMessage("Trimmed hash: " + MtnShortHash);
437                echo.perform();
438            } else {
439                project.setProperty("MtnShortHash", 'unknown');
440            }
441            ]]>
442        </script>
443    </target>
444
445    <target name="checkIfBumped">
446        <exec executable="mtn" outputproperty="bumped" errorproperty="mtn.error2" failifexecutionfails="false" >
447            <arg value="ls" />
448            <arg value="ch" />
449            <arg value="router/java/src/net/i2p/router/RouterVersion.java" />
450        </exec>
451        <condition property="bumped.already">
452            <not>
453                <equals arg1="${bumped}" arg2=""/>
454            </not>
455        </condition>
456    </target>
457
458    <target name="bump" depends="bumpBuild" />
459    <target name="bumpBuild" depends="checkIfBumped, getBuildNumber" unless="bumped.already">
460        <script language="javascript">
461            <![CDATA[
462            var newBuildNumber = (Number(project.getProperty("i2p.build.number")) + 1);
463            if (newBuildNumber != 'unknown' && newBuildNumber != null) {
464                echo = project.createTask("echo");
465                project.setProperty("new.i2p.build.number", newBuildNumber);
466                echo.setMessage("Build number is now: " + newBuildNumber + project.getProperty("build.extra"));
467                echo.perform();
468            }
469            ]]>
470        </script>
471        <replaceregexp byline="true" file="router/java/src/net/i2p/router/RouterVersion.java"
472            match='(^\s+public\s+final\s+static\s+long\s+BUILD\s+=\s+)[0-9]+;' replace='\1${new.i2p.build.number};'/>
473    </target>
474
475    <condition property="noExe">
476        <not>
477            <!-- We only have launch4j binaries for the following systems -->
478            <and>
479                <or>
480                    <os arch="x86" />
481                    <os arch="i386" />
482                    <os arch="i586" />
483                    <os arch="i686" />
484                    <os arch="amd64" />
485                    <os arch="x86_64" />
486                </or>
487                <or>
488                    <os name="Linux" />
489                    <os family="windows" />
490                </or>
491            </and>
492        </not>
493    </condition>
494
495    <!-- this makes an empty build/launchi2p.jar and the build/i2p.exe for the no-wrapper windows startup, if possible -->
496    <target name="buildexe" depends="buildProperties, launch4j" unless="noExe">
497        <echo message="See the file &quot;build.properties&quot; if this step fails." />
498        <jar destfile="./build/launchi2p.jar">
499            <manifest>
500                <attribute name="Main-Class" value="net.i2p.router.RouterLaunch" />
501                <attribute name="Class-Path" value="lib/i2p.jar lib/router.jar lib/jbigi.jar lib/BOB.jar lib/sam.jar lib/mstreaming.jar lib/streaming.jar lib/routerconsole.jar lib/i2ptunnel.jar lib/org.mortbay.jetty.jar lib/javax.servlet.jar lib/jasper-runtime.jar lib/commons-logging.jar lib/commons-el.jar lib/wrapper.jar lib/systray.jar lib/systray4j.jar lib/desktopgui.jar lib/i2psnark.jar lib/jrobin.jar lib/jstl.jar lib/standard.jar lib/jetty-continuation.jar lib/jetty-deploy.jar lib/jetty-http.jar lib/jetty-i2p.jar lib/jetty-io.jar lib/jetty-rewrite-handler.jar lib/jetty-security.jar lib/jetty-servlet.jar lib/jetty-servlets.jar lib/jetty-start.jar lib/jetty-util.jar lib/jetty-webapp.jar lib/jetty-xml.jar" />
502                <attribute name="Built-By" value="${build.built-by}" />
503                <attribute name="Build-Date" value="${build.timestamp}" />
504                <attribute name="Base-Revision" value="${workspace.version}" />
505            </manifest>
506        </jar>
507        <!-- now the standalone launcher exe -->
508        <launch4j configFile="./installer/i2pstandalone.xml" />
509        <!-- thazzit -->
510    </target>
511
512    <target name="launch4j">
513        <taskdef name="launch4j"
514                 classname="net.sf.launch4j.ant.Launch4jTask"
515                 classpath="${basedir}/installer/lib/launch4j/launch4j.jar:${basedir}/installer/lib/launch4j/lib/xstream.jar" />
516     </target>
517
518     <!--
519          the files are now copied to the build directory
520          in the build* targets
521      -->
522     <target name="jar" depends="jarSmall" />
523     <target name="jarSmall" depends="builddepSmall, buildJrobin" />
524
525    <!-- Custom target to collect the jars that I2P-Bote needs to compile, so it can compile from source. -->
526    <target name="jarBote" depends="buildRouter, buildStreaming, buildJetty" >
527        <copy file="apps/susidns/src/lib/jstl.jar" todir="build/" />
528        <copy file="apps/susidns/src/lib/standard.jar" todir="build/" />
529    </target>
530
531    <target name="jbigi-list-changes" depends="checkForMtn" if="mtn.available">
532        <exec executable="mtn" outputproperty="workspace.changes.jbigi" errorproperty="mtn.error.jbigi" failifexecutionfails="false" >
533            <arg value="list" />
534            <arg value="changed" />
535            <arg value="installer/lib/jbigi" />
536        </exec>
537        <!-- \n in an attribute value generates an invalid manifest -->
538        <exec executable="tr" inputstring="${workspace.changes.jbigi}" outputproperty="workspace.changes.jbigi.tr" errorproperty="mtn.error2" failifexecutionfails="false" >
539            <arg value="-s" />
540            <arg value="&quot;[:space:]&quot;" />
541            <arg value="," />
542        </exec>
543    </target>
544
545    <target name="jbigi" depends="buildProperties, jbigi-list-changes">
546        <!-- set if unset -->
547        <property name="workspace.changes.jbigi.tr" value="" />
548        <mkdir dir="./build" />
549        <jar destfile="build/jbigi.jar" whenmanifestonly="fail" >
550            <fileset dir="installer/lib/jbigi" includes="*.so *.dll *.jnilib" />
551            <manifest>
552                <attribute name="Built-By" value="${build.built-by}" />
553                <attribute name="Build-Date" value="${build.timestamp}" />
554                <attribute name="Base-Revision" value="${workspace.version}" />
555                <attribute name="Workspace-Changes" value="${workspace.changes.jbigi.tr}" />
556            </manifest>
557        </jar>
558    </target>
559
560    <target name="jbigi-nowindows" depends="buildProperties, jbigi-list-changes">
561        <!-- set if unset -->
562        <property name="workspace.changes.jbigi.tr" value="" />
563        <jar destfile="build/jbigi.jar" whenmanifestonly="fail" >
564            <fileset dir="installer/lib/jbigi" includes="*.so *.jnilib" />
565            <manifest>
566                <attribute name="Built-By" value="${build.built-by}" />
567                <attribute name="Build-Date" value="${build.timestamp}" />
568                <attribute name="Base-Revision" value="${workspace.version}" />
569                <attribute name="Workspace-Changes" value="${workspace.changes.jbigi.tr}" />
570            </manifest>
571        </jar>
572    </target>
573
574    <!-- Now system-specific jbigis in alphabetical order -->
575    <target name="jbigi-freebsd-only"  depends="buildProperties, jbigi-list-changes">
576        <!-- set if unset -->
577        <property name="workspace.changes.jbigi.tr" value="" />
578        <jar destfile="build/jbigi.jar"  whenmanifestonly="fail" >
579            <fileset dir="installer/lib/jbigi" includes="*bsd*.so" />
580            <manifest>
581                <attribute name="Built-By" value="${build.built-by}" />
582                <attribute name="Build-Date" value="${build.timestamp}" />
583                <attribute name="Base-Revision" value="${workspace.version}" />
584                <attribute name="Workspace-Changes" value="${workspace.changes.jbigi.tr}" />
585            </manifest>
586        </jar>
587    </target>
588
589    <target name="jbigi-linux-only"  depends="buildProperties, jbigi-list-changes">
590        <!-- set if unset -->
591        <property name="workspace.changes.jbigi.tr" value="" />
592        <jar destfile="build/jbigi.jar"  whenmanifestonly="fail" >
593            <fileset dir="installer/lib/jbigi" includes="*linux*.so" />
594            <manifest>
595                <attribute name="Built-By" value="${build.built-by}" />
596                <attribute name="Build-Date" value="${build.timestamp}" />
597                <attribute name="Base-Revision" value="${workspace.version}" />
598                <attribute name="Workspace-Changes" value="${workspace.changes.jbigi.tr}" />
599            </manifest>
600        </jar>
601    </target>
602
603    <target name="jbigi-linux-x86-only"  depends="buildProperties, jbigi-list-changes">
604        <!-- set if unset -->
605        <property name="workspace.changes.jbigi.tr" value="" />
606        <jar destfile="build/jbigi.jar"  whenmanifestonly="fail" >
607            <fileset dir="installer/lib/jbigi" includes="*linux*.so" excludes="*linux-arm*.so,*linux-ppc*.so" />
608            <manifest>
609                <attribute name="Built-By" value="${build.built-by}" />
610                <attribute name="Build-Date" value="${build.timestamp}" />
611                <attribute name="Base-Revision" value="${workspace.version}" />
612                <attribute name="Workspace-Changes" value="${workspace.changes.jbigi.tr}" />
613            </manifest>
614        </jar>
615    </target>
616
617
618    <target name="jbigi-linux-nonx86-only"  depends="buildProperties, jbigi-list-changes">
619        <!-- set if unset -->
620        <property name="workspace.changes.jbigi.tr" value="" />
621        <jar destfile="build/jbigi.jar"  whenmanifestonly="fail" >
622            <fileset dir="installer/lib/jbigi" includes="*linux-arm*.so,*linux-ppc*.so" />
623            <manifest>
624                <attribute name="Built-By" value="${build.built-by}" />
625                <attribute name="Build-Date" value="${build.timestamp}" />
626                <attribute name="Base-Revision" value="${workspace.version}" />
627                <attribute name="Workspace-Changes" value="${workspace.changes.jbigi.tr}" />
628            </manifest>
629        </jar>
630    </target>
631
632    <target name="jbigi-osx-only"  depends="buildProperties, jbigi-list-changes" >
633        <!-- set if unset -->
634        <property name="workspace.changes.jbigi.tr" value="" />
635        <jar destfile="build/jbigi.jar"  whenmanifestonly="fail" >
636            <fileset dir="installer/lib/jbigi" includes="*.jnilib" />
637            <manifest>
638                <attribute name="Built-By" value="${build.built-by}" />
639                <attribute name="Build-Date" value="${build.timestamp}" />
640                <attribute name="Base-Revision" value="${workspace.version}" />
641                <attribute name="Workspace-Changes" value="${workspace.changes.jbigi.tr}" />
642            </manifest>
643        </jar>
644    </target>
645
646    <target name="jbigi-windows-only" depends="buildProperties, jbigi-list-changes" >
647        <!-- set if unset -->
648        <property name="workspace.changes.jbigi.tr" value="" />
649        <jar destfile="build/jbigi.jar" whenmanifestonly="fail" >
650            <fileset dir="installer/lib/jbigi" includes="*windows*.dll" />
651            <manifest>
652                <attribute name="Built-By" value="${build.built-by}" />
653                <attribute name="Build-Date" value="${build.timestamp}" />
654                <attribute name="Base-Revision" value="${workspace.version}" />
655                <attribute name="Workspace-Changes" value="${workspace.changes.jbigi.tr}" />
656            </manifest>
657        </jar>
658    </target>
659
660    <!-- the apps need to compile the jsps to poupdate -->
661    <target name="poupdate" depends="buildRouter, buildStreaming, buildSystray, buildJetty, buildDesktopGui" >
662        <echo message="Setting environment variable LG2 to a lang code (eg: de,zh,nl etc)" />
663        <echo message=" will restrict language update to the language you specified, leaving other language untact." />
664        <ant dir="apps/routerconsole/java/" >
665            <target name="poupdate" />
666            <target name="poupdate-news" />
667            <target name="poupdate-countries" />
668        </ant>
669        <ant dir="apps/i2psnark/java/" target="poupdate" />
670        <ant dir="apps/i2ptunnel/java/" >
671            <target name="poupdate" />
672            <target name="poupdate-proxy" />
673        </ant>
674        <ant dir="apps/susidns/src/" target="poupdate" />
675        <ant dir="apps/susimail/" target="poupdate" />
676        <ant dir="apps/desktopgui" target="poupdate" />
677        <ant dir="installer/resources/locale" target="poupdate" />
678        <ant dir="apps/ministreaming/java" target="poupdate" />
679    </target>
680
681    <condition property="no.bundle">
682        <isfalse value="${require.gettext}" />
683    </condition>
684
685    <target name="prep-script-translation" unless="no.bundle" >
686        <!-- script translation added in 0.8.13, enabled in 0.9.5. -->
687        <ant dir="installer/resources/locale" target="bundle" />
688        <copy todir="pkg-temp/locale/">
689            <fileset dir="installer/resources/locale/mo/" />
690        </copy>
691    </target>
692
693    <target name="javadoc" depends="getReleaseNumber, getBuildNumber" >
694        <ant dir="apps/jetty" target="ensureJettylib" />
695        <mkdir dir="./build" />
696        <mkdir dir="./build/javadoc" />
697        <javadoc access="package"
698            destdir="./build/javadoc"
699            packagenames="*"
700            use="true"
701            splitindex="true"
702            failonerror="true"
703            doctitle="I2P Javadocs for Release ${release.number} Build ${i2p.build.number}${build.extra}"
704            windowtitle="I2P Anonymous Network - Java Documentation - Version ${release.number}">
705            <group title="Core SDK (i2p.jar)" packages="net.i2p:net.i2p.*:net.i2p.client:net.i2p.client.*:net.i2p.internal:net.i2p.internal.*:freenet.support.CPUInformation:org.bouncycastle.oldcrypto:org.bouncycastle.oldcrypto.*:gnu.crypto.*:gnu.getopt:gnu.gettext:com.nettgryppa.security:net.metanotion:net.metanotion.*:org.apache.http.conn.ssl:org.apache.http.conn.util:org.apache.http.util" />
706            <group title="Streaming Library" packages="net.i2p.client.streaming:net.i2p.client.streaming.impl" />
707            <group title="Router" packages="net.i2p.router:net.i2p.router.*:net.i2p.data.i2np:net.i2p.data.router:org.cybergarage:org.cybergarage.*:org.freenetproject:org.xlattice.crypto.filters:com.maxmind.geoip" />
708            <group title="Router Console" packages="net.i2p.router.web:net.i2p.router.update:net.i2p.router.news" />
709            <!-- apps and bridges starting here, alphabetical please -->
710            <group title="Addressbook Application" packages="net.i2p.addressbook" />
711            <group title="BOB Bridge" packages="net.i2p.BOB" />
712            <group title="BOB Demos" packages="net.i2p.BOB.Demos.echo.echoclient:net.i2p.BOB.Demos.echo.echoserver" />
713            <group title="Desktopgui Application" packages="net.i2p.desktopgui:net.i2p.desktopgui.*" />
714            <group title="I2PSnark Application" packages="org.klomp.snark:org.klomp.snark.*" />
715            <group title="I2PTunnel Application" packages="net.i2p.i2ptunnel:net.i2p.i2ptunnel.*" />
716            <group title="Imagegen Application" packages="com.docuverse.identicon:com.google.zxing:com.google.zxing.*:net.i2p.imagegen" />
717            <group title="Installer Utilities" packages="net.i2p.installer" />
718            <group title="Jetty Utilities" packages="net.i2p.jetty:net.i2p.servlet:net.i2p.servlet.*:org.mortbay.servlet:org.mortbay.util" />
719            <group title="SAM Bridge" packages="net.i2p.sam" />
720            <group title="SAM Demos" packages="net.i2p.sam.client" />
721            <group title="SusiDNS Application" packages="i2p.susi.dns" />
722            <group title="SusiMail Application" packages="i2p.susi.webmail:i2p.susi.webmail.*:i2p.susi.debug:i2p.susi.util" />
723            <group title="Systray Application" packages="net.i2p.apps.systray" />
724            <sourcepath>
725                <pathelement location="core/java/src" />
726                <pathelement location="router/java/src" />
727                <pathelement location="apps/ministreaming/java/src" />
728                <pathelement location="apps/streaming/java/src" />
729                <pathelement location="apps/i2ptunnel/java/src" />
730                <pathelement location="apps/systray/java/src" />
731                <pathelement location="apps/desktopgui/src" />
732                <pathelement location="apps/routerconsole/java/src" />
733                <pathelement location="apps/addressbook/java/src" />
734                <pathelement location="apps/i2psnark/java/src" />
735                <pathelement location="apps/sam/java/src" />
736                <pathelement location="apps/BOB/src" />
737                <pathelement location="apps/BOB/Demos/echo/echoclient/src" />
738                <pathelement location="apps/BOB/Demos/echo/echoserver/src" />
739                <pathelement location="apps/susidns/src/java/src" />
740                <pathelement location="apps/susimail/src/src" />
741                <pathelement location="apps/jetty/java/src" />
742                <pathelement location="apps/imagegen/imagegen/webapp/src/main/java" />
743                <pathelement location="apps/imagegen/identicon/core/src/main/java" />
744                <pathelement location="apps/imagegen/zxing/core/src/main/java" />
745                <pathelement location="apps/imagegen/zxing/javase/src/main/java" />
746                <pathelement location="installer/java/src" />
747            </sourcepath>
748            <classpath>
749                <pathelement location="apps/jetty/jettylib/org.mortbay.jetty.jar" />
750                <pathelement location="apps/jetty/jettylib/javax.servlet.jar" />
751                <pathelement location="apps/jetty/jettylib/jetty-http.jar" />
752                <pathelement location="apps/jetty/jettylib/jetty-security.jar" />
753                <pathelement location="apps/jetty/jettylib/jetty-servlet.jar" />
754                <pathelement location="apps/jetty/jettylib/jetty-start.jar" />
755                <pathelement location="apps/jetty/jettylib/jetty-util.jar" />
756                <pathelement location="apps/jetty/jettylib/jetty-webapp.jar" />
757                <pathelement location="apps/jetty/jettylib/jetty-xml.jar" />
758                <pathelement location="apps/systray/java/lib/systray4j.jar" />
759                <pathelement location="apps/jrobin/jrobin-1.5.9.1.jar" />
760                <pathelement location="installer/lib/wrapper/all/wrapper.jar" />
761            </classpath>
762            <!-- These variables are stored in build.properties.
763                  End-users can override by creating the file override.properties -->
764            <link offline="true" href="${javasedocs.url}" packagelistLoc="installer/resources/package-lists/java/" />
765            <link offline="true" href="${javaeedocs.url}" packagelistLoc="installer/resources/package-lists/javaee/" />
766            <link offline="true" href="${jettydocs.url}" packagelistLoc="installer/resources/package-lists/jetty/" />
767            <link offline="true" href="${jrobindocs.url}" packagelistLoc="installer/resources/package-lists/jrobin/" />
768            <link offline="true" href="${wrapperdocs.url}" packagelistLoc="installer/resources/package-lists/wrapper/" />
769        </javadoc>
770        <echo message="Warning, javadoc embeds timestamps in the output, run with 'TZ=UTC ant javadoc' if you plan to distribute" />
771    </target>
772
773    <target name="javadoc-zip" depends="javadoc">
774        <zip destfile="javadoc.zip" basedir="build" level="9" includes="javadoc\**" />
775    </target>
776
777    <target name="javadoc-test" depends="buildRouter, javadoc" >
778        <mkdir dir="./build" />
779        <mkdir dir="./build/javadoc-test" />
780
781        <!-- set junit home to the old default unless overridden elsewhere -->
782        <property name="junit.home" value="${ant.home}/lib/" />
783        <javadoc access="package"
784            destdir="./build/javadoc-test"
785            packagenames="*"
786            use="true"
787            splitindex="true"
788            doctitle="I2P Unit Test Javadocs for Release ${release.number} Build ${i2p.build.number}${build.extra}"
789            windowtitle="I2P Anonymous Network - Java Documentation - Version ${release.number}">
790            <group title="Core SDK" packages="net.i2p:net.i2p.*:net.i2p.client:net.i2p.client.*:net.i2p.internal:net.i2p.internal.*:freenet.support.CPUInformation:org.bouncycastle.oldcrypto:org.bouncycastle.oldcrypto.*:gnu.crypto.*:gnu.gettext:org:com.nettgryppa.security:net.metanotion:net.metanotion.*" />
791            <group title="Router" packages="net.i2p.router:net.i2p.router.*:net.i2p.data.i2np:org.cybergarage.*:org.freenetproject:org.xlattice.crypto.filters" />
792            <sourcepath>
793                <pathelement location="core/java/test/junit" />
794                <pathelement location="router/java/test/junit" />
795                <pathelement location="core/java/test/scalatest" />
796            </sourcepath>
797            <classpath>
798                <pathelement location="build/i2p.jar" />
799                <pathelement location="build/router.jar" />
800                <pathelement location="${junit.home}/junit4.jar" />
801                <pathelement location="${hamcrest.home}/hamcrest-all.jar" />
802            </classpath>
803            <!--
804                 These variables are stored in build.properties.
805                 End-users can override by creating the file override.properties
806            -->
807            <link offline="true" href="${javasedocs.url}" packagelistLoc="installer/resources/package-lists/java/" />
808            <link offline="true" href="${junitdocs.url}" packagelistLoc="installer/resources/package-lists/junit/" />
809            <link offline="true" href="${i2pdocs.url}" packagelistLoc="build/javadoc/" />
810        </javadoc>
811        <echo message="Warning, javadoc embeds timestamps in the output, run with 'TZ=UTC ant javadoc' if you plan to distribute" />
812    </target>
813
814    <target name="getReleaseNumber">
815        <loadfile srcfile="core/java/src/net/i2p/CoreVersion.java" property="release.number">
816            <filterchain>
817                <linecontains>
818                    <contains value="public final static String VERSION"/>
819                </linecontains>
820                <tokenfilter>
821                    <replaceregex pattern='.*"([^"]+)";' replace="\1" flags="gi" />
822                </tokenfilter>
823                <striplinebreaks/>
824                <trim/>
825            </filterchain>
826        </loadfile>
827        <property name="release.number" value="unknown" />
828        <echo message="Release number is ${release.number}" />
829    </target>
830
831    <target name="getBuildNumber">
832        <loadfile srcfile="router/java/src/net/i2p/router/RouterVersion.java" property="i2p.build.number">
833            <filterchain>
834                <linecontains>
835                    <contains value="public final static long BUILD" />
836                </linecontains>
837                <tokenfilter>
838                    <replaceregex pattern=".*=\s+([0-9]+);" replace="\1" flags="gi" />
839                </tokenfilter>
840                <trim/>
841                <striplinebreaks/>
842            </filterchain>
843        </loadfile>
844        <loadfile srcfile="router/java/src/net/i2p/router/RouterVersion.java" property="build.extra">
845            <filterchain>
846                <linecontains>
847                    <contains value="public final static String EXTRA" />
848                </linecontains>
849                <tokenfilter>
850                    <replaceregex pattern='.*"(.*)";' replace="\1" flags="gi" />
851                </tokenfilter>
852                <trim/>
853                <striplinebreaks/>
854            </filterchain>
855        </loadfile>
856        <property name="i2p.build.number" value="??" />
857        <property name="build.extra" value="" />
858        <echo message="Build number is ${i2p.build.number}${build.extra}" />
859    </target>
860
861    <target name="verifyReleaseBuildNumbers" depends="getReleaseNumber, getBuildNumber" >
862        <echo message="SDK: ${java.vendor} ${java.version} (${java.runtime.name} ${java.runtime.version})" />
863        <fail message="Bad release number: ${release.number}" >
864            <condition>
865                <or>
866                    <equals arg1="${release.number}" arg2="unknown"/>
867                    <equals arg1="${release.number}" arg2=""/>
868                </or>
869            </condition>
870        </fail>
871        <fail message="Non-zero build number: ${i2p.build.number}" >
872            <condition>
873                <not>
874                    <equals arg1="${i2p.build.number}" arg2="0"/>
875                </not>
876            </condition>
877        </fail>
878        <fail message="Non-empty extra build: ${build.extra}" >
879            <condition>
880                <not>
881                    <equals arg1="${build.extra}" arg2=""/>
882                </not>
883            </condition>
884        </fail>
885    </target>
886
887    <target name="-pre-sign">
888            <!-- if you're distributing su3 files to others, at a minimum you should set these -->
889            <fail message="javac.compilerargs must contain a -bootclasspath option in override.properties">
890                <condition>
891                    <not><contains string="${javac.compilerargs}" substring="-bootclasspath"/></not>
892                </condition>
893            </fail>
894            <fail message="javac.compilerargs7 must contain a -bootclasspath option in override.properties">
895                <condition>
896                    <not><contains string="${javac.compilerargs7}" substring="-bootclasspath"/></not>
897                </condition>
898            </fail>
899            <fail message="build.built-by must be set in override.properties">
900                <condition>
901                    <equals arg1="${build.built-by}" arg2="unknown"/>
902                </condition>
903            </fail>
904            <fail message="require.gettext must be true">
905                <condition>
906                    <not><equals arg1="${require.gettext}" arg2="true"/></not>
907                </condition>
908            </fail>
909    </target>
910
911    <target name="-pre-release" depends="-pre-sign">
912            <echo message="================================================================" />
913            <echo message="Did you update these files?" />
914            <exec executable="ls" failonerror="true">
915                    <arg value="-l" />
916                    <arg value="history.txt" />
917                    <arg value="installer/install.xml" />
918                    <arg value="core/java/src/net/i2p/CoreVersion.java" />
919                    <arg value="router/java/src/net/i2p/router/RouterVersion.java" />
920            </exec>
921            <echo message="Everything is checked in, right? Let's be sure:" />
922            <exec executable="mtn" failonerror="true">
923                    <arg value="st" />
924            </exec>
925            <echo message="If there are any modified files above, stop now!" />
926            <echo message="================================================================" />
927            <sleep seconds="3"/>
928    </target>
929
930    <target name="clean" depends="pkgclean" >
931        <delete dir="./build" />
932        <delete dir="./reports" />
933        <delete file="installer/lib/izpack/patches.jar" failonerror="false" quiet="true" />
934        <delete file="syndie-standalone.zip" failonerror="false" quiet="true" />
935        <delete file="i2psnark-standalone.zip" failonerror="false" quiet="true" />
936        <delete file="BOB-one.jar" failonerror="false" quiet="true" />
937        <delete file="core/java/cobertura.ser"/>
938        <delete file="javadoc.zip" />
939        <delete file="i2p.fba" />
940        <delete file="${sloccount.report.file}" />
941    </target>
942
943    <target name="distclean" depends="clean">
944        <delete failonerror="false" quiet="true">
945            <fileset dir="." includes="i2pinstall* *.deb i2p_*.bz2 i2pupdate* i2psource* *.sig *.torrent" />
946        </delete>
947        <ant dir="core/java/" target="distclean" />
948        <ant dir="router/java/" target="distclean" />
949        <ant dir="installer/java" target="distclean" />
950        <ant dir="apps/ministreaming/java/" target="distclean" />
951        <ant dir="apps/streaming/java/" target="distclean" />
952        <ant dir="apps/i2ptunnel/java/" target="distclean" />
953        <ant dir="apps/sam/java/" target="distclean" />
954        <ant dir="apps/BOB" target="clean" />
955        <ant dir="apps/desktopgui" target="clean" />
956        <ant dir="apps/routerconsole/java/" target="distclean" />
957        <ant dir="apps/addressbook/" target="distclean" />
958        <ant dir="apps/susimail/" target="distclean" />
959        <ant dir="apps/susidns/src/" target="distclean" />
960        <ant dir="apps/systray/java/" target="distclean" />
961        <ant dir="apps/i2psnark/java/" target="distclean" />
962        <ant dir="apps/jetty/" target="distclean" />
963        <ant dir="apps/imagegen/" target="distclean" />
964        <delete dir="core/c/jbigi/bin" />
965        <delete dir="core/c/jbigi/lib" />
966        <delete dir="core/c/jcpuid/lib" />
967        <ant dir="installer/resources/locale" target="distclean" />
968        <ant dir="installer/tools/java" target="distclean" />
969        <!--
970                NOTE! We need to turn off the default excludes for these
971                patterns to work.
972                These are the defaultexcludes in Ant as seen on
973                http://ant.apache.org/manual/CoreTasks/defaultexcludes.html
974                     **/*~
975                     **/#*#
976                     **/.#*
977                     **/%*%
978                     **/._*
979                     **/CVS
980                     **/CVS/**
981                     **/.cvsignore
982                     **/SCCS
983                     **/SCCS/**
984                     **/vssver.scc
985                     **/.svn
986                     **/.svn/**
987                     **/.DS_Store
988                The only recourse is to remove the offending ones.
989                We do this here, as we only need one change, and then put it
990                back after we are done with it.
991        -->
992        <defaultexcludes remove="**/*~"/>
993
994        <delete>
995            <fileset dir="." includes="**/*.class **/*.java~ **/*.txt~ **/*.xml~ **/*.sh~ **/*.SlackBuild~" />
996            <!--
997                Less common, but they pollute my workspace here, so we
998                might as well nuke these as well. Are there any others?
999               
1000                !!??? Why don't we just nuke "**/*~" ???!!
1001
1002                ++Sponge
1003            -->
1004        </delete>
1005        <!--
1006                Now we put the defaults back
1007        -->
1008        <defaultexcludes default="true"/>
1009    </target>
1010
1011    <target name="webappDistclean">
1012        <ant dir="apps/i2ptunnel/java/" target="distclean" />
1013        <ant dir="apps/routerconsole/java/" target="distclean" />
1014        <ant dir="apps/addressbook/" target="distclean" />
1015        <ant dir="apps/susimail/" target="distclean" />
1016        <ant dir="apps/susidns/src/" target="distclean" />
1017        <ant dir="apps/i2psnark/java/" target="distclean" />
1018        <ant dir="apps/imagegen/" target="distclean" />
1019    </target>
1020
1021    <target name="pkg" depends="distclean, updater, preppkg, installer" />
1022
1023    <target name="pkg200" depends="distclean, updater200, preppkg, installer" />
1024
1025    <target name="pkgclean" depends="deletepkg-temp">
1026        <delete>
1027            <fileset dir="." includes="i2p.tar.bz2 install.jar i2pupdate.zip i2pupdate200.zip" />
1028        </delete>
1029    </target>
1030
1031    <target name="preppkg" depends="preppkg-linux, preppkg-freebsd, preppkg-osx, preppkg-windows, jbigi">
1032        <copy file="build/jbigi.jar" todir="pkg-temp/lib" />
1033        <copy todir="pkg-temp/lib/wrapper/solaris/">
1034            <fileset dir="installer/lib/wrapper/solaris/" excludes="*.txt" />
1035        </copy>
1036    </target>
1037
1038    <target name="preppkg-nowindows" depends="preppkg-linux, preppkg-freebsd, preppkg-osx, jbigi-nowindows">
1039        <copy file="build/jbigi.jar" todir="pkg-temp/lib" />
1040        <copy todir="pkg-temp/lib/wrapper/solaris/">
1041            <fileset dir="installer/lib/wrapper/solaris/" excludes="*.txt" />
1042        </copy>
1043        <copy file="installer/lib/wrapper/all/wrapper.jar" todir="pkg-temp/lib" />
1044    </target>
1045
1046    <target name="preppkgRepack" depends="preppkg-linux, preppkg-freebsd, preppkg-osx, preppkg-windows, jbigi">
1047        <ant target="repack200" />
1048        <!-- no use doing repack200 on jbigi.jar -->
1049        <copy file="build/jbigi.jar" todir="pkg-temp/lib" />
1050        <copy todir="pkg-temp/lib/wrapper/solaris/">
1051            <fileset dir="installer/lib/wrapper/solaris/" excludes="*.txt" />
1052        </copy>
1053    </target>
1054
1055    <target name="preppkg-freebsd" depends="preppkg-unix">
1056        <copy todir="pkg-temp/lib/wrapper/freebsd/">
1057            <fileset dir="installer/lib/wrapper/freebsd/" excludes="*.txt" />
1058        </copy>
1059        <copy todir="pkg-temp/lib/wrapper/freebsd64/">
1060            <fileset dir="installer/lib/wrapper/freebsd64" excludes="*.txt" />
1061        </copy>
1062    </target>
1063
1064    <target name="preppkg-freebsd-only" depends="preppkg-freebsd, jbigi-freebsd-only" >
1065        <copy file="build/jbigi.jar" todir="pkg-temp/lib" />
1066        <copy file="installer/lib/wrapper/all/wrapper.jar" todir="pkg-temp/lib" />
1067    </target>
1068
1069    <!-- only what is needed for debian, etc. -->
1070    <target name="preppkg-linux-only" depends="preppkg-linux, jbigi-linux-only" >
1071        <copy file="build/jbigi.jar" todir="pkg-temp/lib" />
1072        <copy file="installer/lib/wrapper/all/wrapper.jar" todir="pkg-temp/lib" />
1073    </target>
1074
1075    <!-- This is the target called by debian/rules -->
1076    <target name="preppkg-unix" depends="preppkg-base, prep-script-translation" >
1077        <copy file="installer/resources/runplain.sh" todir="pkg-temp/" />
1078        <copy file="installer/resources/eepget" todir="pkg-temp/" />
1079        <copy file="installer/resources/i2prouter" todir="pkg-temp/" />
1080        <copy file="installer/resources/osid" todir="pkg-temp/" />
1081        <copy file="installer/resources/postinstall.sh" todir="pkg-temp/" />
1082        <copy todir="pkg-temp/man/">
1083            <fileset dir="installer/resources/man/" />
1084        </copy>
1085    </target>
1086
1087    <target name="preppkg-linux" depends="preppkg-linux-x86,preppkg-linux-nonx86" />
1088
1089    <target name="preppkg-linux-x86" depends="preppkg-unix">
1090        <copy todir="pkg-temp/lib/wrapper/linux/">
1091            <fileset dir="installer/lib/wrapper/linux/" excludes="*.txt" />
1092        </copy>
1093        <copy todir="pkg-temp/lib/wrapper/linux64/">
1094            <fileset dir="installer/lib/wrapper/linux64/" excludes="*.txt" />
1095        </copy>
1096    </target>
1097
1098    <target name="preppkg-linux-nonx86" depends="preppkg-unix">
1099        <copy todir="pkg-temp/lib/wrapper/linux-ppc/">
1100            <fileset dir="installer/lib/wrapper/linux-ppc/" excludes="*.txt" />
1101        </copy>
1102        <copy todir="pkg-temp/lib/wrapper/linux-armv5/">
1103            <fileset dir="installer/lib/wrapper/linux-armv5/" excludes="*.txt" />
1104        </copy>
1105        <copy todir="pkg-temp/lib/wrapper/linux-armv6/">
1106            <fileset dir="installer/lib/wrapper/linux-armv6/" excludes="*.txt" />
1107        </copy>
1108    </target>
1109
1110    <target name="preppkg-osx" depends="preppkg-unix">
1111        <!--<copy file="installer/resources/I2P Router Console.webloc" todir="pkg-temp/" />-->
1112        <copy todir="pkg-temp/Start I2P Router.app">
1113            <fileset dir="installer/resources/Start I2P Router.app" />
1114        </copy>
1115        <copy todir="pkg-temp/lib/wrapper/macosx/">
1116            <fileset dir="installer/lib/wrapper/macosx/" excludes="*.txt" />
1117        </copy>
1118        <copy file="installer/resources/net.i2p.router.plist.template" todir="pkg-temp/" />
1119        <copy file="installer/resources/install_i2p_service_osx.command" todir="pkg-temp/" />
1120        <copy file="installer/resources/uninstall_i2p_service_osx.command" todir="pkg-temp/" />
1121    </target>
1122
1123    <target name="preppkg-osx-only" depends="preppkg-osx, jbigi-osx-only" >
1124        <copy file="build/jbigi.jar" todir="pkg-temp/lib" />
1125        <copy file="installer/lib/wrapper/all/wrapper.jar" todir="pkg-temp/lib" />
1126    </target>
1127
1128    <target name="preppkg-windows" depends="preppkg-base, preplicenses-windows, buildUtilityJar, buildexe">
1129        <copy file="build/i2p.exe" todir="pkg-temp/" failonerror="false" />
1130        <copy file="apps/systray/java/lib/systray4j.dll" todir="pkg-temp/lib" />
1131        <copy file="apps/systray/java/resources/iggy.ico" todir="pkg-temp/icons" />
1132        <copy file="apps/systray/java/resources/iggy.xpm" todir="pkg-temp/icons" />
1133        <copy file="installer/resources/eepget.bat" todir="pkg-temp/" />
1134        <copy file="installer/resources/i2prouter.bat" todir="pkg-temp/" />
1135        <copy file="installer/resources/fixperms.bat" todir="pkg-temp/" />
1136        <copy file="installer/resources/install_i2p_service_winnt.bat" todir="pkg-temp/" />
1137        <copy file="installer/resources/set_config_dir_for_nt_service.bat" todir="pkg-temp/" />
1138        <copy file="installer/resources/uninstall_i2p_service_winnt.bat" todir="pkg-temp/" />
1139        <copy file="installer/lib/wrapper/all/wrapper.jar" todir="pkg-temp/lib" />
1140        <copy file="build/utility.jar" todir="pkg-temp" />
1141        <copy todir="pkg-temp/lib/wrapper/win32/">
1142            <fileset dir="installer/lib/wrapper/win32/" excludes="*.txt" />
1143        </copy>
1144        <copy todir="pkg-temp/lib/wrapper/win64/">
1145            <fileset dir="installer/lib/wrapper/win64/" excludes="*.txt" />
1146        </copy>
1147    </target>
1148
1149    <target name="preppkg-windows-only" depends="preppkg-windows, jbigi-windows-only">
1150        <copy file="build/jbigi.jar" todir="pkg-temp/lib" />
1151        <copy file="installer/lib/wrapper/all/wrapper.jar" todir="pkg-temp/lib" />
1152    </target>
1153
1154    <!-- see targets below for conditional copying -->
1155    <target name="preppkg-base" depends="build, preplicenses, prepConsoleDocs, prepthemeupdates, prepCertificates, prepRouterInfos, copyjetty, copytomcat-unlesspkg, copyjstl-unlesspkg, copystandard-unlesspkg">
1156        <!-- if updater200 was run previously, it left *.pack files in pkg-temp -->
1157        <!-- Also remove deletelist.txt used for updater only -->
1158        <delete>
1159            <fileset dir="pkg-temp" includes="**/*.jar.pack **/*.war.pack deletelist.txt" />
1160        </delete>
1161        <copy file="build/i2p.jar" todir="pkg-temp/lib/" />
1162        <copy file="build/i2ptunnel.jar" todir="pkg-temp/lib/" />
1163        <copy file="build/mstreaming.jar" todir="pkg-temp/lib/" />
1164        <copy file="build/streaming.jar" todir="pkg-temp/lib/" />
1165        <copy file="build/router.jar" todir="pkg-temp/lib/" />
1166        <copy file="build/desktopgui.jar" todir="pkg-temp/lib/" />
1167        <copy file="build/routerconsole.jar" todir="pkg-temp/lib/" />
1168        <!-- pulled out of routerconsole.jar in 0.7.12; name without version so we can overwrite if we upgrade  -->
1169        <copy file="build/jrobin.jar" tofile="pkg-temp/lib/jrobin.jar" />
1170        <copy file="build/sam.jar" todir="pkg-temp/lib/" />
1171        <copy file="build/BOB.jar" todir="pkg-temp/lib/" />
1172        <copy file="build/systray.jar" todir="pkg-temp/lib" />
1173        <copy file="build/i2psnark.jar" todir="pkg-temp/lib/" />
1174        <copy file="apps/systray/java/lib/systray4j.jar" todir="pkg-temp/lib" />
1175        <copy file="build/i2ptunnel.war" todir="pkg-temp/webapps/" />
1176        <copy file="build/routerconsole.war" todir="pkg-temp/webapps/" />
1177        <copy file="build/addressbook.war" todir="pkg-temp/webapps/" />
1178        <copy file="build/susimail.war" todir="pkg-temp/webapps/" />
1179        <copy file="build/susidns.war" todir="pkg-temp/webapps/" />
1180        <copy file="build/imagegen.war" todir="pkg-temp/webapps/" />
1181        <copy file="build/i2psnark.war" todir="pkg-temp/webapps/" />
1182        <copy file="apps/i2psnark/i2psnark.config" todir="pkg-temp/" />
1183        <copy file="installer/resources/blocklist.txt" todir="pkg-temp/" />
1184        <copy file="installer/resources/clients.config" todir="pkg-temp/" />
1185        <copy file="installer/resources/i2ptunnel.config" todir="pkg-temp/" />
1186        <copy file="installer/resources/systray.config" todir="pkg-temp/" />
1187        <copy file="installer/resources/wrapper.config" todir="pkg-temp/" />
1188        <copy file="installer/resources/hosts.txt" todir="pkg-temp/" />
1189        <copy file="INSTALL-headless.txt" todir="pkg-temp/" />
1190        <!-- overwrite the truncated history put in by the updater -->
1191        <copy file="history.txt" todir="pkg-temp/" overwrite="true" />
1192        <mkdir dir="pkg-temp/scripts" />
1193        <copy file="apps/proxyscript/i2pProxy.pac" todir="pkg-temp/scripts/" />
1194        <copy file="apps/apparmor/home.i2p.i2prouter" todir="pkg-temp/scripts/" />
1195        <copy file="installer/resources/startconsole.html" todir="pkg-temp/docs/" />
1196        <copy file="installer/resources/start.ico" todir="pkg-temp/docs/" />
1197        <copy file="installer/resources/console.ico" todir="pkg-temp/docs/" />
1198        <copy file="installer/resources/uninstall.ico" todir="pkg-temp/docs/" />
1199        <!-- Eepsite stuff here -->
1200        <mkdir dir="pkg-temp/eepsite" />
1201        <copy todir="pkg-temp/eepsite/" >
1202            <fileset dir="installer/resources/eepsite/" excludes="**/.placeholder" />
1203        </copy>
1204        <copy todir="pkg-temp/eepsite/docroot/help/lib/" >
1205            <fileset dir="installer/resources/icons/flags/" includes="cn.png de.png es.png fr.png ir.png it.png jp.png nl.png ru.png se.png us.png" />
1206        </copy>
1207        <copy file="installer/resources/themes/console/images/favicon.ico" tofile="pkg-temp/eepsite/docroot/favicon.ico" />
1208        <copy todir="pkg-temp/docs/icons/flags" >
1209          <fileset dir="installer/resources/icons/flags" />
1210        </copy>
1211    </target>
1212
1213    <target name="copyjetty" depends="copyjetty-unlesspkg" >
1214        <copy file="build/jetty-i2p.jar" todir="pkg-temp/lib" />
1215    </target>
1216
1217    <target name="copyjetty-unlesspkg" unless="${with-libjetty8-java}" >
1218        <copy todir="pkg-temp/lib" >
1219            <fileset dir="build" includes="javax.servlet.jar jetty*.jar org.mortbay.*.jar" excludes="jetty-i2p.jar" />
1220        </copy>
1221    </target>
1222
1223    <!-- todo handle alt package too -->
1224    <target name="copytomcat-unlesspkg" unless="${with-libtomcat7-java}" >
1225        <copy todir="pkg-temp/lib" >
1226            <fileset dir="build" includes="commons*.jar jasper*.jar javax*.jar" />
1227        </copy>
1228    </target>
1229
1230    <!-- todo handle alt package too -->
1231    <target name="copyjstl-unlesspkg" unless="${with-glassfish-javaee}" >
1232        <copy file="apps/susidns/src/lib/jstl.jar" todir="pkg-temp/lib/" />
1233    </target>
1234
1235    <!-- todo handle alt package too -->
1236    <target name="copystandard-unlesspkg" unless="${with-glassfish-javaee}" >
1237        <copy file="apps/susidns/src/lib/standard.jar" todir="pkg-temp/lib/" />
1238    </target>
1239
1240    <!-- does NOT include launch4j licenses for Windows builds -->
1241    <target name="preplicenses" depends="preplicenses-unlesspkg" >
1242        <copy file="LICENSE.txt" todir="pkg-temp/" />
1243        <copy todir="pkg-temp/licenses/" >
1244          <fileset dir="licenses/" />
1245        </copy>
1246        <copy file="apps/imagegen/identicon/README.md" tofile="pkg-temp/licenses/LICENSE-Identicon.txt" />
1247    </target>
1248
1249    <target name="preplicenses-unlesspkg" unless="${with-libjetty8-java}" >
1250        <copy file="apps/jetty/apache-tomcat-deployer/NOTICE" tofile="pkg-temp/licenses/NOTICE-Tomcat.txt" />
1251    </target>
1252
1253    <!-- DOES include launch4j licenses for Windows builds -->
1254    <target name="preplicenses-windows" depends="preplicenses">
1255        <!--
1256              The license in launch4j/ is a BSD license for launch4j
1257              The license in launch4j/head is a MIT license for the code that is actually wrapped around the jars
1258              So we include the MIT one in our binary package
1259         -->
1260        <copy file="installer/lib/launch4j/head/LICENSE.txt" tofile="pkg-temp/licenses/LICENSE-Launch4j.txt" />
1261        <!--  Not sure if these are used or should be included -->
1262        <copy file="installer/lib/launch4j/lib/foxtrot.LICENSE.txt" tofile="pkg-temp/licenses/LICENSE-Foxtrot.txt" />
1263        <copy file="installer/lib/launch4j/lib/JGoodies.Forms.LICENSE.txt" tofile="pkg-temp/licenses/LICENSE-JGoodies-Forms.txt" />
1264        <copy file="installer/lib/launch4j/lib/JGoodies.Looks.LICENSE.txt" tofile="pkg-temp/licenses/LICENSE-JGoodies-Looks.txt" />
1265        <copy file="installer/lib/launch4j/lib/XStream.LICENSE.txt" tofile="pkg-temp/licenses/LICENSE-XStream.txt" />
1266    </target>
1267
1268    <target name="prepthemeupdates">
1269        <copy todir="pkg-temp/docs/themes/" >
1270            <fileset dir="installer/resources/themes/" />
1271        </copy>
1272    </target>
1273
1274    <!-- SSL Certs -->
1275    <target name="prepCertificates">
1276        <copy todir="pkg-temp/certificates/" >
1277          <fileset dir="installer/resources/certificates/" />
1278        </copy>
1279    </target>
1280
1281    <condition property="no.bundle.routerInfos">
1282        <isfalse value="${bundle.routerInfos}" />
1283    </condition>
1284
1285    <target name="prepRouterInfos" depends="buildrouter, buildTools" unless="no.bundle.routerInfos">
1286        <delete dir="pkg-temp/netDb" />
1287        <mkdir dir="pkg-temp/netDb" />
1288        <java classname="net.i2p.router.networkdb.kademlia.BundleRouterInfos" fork="true" failonerror="true">
1289            <classpath>
1290                <pathelement location="build/i2p.jar" />
1291                <pathelement location="build/router.jar" />
1292                <pathelement location="build/tools.jar" />
1293            </classpath>
1294            <arg value="-i" />
1295            <arg value="${bundle.routerInfos.i2pConfigDir}" />
1296            <arg value="-o" />
1297            <arg value="pkg-temp/netDb" />
1298            <arg value="-c" />
1299            <arg value="${bundle.routerInfos.count}" />
1300        </java>
1301    </target>
1302
1303    <target name="-areRouterInfosEnabled">
1304        <fail message="Option requires &quot;bundle.routerInfos&quot; to be configured. Please read &quot;build.properties&quot; for more info." >
1305            <condition>
1306                <isfalse value="${bundle.routerInfos}" />
1307            </condition>
1308        </fail>
1309    </target>
1310
1311    <target name="i2pseeds" depends="-setepoch, -areRouterInfosEnabled, prepRouterInfos">
1312        <delete file="i2pseeds.zip" />
1313        <delete file="i2pseeds.su3" />
1314        <zip destfile="i2pseeds.zip" basedir="pkg-temp/netDb" whenempty="fail" />
1315        <su3sign infile="i2pseeds.zip" sigtype="RESEED" outfile="i2pseeds.su3" su3.ver="${epoch}" />
1316    </target>
1317
1318    <!-- this is no longer required, izpack 4.3.0 supports headless installs with java -jar i2pinstall.exe -console -->
1319    <!-- and this is no longer used by the SlackBuild -->
1320    <target name="tarball" depends="preppkg">
1321        <tar compression="bzip2" destfile="i2p.tar.bz2">
1322            <tarfileset dir="pkg-temp" includes="**/*" prefix="i2p" />
1323        </tar>
1324    </target>
1325
1326    <target name="deletepkg-temp">
1327        <delete dir="pkg-temp" />
1328    </target>
1329
1330    <!-- readme and proxy error page files, initialNews.xml files, GeoIP files, and flag icons -->
1331    <target name="prepConsoleDocs" depends="prepConsoleDocUpdates, prepgeoupdate" >
1332        <copy todir="pkg-temp/docs/initialNews/">
1333          <fileset dir="installer/resources/initialNews/" />
1334        </copy>
1335        <!-- ensure the proxy files have the correct line endings -->
1336        <fixcrlf srcdir="pkg-temp/docs" includes="*.ht" encoding="utf8" eol="crlf" />
1337    </target>
1338
1339    <!-- readme and proxy error page files -->
1340    <target name="prepConsoleDocUpdates">
1341        <copy todir="pkg-temp/docs/" >
1342          <fileset dir="installer/resources/readme/" includes="readme*.html" />
1343          <fileset dir="installer/resources/proxy/" includes="*.ht" />
1344          <!-- lang_ar.png added in 0.8.4; a1,a2,je, and eu.png added in 0.8.9; gg.png added in 0.8.10;
1345               im.png added in 0.8.12; cw.png added in 0.9.5; ap,bl,bq,ss,sx added in 0.9.21 -->
1346          <fileset dir="installer/resources/" includes="icons/flags/lang_ar.png icons/flags/gg.png icons/flags/je.png icons/flags/eu.png icons/flags/im.png icons/flags/a1.png icons/flags/a2.png icons/flags/cw.png icons/flags/ap.png icons/flags/bl.png icons/flags/bq.png icons/flags/ss.png icons/flags/sx.png" />
1347        </copy>
1348    </target>
1349
1350    <target name="consoleDocs" depends="deletepkg-temp, prepConsoleDocs">
1351        <zip destfile="docs.zip" basedir="pkg-temp" whenempty="fail" />
1352    </target>
1353
1354    <target name="copyJavadoc" depends="javadoc">
1355        <copy todir="pkg-temp/docs/javadoc" >
1356          <fileset dir="build/javadoc/" />
1357        </copy>
1358    </target>
1359
1360    <target name="updater200" depends="prepupdate, preplicenses, pack200, zipit200" />
1361    <target name="updater200WithJetty" depends="prepjupdate, preplicenses, pack200, zipit200" />
1362    <target name="updater200WithJettyAndGeoIP" depends="prepjupdate, prepgeoupdate, preplicenses, pack200, zipit200" />
1363    <target name="updater200WithJettyFixes" depends="prepjupdatefixes, preplicenses, pack200, zipit200" />
1364    <target name="updater200WithJettyFixesAndJbigi" depends="prepjupdatefixes, prepjbigiupdate, preplicenses, pack200, zipit200" />
1365    <target name="updater" depends="prepupdate, preplicenses, zipit" />
1366    <target name="updaterRepack" depends="prepupdate, preplicenses, repack200, zipit" />
1367    <target name="updaterWithJavadoc" depends="prepupdate, preplicenses, copyJavadoc, zipit" />
1368    <target name="updater200WithJavadoc" depends="prepupdate, preplicenses, copyJavadoc, pack200, zipit200" />
1369    <target name="updaterWithJavadocAndJetty" depends="prepjupdate, preplicenses, copyJavadoc, zipit" />
1370    <target name="updater200WithJavadocAndJetty" depends="prepjupdate, preplicenses, copyJavadoc, pack200, zipit200" />
1371    <target name="updaterWithGeoIP" depends="prepupdate, prepgeoupdate, preplicenses, zipit" />
1372    <target name="updaterWithJetty" depends="prepjupdate, preplicenses, zipit" />
1373    <target name="updaterWithJettyRepack" depends="prepjupdate, preplicenses, repack200, zipit" />
1374    <target name="updaterWithJettyAndGeoIPRepack" depends="prepjupdate, prepgeoupdate, preplicenses, repack200, zipit" />
1375    <target name="updaterWithJettyFixes" depends="prepjupdatefixes, preplicenses, zipit" />
1376    <target name="updaterWithJettyFixesAndJbigi" depends="prepjupdatefixes, prepjbigiupdate, preplicenses, zipit" />
1377    <target name="updaterWithJettyFixesAndGeoIP" depends="prepjupdatefixes, prepgeoupdate, preplicenses, zipit" />
1378    <target name="updaterSmall" depends="prepupdateSmall, zipit" />
1379    <target name="updaterRouter" depends="prepupdateRouter, zipit" />
1380
1381    <target name="-sign-update" depends="buildrouter">
1382        <su3sign infile="i2pupdate200.zip" sigtype="ROUTER" outfile="i2pupdate.su3" su3.ver="${full.version}" />
1383    </target>
1384
1385    <target name="signed-updater200" depends="-pre-sign, updater200, -sign-update" />
1386    <target name="signed-updater200WithJetty" depends="-pre-sign, updater200WithJetty, -sign-update" />
1387    <target name="signed-updater200WithJettyAndGeoIP" depends="-pre-sign, updater200WithJettyAndGeoIP, -sign-update" />
1388    <target name="signed-updater200WithJavadoc" depends="-pre-sign, updater200WithJavadoc, -sign-update" />
1389    <target name="signed-updater200WithJavadocAndJetty" depends="-pre-sign, updater200WithJavadocAndJetty, -sign-update" />
1390
1391    <target name="zipit" depends="getReleaseNumber">
1392        <!--
1393             As of release 0.8.8, the router will enforce a zipfile comment equal to the
1394             version number in the sud/su2 header, since the version in the header is NOT
1395             covered by the signature.
1396         -->
1397        <zip destfile="i2pupdate.zip" basedir="pkg-temp" whenempty="fail" comment="${release.number}" />
1398       <!-- just a test, makes almost no difference
1399        <tar destfile="i2pupdate.tgz" basedir="pkg-temp" compression="gzip" />
1400        <tar destfile="i2pupdate.tbz" basedir="pkg-temp" compression="bzip2" />
1401       -->
1402    </target>
1403
1404    <target name="zipit200" depends="getReleaseNumber" >
1405        <zip destfile="i2pupdate200.zip" basedir="pkg-temp" whenempty="fail" comment="${release.number}" />
1406    </target>
1407
1408    <target name="pack200">
1409        <!-- pack200 will only pack to a .pack file, and only from a .jar file, so we put another .jar on the end -->
1410        <!-- can't pack an empty jar or one without classes, it will fail to unpack on Java 5;
1411          -  see http://bugs.sun.com/view_bug.do?bug_id=6712743
1412          -->
1413        <!-- *nix here -->
1414        <exec executable="sh" osfamily="unix" failonerror="true">
1415            <arg value="-c" />
1416            <arg value="for i in pkg-temp/lib/*.jar pkg-temp/webapps/*war; do if [ $i = pkg-temp/lib/jasper-compiler.jar -o $i = pkg-temp/lib/jbigi.jar -o $i = pkg-temp/lib/jetty-java5-threadpool.jar -o $i = pkg-temp/lib/jetty-sslengine.jar ]; then continue; fi; echo pack200 $i; mv $i $i.jar; pack200 -g $i.pack $i.jar; rm -f $i.jar; done" />
1417        </exec>
1418        <exec executable="sh" osfamily="mac" failonerror="true">
1419            <arg value="-c" />
1420            <arg value="for i in pkg-temp/lib/*.jar pkg-temp/webapps/*war; do if [ $i = pkg-temp/lib/jasper-compiler.jar -o $i = pkg-temp/lib/jbigi.jar -o $i = pkg-temp/lib/jetty-java5-threadpool.jar -o $i = pkg-temp/lib/jetty-sslengine.jar ]; then continue; fi; echo pack200 $i; mv $i $i.jar; pack200 -g $i.pack $i.jar; rm -f $i.jar; done" />
1421        </exec>
1422        <!-- windoz here : i admit, i hate escaped symbols in xml, indeed = =! -->
1423        <exec executable="cmd" osfamily="windows" failonerror="true">
1424            <arg value="/c" />
1425            <!-- TODO implement fix above -->
1426            <arg value="for %i in (pkg-temp\webapps\*.war) do move %i %i.jar &amp;&amp; pack200 -g pkg-temp\webapps\%~ni.war.pack %i.jar &amp;&amp; del %i.jar" />
1427        </exec>
1428        <exec executable="cmd" osfamily="windows" failonerror="true">
1429                <arg value="/c" />
1430                <arg value="for %i in (pkg-temp\lib\*.jar) do pack200 -g %i.pack %i &amp;&amp; del %i" />
1431        </exec>
1432    </target>
1433
1434    <!-- saves about 1% on average (more on jars with multiple compiled po files since they have lots of common strings) -->
1435    <target name="repack200">
1436        <!-- pack200 will only repack a .jar file, so we put another .jar on the end -->
1437        <!-- *nix here -->
1438        <exec executable="sh" osfamily="unix" failonerror="true">
1439            <arg value="-c" />
1440            <arg value="for i in pkg-temp/lib/*.jar pkg-temp/webapps/*war; do echo pack200 -r $i; mv $i $i.jar; pack200 -r $i.jar; mv $i.jar $i; done" />
1441        </exec>
1442        <exec executable="sh" osfamily="mac" failonerror="true">
1443            <arg value="-c" />
1444            <arg value="for i in pkg-temp/lib/*.jar pkg-temp/webapps/*war; do echo pack200 -r $i; mv $i $i.jar; pack200 -r $i.jar; mv $i.jar $i; done" />
1445        </exec>
1446        <!-- windoz here : i admit, i hate escaped symbols in xml, indeed = =! -->
1447        <exec executable="cmd" osfamily="windows" failonerror="true">
1448            <arg value="/c" />
1449            <arg value="for %i in (pkg-temp\webapps\*.war) do move %i %i.jar &amp;&amp; pack200 -r %i.jar &amp;&amp; move %i.jar %i" />
1450        </exec>
1451        <exec executable="cmd" osfamily="windows" failonerror="true">
1452                <arg value="/c" />
1453                <arg value="for %i in (pkg-temp\lib\*.jar) do pack200 -r %i" />
1454        </exec>
1455    </target>
1456
1457    <target name="prepupdate" depends="build2, prepupdateSmall, prepConsoleDocUpdates, prepCertificates, prep-script-translation">
1458        <copy file="build/BOB.jar" todir="pkg-temp/lib/" />
1459        <copy file="build/sam.jar" todir="pkg-temp/lib/" />
1460        <copy file="build/i2psnark.jar" todir="pkg-temp/lib" />
1461        <!-- include systray changes in 0.7.5 -->
1462        <copy file="build/systray.jar" todir="pkg-temp/lib/" />
1463       <!-- removed from updater in 0.9
1464        <copy file="build/desktopgui.jar" todir="pkg-temp/lib/" />
1465       -->
1466        <copy file="build/susimail.war" todir="pkg-temp/webapps/" />
1467        <copy file="build/susidns.war" todir="pkg-temp/webapps/" />
1468        <copy file="build/imagegen.war" todir="pkg-temp/webapps/" />
1469        <!-- as of 0.7.12; someday, we can remove these from the updater -->
1470        <copy file="apps/susidns/src/lib/jstl.jar" todir="pkg-temp/lib/" />
1471        <copy file="apps/susidns/src/lib/standard.jar" todir="pkg-temp/lib/" />
1472        <copy file="build/i2psnark.war" todir="pkg-temp/webapps/" />
1473        <copy file="history.txt" todir="pkg-temp/" />
1474        <!-- the following overwrites history.txt on unix to shrink the update file -->
1475        <copy file="history.txt" tofile="pkg-temp/history.txt" overwrite="true">
1476            <filterchain>
1477                <headfilter lines="1500" />
1478            </filterchain>
1479        </copy>
1480        <concat append="true" destfile="pkg-temp/history.txt">&#10;&#10;----------------&#10;&#10;EARLIER HISTORY IS AVAILABLE IN THE SOURCE PACKAGE"</concat>
1481        <copy file="installer/resources/deletelist.txt" todir="pkg-temp/" />
1482        <copy file="installer/resources/blocklist.txt" todir="pkg-temp/" />
1483        <copy todir="pkg-temp/man/">
1484            <fileset dir="installer/resources/man/" />
1485        </copy>
1486    </target>
1487
1488    <target name="prepupdateSmall" depends="buildSmall, prepupdateRouter, prepjupdatefixes, prepthemeupdates">
1489        <copy file="build/i2ptunnel.jar" todir="pkg-temp/lib/" />
1490        <copy file="build/mstreaming.jar" todir="pkg-temp/lib/" />
1491        <copy file="build/streaming.jar" todir="pkg-temp/lib/" />
1492        <copy file="build/routerconsole.jar" todir="pkg-temp/lib/" />
1493        <!-- pulled out of routerconsole.jar in 0.7.12, someday we can take out of updater -->
1494        <!-- name without version so we can overwrite if we upgrade  -->
1495        <copy file="build/jrobin.jar" tofile="pkg-temp/lib/jrobin.jar" />
1496        <copy file="build/i2ptunnel.war" todir="pkg-temp/webapps/" />
1497        <copy file="build/routerconsole.war" todir="pkg-temp/webapps/" />
1498        <copy file="build/addressbook.war" todir="pkg-temp/webapps/" />
1499        <!-- decapitalized the file in 0.7.8 -->
1500        <copy file="installer/resources/countries.txt" todir="pkg-temp/geoip/" />
1501        <!-- small enough to include for now -->
1502        <copy file="installer/resources/geoipv6.dat.gz" todir="pkg-temp/geoip/" />
1503        <copy file="installer/resources/continents.txt" todir="pkg-temp/geoip/" />
1504      <!--
1505        <copy file="installer/resources/public-suffix-list.txt" todir="pkg-temp/geoip/" />
1506       -->
1507    </target>
1508
1509    <target name="prepupdateRouter" depends="buildrouter, deletepkg-temp">
1510        <copy file="build/i2p.jar" todir="pkg-temp/lib/" />
1511        <copy file="build/router.jar" todir="pkg-temp/lib/" />
1512    </target>
1513
1514    <!-- jbigi.jar -->
1515    <target name="prepjbigiupdate" depends="jbigi">
1516        <copy file="build/jbigi.jar" todir="pkg-temp/lib/" />
1517    </target>
1518
1519    <!-- GeoIP files -->
1520    <target name="prepgeoupdate" depends="prepgeoupdate-unlesspkg" >
1521        <copy file="installer/resources/countries.txt" todir="pkg-temp/geoip/" />
1522        <copy file="installer/resources/continents.txt" todir="pkg-temp/geoip/" />
1523      <!--
1524        <copy file="installer/resources/public-suffix-list.txt" todir="pkg-temp/geoip/" />
1525       -->
1526    </target>
1527
1528    <!-- GeoIP files, set withGeoIPDatabase=true in override.properties to prevent -->
1529    <!-- As of 0.9.26, the files are not included in Debian/Ubuntu builds. -->
1530    <target name="prepgeoupdate-unlesspkg" unless="${with-geoip-database}" >
1531        <copy file="installer/resources/geoip.txt" todir="pkg-temp/geoip/" />
1532        <copy file="installer/resources/geoipv6.dat.gz" todir="pkg-temp/geoip/" />
1533    </target>
1534
1535    <!-- All jetty jars required for update.
1536         TODO do we need to bother updating jasper?
1537      -->
1538    <target name="prepjupdate" depends="prepupdate, buildWEB">
1539        <copy todir="pkg-temp/lib" >
1540            <fileset dir="build" includes="commons*.jar jasper*.jar javax*.jar jetty*.jar jsp*.jar org.mortbay.*.jar" />
1541        </copy>
1542        <!--  We have to package the new eepsite files for MigrateJetty.java, but we
1543              can't overwrite an existing eepsite dir in a non-split configuration.
1544          -->
1545        <copy todir="pkg-temp/eepsite-jetty7" >
1546            <fileset dir="installer/resources/eepsite" includes="*.xml contexts/* etc/*" />
1547        </copy>
1548    </target>
1549
1550    <target name="delete-j6-update">
1551        <delete dir="pkg-temp/eepsite-jetty7" />
1552    </target>
1553
1554    <!-- Jetty 6 I2P logging addons, not really fixes -->
1555    <target name="prepjupdatefixes" depends="buildWEB">
1556        <copy file="build/jetty-i2p.jar" todir="pkg-temp/lib/" />
1557    </target>
1558
1559    <target name="util-list-changes" depends="checkForMtn" if="mtn.available" >
1560        <exec executable="mtn" outputproperty="workspace.changes.util" errorproperty="mtn.error.util" failifexecutionfails="false" >
1561            <arg value="list" />
1562            <arg value="changed" />
1563            <arg value="core/java/src/net/i2p/util" />
1564        </exec>
1565        <!-- \n in an attribute value generates an invalid manifest -->
1566        <exec executable="tr" inputstring="${workspace.changes.util}" outputproperty="workspace.changes.util.tr" errorproperty="mtn.error2" failifexecutionfails="false" >
1567            <arg value="-s" />
1568            <arg value="[:space:]" />
1569            <arg value="," />
1570        </exec>
1571    </target>
1572
1573    <target name="izpack-patches" >
1574            <taskdef name="izpack"
1575                     classpath="${basedir}/installer/lib/izpack/patches.jar:${basedir}/installer/lib/izpack/standalone-compiler.jar"
1576                     classname="com.izforge.izpack.ant.IzPackTask" />
1577        <jar destfile="${basedir}/installer/lib/izpack/patches.jar"
1578             basedir="${basedir}/installer/lib/izpack/patches" />
1579    </target>
1580
1581    <target name="buildUtilityJar" depends="buildCore">
1582        <ant dir="installer/java" target="build" />
1583    </target>
1584
1585    <target name="installer" depends="preppkg, buildProperties, util-list-changes, izpack-patches, buildUtilityJar" >
1586        <!--
1587          Force 1.5 pack200 output
1588          Doesnt work!
1589          http://jira.codehaus.org/browse/IZPACK-404
1590          http://forums.sun.com/thread.jspa?threadID=773439
1591          http://bfo.co.uk/blog/2010/05/13/combining_ant_jar_signatures_and_pack200.html
1592        <property name="com.sun.java.util.jar.pack.package.majver" value="150" />
1593        <property name="com.sun.java.util.jar.pack.package.minver" value="7" />
1594        -->
1595        <izpack input="${basedir}/installer/install.xml" output="${basedir}/install.jar" installerType="standard" basedir="${basedir}" />
1596
1597        <ant target="installerexe" />
1598    </target>
1599
1600    <!-- this makes i2pinstall.exe from install.jar -->
1601    <target name="installerexe" depends="launch4j" unless="noExe">
1602        <echo message="See the file &quot;build.properties&quot; if this step fails." />
1603        <!-- now the installer exe -->
1604        <launch4j configFile="./installer/i2pinstaller.xml" />
1605        <!-- thazzit -->
1606    </target>
1607
1608    <!-- Custom installers -->
1609    <target name="installer-nowindows" depends="clean, preppkg-nowindows, izpack-patches" >
1610        <fixcrlf srcdir="pkg-temp" includes="*.config **/*.xml **/*.properties **/*.txt scripts/*" encoding="utf8" eol="lf" />
1611        <izpack input="${basedir}/installer/install.xml" output="${basedir}/i2pinstall_${full.version}.jar" installerType="standard" basedir="${basedir}" />
1612    </target>
1613
1614
1615    <target name="installer-freebsd" depends="clean, preppkg-freebsd-only, izpack-patches" >
1616        <fixcrlf srcdir="pkg-temp" includes="*.config **/*.xml **/*.properties **/*.txt scripts/*" encoding="utf8" eol="lf" />
1617        <izpack input="${basedir}/installer/install.xml" output="${basedir}/i2pinstall_${full.version}_freebsd-only.jar" installerType="standard" basedir="${basedir}" />
1618    </target>
1619
1620    <target name="installer-linux" depends="clean, preppkg-linux-only, izpack-patches" >
1621        <fixcrlf srcdir="pkg-temp" includes="*.config **/*.xml **/*.properties **/*.txt scripts/*" encoding="utf8" eol="lf" />
1622        <izpack input="${basedir}/installer/install.xml" output="${basedir}/i2pinstall_${full.version}_linux-only.jar" installerType="standard" basedir="${basedir}" />
1623    </target>
1624
1625
1626    <target name="installer-osx" depends="clean, checkForIzpack2App, preppkg-osx-only, izpack-patches">
1627        <fixcrlf srcdir="pkg-temp" includes="*.config **/*.xml **/*.properties **/*.txt scripts/*" encoding="utf8" eol="lf" />
1628        <mkdir dir="pkg-temp/osx" />
1629        <izpack input="${basedir}/installer/install.xml" output="${basedir}/i2pinstall_${full.version}_osx-only.jar" installerType="standard" basedir="${basedir}" />
1630        <ant target="installer2app" />
1631        <delete dir="pkg-temp/osx" />
1632    </target>
1633
1634    <target name="checkForIzpack2App">
1635        <!-- we'll set the izpack2app binary name if it's not been set elsewhere yet -->
1636        <property name="izpack2app.binary" value="${user.home}/IzPack/utils/wrappers/izpack2app/izpack2app.py" />
1637        <available property="izpack2app.available" file="${izpack2app.binary}" />
1638    </target>
1639
1640    <target name="installer2app" if="izpack2app.available">
1641        <mkdir dir="pkg-temp/osx" />
1642        <exec executable="python" failonerror="true">
1643            <arg value="${izpack2app.binary}" />
1644            <arg value="${basedir}/i2pinstall_${full.version}_osx-only.jar" />
1645            <arg value="${basedir}/pkg-temp/osx/i2p-${full.version}_osx-install.app" />
1646        </exec>
1647
1648        <tar longfile="gnu" destfile="${basedir}/i2pinstall_${full.version}_osx.tar.bz2" compression="bzip2">
1649            <tarfileset dir="${basedir}/pkg-temp/osx/i2p-${full.version}_osx-install.app" prefix="/i2p-${full.version}_osx-install.app" filemode="644">
1650                <include name="**/**" />
1651                <exclude name="Contents/MacOS/*" />
1652            </tarfileset>
1653            <tarfileset dir="${basedir}/pkg-temp/osx/i2p-${full.version}_osx-install.app" prefix="/i2p-${full.version}_osx-install.app" filemode="755">
1654                <include name="Contents/MacOS/*" />
1655            </tarfileset>
1656        </tar>
1657    </target>
1658
1659    <!-- call between installer-xxx and installer-windows -->
1660    <target name="delete-nonwindows">
1661        <delete dir="pkg-temp/lib/wrapper/" />
1662        <delete dir="pkg-temp/locale/" />
1663        <delete dir="pkg-temp/man/" />
1664        <delete dir="pkg-temp/Start I2P Router.app/" />
1665        <delete dir="pkg-temp" includes="eepget i2prouter INSTALL-headless.txt osid postinstall.sh runplain.sh" />
1666    </target>
1667
1668    <target name="installer-windows" depends="clean, preppkg-windows-only, util-list-changes, izpack-patches, buildUtilityJar" >
1669        <fixcrlf srcdir="pkg-temp" includes="*.config *.bat *.cmd **/*.xml **/*.properties **/*.txt scripts/*" encoding="utf8" eol="crlf"/>
1670        <izpack input="${basedir}/installer/install.xml" output="${basedir}/install.jar" installerType="standard" basedir="${basedir}" />
1671        <ant target="installerexe" />
1672        <delete file="${basedir}/install.jar" />
1673        <move file="${basedir}/i2pinstall.exe" tofile="${basedir}/i2pinstall_${full.version}_windows.exe" />
1674    </target>
1675
1676    <!-- this is broken as installer-xxx targets may delete (or not delete) things in pkg-temp -->
1677    <target name="installer-all" depends="installer-freebsd, installer-linux, installer-osx, installer-windows, installer-nowindows, installer" >
1678    </target>
1679    <!-- end custom installers -->
1680
1681    <!-- unit tests -->
1682    <target name="buildTest">
1683        <ant dir="core/java/" target="jarTest" />
1684        <ant dir="router/java/" target="jarTest" />
1685        <copy file="core/java/build/i2ptest.jar" todir="build" />
1686        <copy file="router/java/build/routertest.jar" todir="build" />
1687        <!-- broken -->
1688      <!--
1689        <ant dir="apps/ministreaming/java/" target="junit.compileTest" />
1690        <ant dir="apps/streaming/java/" target="junit.compileTest" />
1691       -->
1692    </target>
1693    <target name="prepTest" depends="prepupdate, buildTest">
1694        <!-- overwrite i2p.jar and router.jar with the test versions -->
1695        <copy file="build/i2ptest.jar" tofile="pkg-temp/lib/i2p.jar" overwrite="true" />
1696        <copy file="build/routertest.jar" tofile="pkg-temp/lib/router.jar" overwrite="true" />
1697    </target>
1698    <target name="updateTest" depends="prepTest, zipit" />
1699    <target name="junit.test" depends="buildProperties, jbigi" >
1700        <ant dir="core/java/" target="junit.test" />
1701        <ant dir="router/java/" target="junit.test" />
1702        <ant dir="apps/ministreaming/java/" target="junit.test" />
1703        <ant dir="apps/streaming/java/" target="junit.test" />
1704    </target>
1705    <target name="scalatest.test" depends="buildProperties, jbigi" >
1706        <ant dir="core/java/" target="scalatest.test" />
1707        <!-- note there are no router scala tests yet -->
1708        <ant dir="router/java/" target="scalatest.test" />
1709    </target>
1710    <target name="test" depends="buildProperties, jbigi" >
1711        <!-- both junit and scala -->
1712        <ant dir="core/java/" target="test" />
1713        <ant dir="router/java/" target="test" />
1714        <ant dir="apps/ministreaming/java/" target="test" />
1715        <ant dir="apps/streaming/java/" target="test" />
1716    </target>
1717    <target name="scalatest.report" depends="buildProperties" >
1718        <ant dir="core/java/" target="scalatest.report" />
1719        <ant dir="router/java/" target="scalatest.report" />
1720    </target>
1721    <target name="junit.report" depends="buildProperties" >
1722        <ant dir="core/java/" target="junit.report" />
1723        <ant dir="router/java/" target="junit.report" />
1724        <ant dir="apps/ministreaming/java/" target="junit.report" />
1725        <ant dir="apps/streaming/java/" target="junit.report" />
1726    </target>
1727    <target name="clover.report" depends="buildProperties" if="with.clover">
1728        <ant dir="core/java/" target="clover.report" />
1729        <ant dir="router/java/" target="clover.report" />
1730        <ant dir="apps/ministreaming/java" target="clover.report" />
1731        <ant dir="apps/streaming/java" target="clover.report" />
1732    </target>
1733    <target name="cobertura.report" depends="buildProperties" if="with.cobertura">
1734        <ant dir="core/java/" target="cobertura.report" />
1735        <ant dir="router/java/" target="cobertura.report" />
1736        <ant dir="apps/ministreaming/java" target="cobertura.report" />
1737        <ant dir="apps/streaming/java" target="cobertura.report" />
1738    </target>
1739    <target name="test.report" depends="junit.report, scalatest.report, clover.report, cobertura.report"/>
1740    <target name="fulltest" depends="buildProperties, jbigi" >
1741        <ant dir="core/java/" target="fulltest" />
1742        <ant dir="router/java/" target="fulltest" />
1743        <ant dir="apps/ministreaming/java" target="fulltest" />
1744        <ant dir="apps/streaming/java" target="fulltest" />
1745    </target>
1746    <target name="jenkins.cobertura.report" depends="cobertura.report">
1747        <!--
1748             The jenkins cobertura plugin couldn't find the source files.
1749         -->
1750        <replaceregexp byline="true" file="reports/core/cobertura/coverage.xml"
1751            match='filename="net' replace='filename="core/java/src/net'/>
1752        <replaceregexp byline="true" file="reports/core/cobertura/coverage.xml"
1753            match="&lt;source&gt;./src" replace='&lt;source&gt;./core/java/src'/>
1754
1755        <replaceregexp byline="true" file="reports/router/cobertura/coverage.xml"
1756            match='filename="net' replace='filename="router/java/src/net'/>
1757        <replaceregexp byline="true" file="reports/router/cobertura/coverage.xml"
1758            match="&lt;source&gt;./src" replace="&lt;source&gt;router/java/src"/>
1759
1760        <replaceregexp byline="true" file="reports/ministreaming/cobertura/coverage.xml"
1761            match='filename="net' replace='filename="apps/ministreaming/java/src/net'/>
1762        <replaceregexp byline="true" file="reports/ministreaming/cobertura/coverage.xml"
1763            match="&lt;source&gt;./src" replace="&lt;source&gt;apps/ministreaming/java/src"/>
1764
1765        <replaceregexp byline="true" file="reports/streaming/cobertura/coverage.xml"
1766            match='filename="net' replace='filename="apps/streaming/java/src/net'/>
1767        <replaceregexp byline="true" file="reports/streaming/cobertura/coverage.xml"
1768            match="&lt;source&gt;./src" replace="&lt;source&gt;apps/streaming/java/src"/>
1769    </target>
1770    <!-- end unit tests -->
1771
1772    <target name="testscripts" >
1773        <exec executable="tests/scripts/checkcerts.sh" failonerror="true" />
1774        <exec executable="tests/scripts/checkpo.sh" failonerror="true" />
1775        <exec executable="tests/scripts/checkutf8.sh" failonerror="true" />
1776        <exec executable="tests/scripts/checkxml.sh" failonerror="true" />
1777        <exec executable="tests/scripts/checkscripts.sh" failonerror="true" />
1778    </target>
1779
1780
1781    <target name="testscripts-net" >
1782        <exec executable="tests/scripts/checkremotecerts.sh" failonerror="true" />
1783    </target>
1784
1785    <target name="testscripts-all" depends="testscripts,testscripts-net" />
1786
1787    <!-- <target name="syndie" >
1788        <ant dir="apps/syndie/java/" target="standalone" />
1789        <copy file="apps/syndie/java/syndie-standalone.zip" todir="." />
1790    </target> -->
1791    <target name="i2psnark" depends="buildProperties" >
1792        <ant dir="apps/i2psnark/java" target="standalone" />
1793        <copy file="apps/i2psnark/java/i2psnark-standalone.zip" todir="." />
1794    </target>
1795    <target name="slackpkg">
1796        <ant dir="Slackware/i2p/" target="slackpkg" />
1797    </target>
1798    <target name="justBOB" depends="builddepSmall, jbigi">
1799        <ant dir="apps/BOB/" target="onejar" />
1800        <copy file="apps/BOB/dist/BOB-one.jar" todir="." />
1801    </target>
1802
1803    <target name="sloccount.report">
1804        <property name="sloccount.report.file" value="sloccount.sc" />
1805        <echo message="Generating sloccount report (this will take awhile)" />
1806        <exec executable="sloccount" failonerror="true">
1807            <arg value="--details"/>
1808            <arg value="--wide"/>
1809            <arg value="${basedir}"/>
1810            <redirector output="${sloccount.report.file}">
1811                <outputfilterchain>
1812                    <linecontainsregexp negate="true">
1813                        <regexp pattern="(Warning: |lib/launch4j|_MTN|reports|pkg-temp|licenses|i2p\.fba|gmp-|WEB-INF)" />
1814                    </linecontainsregexp>
1815                    <linecontains negate="true">
1816                        <contains value="${sloccount.report.file}" />
1817                    </linecontains>
1818                </outputfilterchain>
1819            </redirector>
1820        </exec>
1821        <echo message="sloccount report saved to the file &quot;${sloccount.report.file}&quot;" />
1822    </target>
1823
1824    <target name="findbugs" depends="build2, buildUtilityJar">
1825        <echo message="Starting findbugs, this will take a while..." />
1826        <exec executable="nice" failonerror="true">
1827            <arg value="findbugs"/>
1828            <arg value="-textui"/>
1829            <arg value="-projectName"/>
1830            <arg value="i2p"/>
1831            <arg value="-sortByClass"/>
1832            <arg value="-xml"/>
1833            <arg value="-output"/>
1834            <arg value="i2p.fba"/>
1835            <arg value="-auxclasspath"/>
1836            <arg value="build/commons-el.jar:build/commons-logging.jar:build/jasper-runtime.jar:build/javax.servlet.jar:build/org.mortbay.jetty.jar:apps/jrobin/jrobin-1.5.9.1.jar:apps/systray/java/lib/systray4j.jar:installer/lib/wrapper/all/wrapper.jar:apps/susidns/src/lib/standard.jar:apps/susidns/src/lib/jstl.jar:apps/jrobin/jrobin-1.5.9.1.jar"/>
1837            <arg value="-sourcepath"/>
1838            <arg value="apps/BOB/src/:apps/addressbook/java/src/:apps/i2psnark/java/src/:apps/i2ptunnel/java/src/:apps/ministreaming/java/src/:apps/routerconsole/java/src/:apps/sam/java/src/:apps/streaming/java/src/:apps/susidns/src/java/src/:apps/susimail/src/src/:apps/systray/java/src/:core/java/src/:router/java/src/:installer/java/src"/>
1839            <!-- start of the files to be analyzed -->
1840            <arg value="build/BOB.jar"/>
1841            <arg value="build/addressbook.jar"/>
1842            <arg value="build/addressbook.war"/>
1843            <arg value="build/i2p.jar"/>
1844            <arg value="build/i2psnark.jar"/>
1845            <arg value="build/i2psnark.war"/>
1846            <arg value="build/i2ptunnel.jar"/>
1847            <arg value="build/i2ptunnel.war"/>
1848            <arg value="build/imagegen.war"/>
1849            <arg value="build/jetty-i2p.jar"/>
1850            <arg value="build/mstreaming.jar"/>
1851            <arg value="build/router.jar/"/>
1852            <arg value="build/desktopgui.jar"/>
1853            <arg value="build/routerconsole.jar"/>
1854            <arg value="build/routerconsole.war"/>
1855            <arg value="build/sam.jar"/>
1856            <arg value="build/streaming.jar"/>
1857            <arg value="build/susidns.war"/>
1858            <arg value="build/susimail.war"/>
1859            <arg value="build/systray.jar"/>
1860            <arg value="build/utility.jar"/>
1861        </exec>
1862        <echo message="Findbugs output stored in i2p.fba" />
1863        <echo message="Now run: findbugs i2p.fba" />
1864    </target>
1865
1866    <!-- this is the same dependency as pkg, but with updater200 in the middle,
1867         since preppkg puts too much stuff in pkg-temp -->
1868<!--
1869    <target name="release" depends="distclean, updaterWithJettyFixesAndJbigi , updater200WithJettyFixes, preppkg, installer, getReleaseNumber" >
1870    <target name="release" depends="verifyReleaseBuildNumbers, -pre-release, distclean, testscripts, updaterWithJettyAndGeoIPRepack, updater200WithJettyAndGeoIP, delete-j6-update, installer-nowindows, delete-nonwindows, installer-windows">
1871-->
1872    <target name="release" depends="verifyReleaseBuildNumbers, -pre-release, distclean, testscripts, updaterWithJettyRepack, updater200WithJetty, delete-j6-update, installer-nowindows, delete-nonwindows, installer-windows">
1873        <echo message="New version number is ${release.number}" />
1874        <copy file="i2pupdate.zip" tofile="i2pupdate_${release.number}.zip" />
1875        <copy file="i2pinstall_${full.version}.jar" tofile="i2pinstall_${release.number}.jar" />
1876        <copy file="i2pinstall_${full.version}_windows.exe" tofile="i2pinstall_${release.number}_windows.exe" />
1877        <!-- remove these, we don't build them anymore -->
1878        <delete file="i2pupdate.sud" />
1879        <delete file="i2pupdate.su2" />
1880        <!-- make this a lot easier by putting release.privkey.su3=/path/to/su3keystore.ks in override.properties -->
1881
1882        <!-- now build and verify the packed su3 from the packed zip -->
1883        <su3sign infile="i2pupdate200.zip" sigtype="ROUTER" outfile="i2pupdate.su3" su3.ver="${release.number}" />
1884        <!-- this will use the monotonerc file in the current workspace -->
1885        <echo message="Checking out fresh copy into ../i2p-${release.number} for tarballing:" />
1886        <delete dir="../i2p-${release.number}" />
1887        <exec executable="mtn" failonerror="true">
1888            <arg value="co" />
1889            <!-- w: is the revision of the current workspace -->
1890            <arg value="-r" />
1891            <arg value="w:" />
1892            <arg value="../i2p-${release.number}/" />
1893        </exec>
1894        <exec executable="tar" failonerror="true">
1895            <arg value="cjf" />
1896            <arg value="i2psource_${release.number}.tar.bz2" />
1897            <arg value="-C" />
1898            <arg value=".." />
1899            <arg value="--exclude" />
1900            <arg value="i2p-${release.number}/_MTN*" />
1901            <arg value="i2p-${release.number}/" />
1902        </exec>
1903        <echo message="Sign the files:" />
1904        <input message="Enter GPG key ID (e.g. 0x12345678) for signing:" addproperty="release.gpg.keyid" />
1905        <fail message="You must enter a key ID." >
1906            <condition>
1907                <equals arg1="${release.gpg.keyid}" arg2=""/>
1908            </condition>
1909        </fail>
1910
1911        <!-- the gpgsign macro sets the permission of signed files and the sigs themselves to 444 -->
1912        <gpgsign file="i2pinstall_${release.number}_windows.exe" />
1913        <gpgsign file="i2pinstall_${release.number}.jar" />
1914        <gpgsign file="i2psource_${release.number}.tar.bz2" />
1915        <gpgsign file="i2pupdate_${release.number}.zip" />
1916
1917        <chmod perm="444" type="file">
1918            <fileset dir="${basedir}">
1919                <include name="i2pupdate.su3" />
1920            </fileset>
1921        </chmod>
1922        <echo message="File sizes:" />
1923        <exec executable="ls" failonerror="true">
1924            <arg value="-l" />
1925            <arg value="i2pinstall_${release.number}_windows.exe" />
1926            <arg value="i2pinstall_${release.number}.jar" />
1927            <arg value="i2psource_${release.number}.tar.bz2" />
1928            <arg value="i2pupdate_${release.number}.zip" />
1929            <arg value="i2pupdate.su3" />
1930            <arg value="i2pinstall_${release.number}_windows.exe.sig" />
1931            <arg value="i2pinstall_${release.number}.jar.sig" />
1932            <arg value="i2psource_${release.number}.tar.bz2.sig" />
1933            <arg value="i2pupdate_${release.number}.zip.sig" />
1934        </exec>
1935        <echo message="SHA256 sums:" />
1936        <sha256sum file="i2pinstall_${release.number}_windows.exe" />
1937        <sha256sum file="i2pinstall_${release.number}.jar" />
1938        <sha256sum file="i2psource_${release.number}.tar.bz2" />
1939        <sha256sum file="i2pupdate_${release.number}.zip" />
1940        <sha256sum file="i2pupdate.su3" />
1941        <!-- make torrent files -->
1942        <copy file="i2pupdate.su3" tofile="i2pupdate-${release.number}.su3" />
1943        <mktorrent file="i2pupdate-${release.number}.su3" />
1944        <echo message="Don't forget to mtn tag w: i2p-${release.number}" />
1945        <echo message="... and mtn cert t:i2p-${release.number} branch i2p.i2p.release" />
1946    </target>
1947
1948    <target name="debian" depends="debian-clean, debchange, debian-binary" />
1949
1950    <target name="getExtendedVersion" depends="buildProperties, trimMtnRev">
1951        <property name="MtnShortHash" value="unknown" />
1952        <condition property="Extended.Version" value="${full.version}-${MtnShortHash}">
1953            <not>
1954                <or>
1955                    <equals arg1="${MtnShortHash}" arg2="" />
1956                    <equals arg1="${MtnShortHash}" arg2="unknown" />
1957                </or>
1958            </not>
1959        </condition>
1960        <!-- if not set above we'll set it here -->
1961        <property name="Extended.Version" value="${full.version}" />
1962    </target>
1963
1964    <target name="debchange" depends="getExtendedVersion" unless="noAutoDebchange">
1965        <echo message= "Debian version is ${Extended.Version}-1" />
1966        <exec executable="dch" failonerror="true">
1967            <arg value="-b" />
1968            <arg value="--check-dirname-level" />
1969            <arg value="0" />
1970            <arg value="-v" />
1971            <arg value="${Extended.Version}-1" />
1972            <arg value="Unofficial Debian package built using &quot;ant debian&quot;" />
1973        </exec>
1974    </target>
1975
1976    <target name="debian-binary" depends="getExtendedVersion">
1977        <exec executable="fakeroot" failonerror="true">
1978            <arg value="debian/rules" />
1979            <arg value="patch" />
1980            <arg value="binary" />
1981            <arg value="clean" />
1982        </exec>
1983        <delete dir=".pc" />
1984        <move todir=".">
1985            <fileset dir=".." includes="libjbigi*${release.number}*.deb i2p*${release.number}*.deb" />
1986        </move>
1987        <echo message="" />
1988        <echo message="====================" />
1989        <echo message="Packages have been built and moved to ${basedir}" />
1990        <echo message="====================" />
1991    </target>
1992
1993    <target name="debian-clean" depends="getExtendedVersion" >
1994        <exec executable="fakeroot" failonerror="true">
1995            <arg value="debian/rules" />
1996            <arg value="clean" />
1997        </exec>
1998        <delete dir="./.pc" />
1999    </target>
2000
2001    <target name="debian-tarball" depends="getExtendedVersion">
2002        <!-- this will use the monotonerc file in the current workspace -->
2003        <fail message="This target cannot be used without Monotone! Use &quot;fakeroot debian/rules get-orig-source&quot; instead.">
2004            <condition>
2005                <not>
2006                    <isset property="mtn.available" />
2007                </not>
2008            </condition>
2009        </fail>
2010        <property name="debian.tarball.name" value="i2p_${Extended.Version}.orig.tar.bz2" />
2011        <echo message="Checking out fresh copy into ../i2p-${Extended.Version} for tarballing:" />
2012        <delete dir="../i2p-${Extended.Version}" />
2013        <exec executable="mtn" failonerror="true">
2014            <arg value="co" />
2015            <!-- w: is the revision of the current workspace -->
2016            <arg value="-r" />
2017            <arg value="w:" />
2018            <arg value="../i2p-${Extended.Version}" />
2019        </exec>
2020        <delete includeemptydirs="true" quiet="false">
2021            <fileset dir="../i2p-${Extended.Version}/debian-alt/" />
2022            <fileset dir="../i2p-${Extended.Version}/installer/lib/" />
2023            <fileset dir="../i2p-${Extended.Version}/Slackware" />
2024            <fileset dir="../i2p-${Extended.Version}/_MTN" />
2025            <!-- geoip-database -->
2026            <file name="../i2p-${Extended.Version}/installer/resources/geoip.txt" />
2027            <file name="../i2p-${Extended.Version}/installer/resources/geoipv6.dat.gz" />
2028            <!-- libjetty8-java -->
2029            <fileset dir="../i2p-${Extended.Version}/apps/jetty/jetty-distribution-8.1.17.v20150415" />
2030            <!-- libjstl1.1-java or glassfish-javaee -->
2031            <file name="../i2p-${Extended.Version}/apps/susidns/src/lib/jstl.jar" />
2032            <!-- libjakarta-taglibs-standard-java or glassfish-javaee -->
2033            <file name="../i2p-${Extended.Version}/apps/susidns/src/lib/standard.jar" />
2034            <!-- libtomcat6-java or libtomcat7-java -->
2035          <!--
2036            <fileset dir="../i2p-${Extended.Version}/apps/jetty/apache-tomcat" />
2037            <fileset dir="../i2p-${Extended.Version}/apps/jetty/apache-tomcat-deployer/" />
2038           -->
2039            <!-- anything added above, add in debian-release-tarball also -->
2040        </delete>
2041        <tar longfile="gnu" destfile="../${debian.tarball.name}" compression="bzip2">
2042            <tarfileset dir="../i2p-${Extended.Version}" prefix="/i2p-${Extended.Version}">
2043                <include name="**/**" />
2044                <exclude name="debian/**"/>
2045                <exclude name="debian-alt/**"/>
2046                <exclude name="**/*.sh"/>
2047                <exclude name="installer/resources/geoip.txt"/>
2048                <exclude name="installer/resources/geoipv6.dat.gz"/>
2049                <exclude name="apps/jetty/jetty-distribution-*/**"/>
2050                <exclude name="apps/susidns/src/lib/jstl.jar" />
2051                <exclude name="apps/susidns/src/lib/standard.jar" />
2052          <!--
2053                <exclude name="apps/jetty/apache-tomcat/**"/>
2054                <exclude name="apps/jetty/apache-tomcat-deployer/**"/>
2055           -->
2056                <!-- anything added above, add in debian-release-tarball also -->
2057            </tarfileset>
2058            <tarfileset dir="../i2p-${Extended.Version}" prefix="/i2p-${Extended.Version}" filemode="755">
2059                <exclude name="debian/**" />
2060                <include name="**/*.sh" />
2061            </tarfileset>
2062        </tar>
2063    </target>
2064
2065    <!-- same as debian-tarball but with a release tar.bz2 file name and tar prefix -->
2066    <target name="debian-release-tarball" depends="getExtendedVersion">
2067        <!-- this will use the monotonerc file in the current workspace -->
2068        <fail message="This target cannot be used without Monotone! Use &quot;fakeroot debian/rules get-orig-source&quot; instead.">
2069            <condition>
2070                <not>
2071                    <isset property="mtn.available" />
2072                </not>
2073            </condition>
2074        </fail>
2075        <property name="debian.tarball.name" value="i2p_${release.number}.orig.tar.bz2" />
2076        <echo message="Checking out fresh copy into ../i2p-${Extended.Version} for tarballing:" />
2077        <delete dir="../i2p-${Extended.Version}" />
2078        <exec executable="mtn" failonerror="true">
2079            <arg value="co" />
2080            <!-- w: is the revision of the current workspace -->
2081            <arg value="-r" />
2082            <arg value="w:" />
2083            <arg value="../i2p-${Extended.Version}" />
2084        </exec>
2085        <delete includeemptydirs="true" quiet="false">
2086            <fileset dir="../i2p-${Extended.Version}/debian-alt/" />
2087            <fileset dir="../i2p-${Extended.Version}/installer/lib/" />
2088            <fileset dir="../i2p-${Extended.Version}/Slackware" />
2089            <fileset dir="../i2p-${Extended.Version}/_MTN" />
2090            <file name="../i2p-${Extended.Version}/installer/resources/geoip.txt" />
2091            <file name="../i2p-${Extended.Version}/installer/resources/geoipv6.dat.gz" />
2092            <fileset dir="../i2p-${Extended.Version}/apps/jetty/jetty-distribution-8.1.17.v20150415" />
2093            <file name="../i2p-${Extended.Version}/apps/susidns/src/lib/jstl.jar" />
2094            <file name="../i2p-${Extended.Version}/apps/susidns/src/lib/standard.jar" />
2095          <!--
2096            <fileset dir="../i2p-${Extended.Version}/apps/jetty/apache-tomcat" />
2097            <fileset dir="../i2p-${Extended.Version}/apps/jetty/apache-tomcat-deployer/" />
2098           -->
2099            <!-- anything added above, add in debian-tarball also -->
2100        </delete>
2101        <tar longfile="gnu" destfile="../${debian.tarball.name}" compression="bzip2">
2102            <tarfileset dir="../i2p-${Extended.Version}" prefix="/i2p-${release.number}">
2103                <include name="**/**" />
2104                <exclude name="debian/**"/>
2105                <exclude name="debian-alt/**"/>
2106                <exclude name="**/*.sh"/>
2107                <exclude name="installer/resources/geoip.txt"/>
2108                <exclude name="installer/resources/geoipv6.dat.gz"/>
2109                <exclude name="apps/jetty/jetty-distribution-*/**"/>
2110                <exclude name="apps/susidns/src/lib/jstl.jar" />
2111                <exclude name="apps/susidns/src/lib/standard.jar" />
2112          <!--
2113                <exclude name="apps/jetty/apache-tomcat/**"/>
2114                <exclude name="apps/jetty/apache-tomcat-deployer/**"/>
2115           -->
2116                <!-- anything added above, add in debian-tarball also -->
2117            </tarfileset>
2118            <tarfileset dir="../i2p-${Extended.Version}" prefix="/i2p-${release.number}" filemode="755">
2119                <exclude name="debian/**" />
2120                <include name="**/*.sh" />
2121            </tarfileset>
2122        </tar>
2123    </target>
2124
2125    <target name="debian-patch" depends="getExtendedVersion" >
2126        <exec executable="quilt" failonerror="true">
2127            <arg value="-a" />
2128            <arg value="push" />
2129        </exec>
2130        <echo message="====================" />
2131    </target>
2132    <target name="debian-unpatch" depends="buildProperties">
2133        <exec executable="quilt" failonerror="false">
2134            <arg value="-a" />
2135            <arg value="pop" />
2136        </exec>
2137    </target>
2138
2139    <target name="debianrepo" depends="debian">
2140        <exec dir="debian" executable="./makerepo.sh" failonerror="true"/>
2141    </target>
2142
2143<!-- the following are appened to help build barebone portable version,
2144     none of the above is modified for this purpose -->
2145        <target name = "pkg-portable-clean">
2146                <delete dir="build/" />
2147                <delete dir="pkg-temp/" />
2148                <delete>
2149                        <fileset dir="." includes="portable-**.zip**" />
2150                </delete>
2151        </target>
2152<!-- build a portable archive -->
2153
2154<!-- *0* Since we simply pack all files in folder "build/" into our archieve,
2155                we need to make sure its small, with NO redundent jars or wars.
2156                thus cleaning is required before each build-->
2157        <target name="buildSmallOnly" depends="pkg-portable-clean,buildSmall"/>
2158
2159<!-- *1* preparing the jars by OS dependent de-bloating -->
2160        <target name="preppkg-portable-win32-jbigi" depends="buildSmallOnly, jbigi-windows-only" />
2161
2162        <target name="preppkg-portable-linux-jbigi"  depends="buildSmallOnly, jbigi-linux-only" />
2163
2164<!-- *2* os independent procedure  -->
2165        <target name="preppkg-portable-basic" >
2166                <mkdir dir="pkg-temp" />
2167                        <!-- non OS dependent configurations only, dont add *nux/win stuff here -->
2168                        <copy todir="pkg-temp">
2169                                <fileset dir="installer/resources/portable/configs/" />
2170                        </copy>
2171                        <copy file="installer/resources/blocklist.txt" todir="pkg-temp/" />
2172                        <copy file="installer/resources/hosts.txt" todir="pkg-temp/" />
2173                        <copy file="installer/resources/readme.license.txt" todir="pkg-temp/" />
2174                <mkdir dir="pkg-temp/addressbook" />
2175                        <copy file="apps/addressbook/subscriptions.txt" todir="pkg-temp/addressbook/" />
2176                        <copy file="apps/addressbook/myhosts.txt"  todir="pkg-temp/addressbook/" />
2177                        <!-- config.txt is in installer/resources/portable -->
2178                <mkdir dir="pkg-temp/docs" />
2179                        <copy file="installer/resources/initialNews/initialNews.xml" tofile="pkg-temp/docs/news.xml" overwrite="true" />
2180                        <copy file="installer/resources/readme/readme.html" tofile="pkg-temp/docs/readme.html" />
2181                        <copy file="installer/resources/startconsole.html" todir="pkg-temp/docs/" />
2182                        <copy file="installer/resources/start.ico" todir="pkg-temp/docs/" />
2183                        <copy file="installer/resources/console.ico" todir="pkg-temp/docs/" />
2184                        <!-- HTTP Header files, english only,
2185                                if you need a different lang do it in a seperate target -->
2186                        <copy todir="pkg-temp/docs/" >
2187                                <fileset dir="installer/resources/proxy/"  includes="**-header.ht" />
2188                        </copy>
2189                        <!-- Theme light only -->
2190                        <copy todir="pkg-temp/docs/themes/console/light/" overwrite="true" >
2191                                <fileset dir="installer/resources/themes/console/light/" includes="**.css" />
2192                        </copy>
2193                        <copy file="installer/resources/themes/console/light/console_big.css" todir="portable/docs/themes/console/light/" />
2194                        <copy todir="pkg-temp/docs/themes/console/images/" >
2195                                <fileset dir="installer/resources/themes/console/images/" />
2196                        </copy>
2197                        <!-- FLAGs for language icon (not for ip)-->
2198                        <copy todir="pkg-temp/docs/icons/flags" >
2199                                <fileset dir="installer/resources/icons/flags/" includes="cn.png,de.png,fr.png,nl.png,ru.png,se.png,us.png" />
2200                        </copy>
2201                <mkdir dir="pkg-temp/webapps" />
2202                        <copy todir="pkg-temp/webapps/">
2203                                <fileset dir="build/" includes="**.war" />
2204                        </copy>
2205                <mkdir dir="pkg-temp/lib" />
2206                        <copy todir ="pkg-temp/lib/" >
2207                                <fileset dir="build/" includes="**.jar" />
2208                        </copy>
2209                        <!-- 3rd party jars from apps/  -->
2210                                <!-- jrobin - without jobin , you lost graph and get a lot error entry in logs -->
2211                        <copy file="build/jrobin.jar" tofile="pkg-temp/lib/jrobin.jar" />
2212        </target>
2213<!-- *3* os dependent procedure/commands -->
2214        <target name = "preppkg-portable-win32" depends="preppkg-portable-win32-jbigi,preppkg-portable-basic">
2215                        <!-- systray4.j  - why do we need trayicons for portable version ? dependency hardcoded in console -->
2216                <copy file="apps/systray/java/lib/systray4j.dll" todir="pkg-temp/lib" />
2217                <copy file="apps/systray/java/lib/systray4j.jar" todir="pkg-temp/lib" />
2218                        <!--wrapper - dont even think about it. i2p cosumes appreantly more mem without it on win32-->
2219                <copy file="installer/lib/wrapper/win32/wrapper.dll" todir="pkg-temp/lib" />
2220                <copy file="installer/lib/wrapper/all/wrapper.jar" todir="pkg-temp/lib" />
2221                <copy file="installer/lib/wrapper/win32/I2Psvc.exe" tofile="pkg-temp/i2psvc.ex_" />
2222                        <!--  copy the unpack/start batchfiles -->
2223                <copy todir="pkg-temp">
2224                        <fileset dir="installer/resources/portable/win32/" />
2225                </copy>
2226        </target>
2227<!-- *4* command for windows package -->
2228        <target name = "pkg-portable-win32"     depends="preppkg-portable-win32, pack200" >
2229                <!-- i need the portable\ folder in .zip so basedir is set to . -->
2230                <move file="pkg-temp" tofile="portable"/>
2231                <zip destfile="portable-win32.zip" basedir="." level="9" includes="portable\**" />
2232                <checksum file="portable-win32.zip" forceOverwrite="yes"/>
2233                <move file="portable" tofile="pkg-temp"/>
2234        </target>
2235</project>
Note: See TracBrowser for help on using the repository browser.