source: build.xml @ 6a48910

Last change on this file since 6a48910 was 6a48910, checked in by zzz <zzz@…>, 2 years ago

Build: add xenial release target, it will be our 4th launchpad flavor.
build.xml cleanups
doc updates

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