source: installer/java/build.xml @ 1669d17

Last change on this file since 1669d17 was 723a2f2, checked in by zzz <zzz@…>, 16 years ago

include timestamper in installer

  • Property mode set to 100644
File size: 5.1 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        <ant dir="../../apps/sam/java/" target="build" />
11        <ant dir="../../apps/netmonitor/java/" target="build" />
12        <ant dir="../../apps/heartbeat/java/" target="build" />
13        <ant dir="../../apps/time/java/" target="build" />
14    </target>
15    <target name="compile">
16        <mkdir dir="./build" />
17        <mkdir dir="./build/obj" />
18        <javac srcdir="./src" debug="true" destdir="./build/obj" />
19    </target>
20    <target name="jar" depends="installer, guiinstaller" />
21    <target name="fetchseeds" depends="compile">
22        <jar destfile="./build/fetchseeds.jar" >
23            <fileset dir="./build/obj" includes="FetchSeeds.class" />
24            <fileset file="../doc/COPYING" />
25            <manifest>
26                <attribute name="Main-Class" value="FetchSeeds" />
27            </manifest>
28        </jar>
29    </target>
30    <target name="installer" depends="compile, fetchseeds">
31        <jar destfile="./build/install.jar" >
32            <fileset dir="./build/obj" includes="*.class" />
33            <fileset dir="./src" includes="*.template" />
34            <fileset dir="./src" includes="install.config" />
35            <fileset file="./build/fetchseeds.jar" />
36            <fileset file="../../core/java/build/i2p.jar" />
37            <fileset file="../../router/java/build/router.jar" />
38            <fileset file="../../apps/ministreaming/java/build/mstreaming.jar" />
39            <fileset file="../../apps/i2ptunnel/java/build/i2ptunnel.jar" />
40            <fileset file="../../apps/sam/java/build/sam.jar" />
41            <fileset file="../../apps/heartbeat/java/build/heartbeat.jar" />
42            <fileset file="../../apps/netmonitor/java/build/netmonitor.jar" />
43            <fileset file="../../apps/time/java/build/timestamper.jar" />
44            <fileset file="../doc/COPYING" />
45            <fileset file="../../readme.txt" />
46            <fileset file="../../hosts.txt" />
47            <fileset file="./src/harvester.config" />
48            <fileset file="./src/heartbeat.config" />
49            <manifest>
50                <attribute name="Main-Class" value="Install" />
51            </manifest>
52        </jar>
53    </target>
54    <target name="guiinstaller" depends="compile, fetchseeds">
55        <jar destfile="./build/guiinstall.jar" >
56            <fileset dir="./build/obj" includes="*.class" />
57            <fileset dir="./src" includes="*.template" />
58            <fileset dir="./src" includes="install.config" />
59            <fileset file="./build/fetchseeds.jar" />
60            <fileset file="../../core/java/build/i2p.jar" />
61            <fileset file="../../router/java/build/router.jar" />
62            <fileset file="../../apps/ministreaming/java/build/mstreaming.jar" />
63            <fileset file="../../apps/i2ptunnel/java/build/i2ptunnel.jar" />
64            <fileset file="../../apps/sam/java/build/sam.jar" />
65            <fileset file="../../apps/heartbeat/java/build/heartbeat.jar" />
66            <fileset file="../../apps/netmonitor/java/build/netmonitor.jar" />
67            <fileset file="../../apps/time/java/build/timestamper.jar" />
68            <fileset file="../doc/COPYING" />
69            <fileset file="../../readme.txt" />
70            <fileset file="../../hosts.txt" />
71            <fileset file="./src/harvester.config" />
72            <fileset file="./src/heartbeat.config" />
73            <manifest>
74                <attribute name="Main-Class" value="GUIInstall" />
75            </manifest>
76        </jar>
77    </target>
78    <target name="clean">
79        <delete dir="./build" />
80    </target>
81    <target name="cleandep" depends="clean">
82        <ant dir="../../core/java/" target="cleandep" />
83        <ant dir="../../router/java/" target="cleandep" />
84        <ant dir="../../apps/ministreaming/java/" target="cleandep" />
85        <ant dir="../../apps/i2ptunnel/java/" target="cleandep" />
86        <ant dir="../../apps/sam/java/" target="cleandep" />
87        <ant dir="../../apps/heartbeat/java" target="cleandep" />
88        <ant dir="../../apps/netmonitor/java" target="cleandep" />
89        <ant dir="../../apps/time/java" target="cleandep" />
90    </target>
91    <target name="distclean" depends="clean">
92        <ant dir="../../core/java/" target="distclean" />
93        <ant dir="../../router/java/" target="distclean" />
94        <ant dir="../../apps/ministreaming/java/" target="distclean" />
95        <ant dir="../../apps/i2ptunnel/java/" target="distclean" />
96        <ant dir="../../apps/sam/java/" target="distclean" />
97        <ant dir="../../apps/heartbeat/java" target="distclean" />
98        <ant dir="../../apps/netmonitor/java" target="distclean" />
99        <ant dir="../../apps/time/java" target="distclean" />
100    </target>
101</project>
Note: See TracBrowser for help on using the repository browser.