source: installer/java/build.xml @ 77bd69c

i2p_0_3_0_3
Last change on this file since 77bd69c was 77bd69c, checked in by zzz <zzz@…>, 17 years ago

beginning of branch i2p.i2p.i2p

  • Property mode set to 100644
File size: 3.5 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<project basedir="." default="all" name="installer">
3    <target name="all" depends="clean, build" />
4    <target name="build" depends="builddep, jar" />
5    <target name="builddep">
6        <ant dir="../../core/java/" target="build" />
7        <ant dir="../../router/java/" target="build" />
8        <ant dir="../../apps/ministreaming/java/" target="build" />
9        <ant dir="../../apps/i2ptunnel/java/" target="build" />
10    </target>
11    <target name="compile">
12        <mkdir dir="./build" />
13        <mkdir dir="./build/obj" />
14        <javac srcdir="./src" debug="true" destdir="./build/obj" />
15    </target>
16    <target name="jar" depends="installer, guiinstaller" />
17    <target name="fetchseeds" depends="compile">
18        <jar destfile="./build/fetchseeds.jar" >
19            <fileset dir="./build/obj" includes="FetchSeeds.class" />
20            <fileset file="../doc/COPYING" />
21            <manifest>
22                <attribute name="Main-Class" value="FetchSeeds" />
23            </manifest>
24        </jar>
25    </target>
26    <target name="installer" depends="compile, fetchseeds">
27        <jar destfile="./build/install.jar" >
28            <fileset dir="./build/obj" includes="*.class" />
29            <fileset dir="./src" includes="*.template" />
30            <fileset dir="./src" includes="install.config" />
31            <fileset file="./build/fetchseeds.jar" />
32            <fileset file="../../core/java/build/i2p.jar" />
33            <fileset file="../../router/java/build/router.jar" />
34            <fileset file="../../apps/ministreaming/java/build/mstreaming.jar" />
35            <fileset file="../../apps/i2ptunnel/java/build/i2ptunnel.jar" />
36            <fileset file="../doc/COPYING" />
37            <fileset file="../../readme.txt" />
38            <fileset file="../../hosts.txt" />
39            <manifest>
40                <attribute name="Main-Class" value="Install" />
41            </manifest>
42        </jar>
43    </target>
44    <target name="guiinstaller" depends="compile, fetchseeds">
45        <jar destfile="./build/guiinstall.jar" >
46            <fileset dir="./build/obj" includes="*.class" />
47            <fileset dir="./src" includes="*.template" />
48            <fileset dir="./src" includes="install.config" />
49            <fileset file="./build/fetchseeds.jar" />
50            <fileset file="../../core/java/build/i2p.jar" />
51            <fileset file="../../router/java/build/router.jar" />
52            <fileset file="../../apps/ministreaming/java/build/mstreaming.jar" />
53            <fileset file="../../apps/i2ptunnel/java/build/i2ptunnel.jar" />
54            <fileset file="../doc/COPYING" />
55            <fileset file="../../readme.txt" />
56            <fileset file="../../hosts.txt" />
57            <manifest>
58                <attribute name="Main-Class" value="GUIInstall" />
59            </manifest>
60        </jar>
61    </target>
62    <target name="clean">
63        <delete dir="./build" />
64    </target>
65    <target name="cleandep" depends="clean">
66        <ant dir="../../core/java/" target="cleandep" />
67        <ant dir="../../router/java/" target="cleandep" />
68        <ant dir="../../apps/ministreaming/java/" target="cleandep" />
69        <ant dir="../../apps/i2ptunnel/java/" target="cleandep" />
70    </target>
71    <target name="distclean" depends="clean">
72        <ant dir="../../core/java/" target="distclean" />
73        <ant dir="../../router/java/" target="distclean" />
74        <ant dir="../../apps/ministreaming/java/" target="distclean" />
75        <ant dir="../../apps/i2ptunnel/java/" target="distclean" />
76    </target>
77</project>
Note: See TracBrowser for help on using the repository browser.