source: installer/java/build.xml @ 8244bdb4

Last change on this file since 8244bdb4 was 180d3953, checked in by zzz <zzz@…>, 16 years ago

include the harvester & heartbeat monitor (but not their GUIs)

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