source: 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: 2.8 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<project basedir="." default="all" name="i2p">
3    <target name="all" >
4        <echo message="Useful targets: " />
5        <echo message="  build:     build existing code into ./build/, but dont clean" />
6        <echo message="  javadoc:   generate javadoc for the entire project into ./build/javadoc" />
7        <echo message="  clean:     clean up the ./build/ dir" />
8        <echo message="  distclean: clean up all derived files" />
9        <echo message="  dist:      distclean, then build and javadoc" />
10    </target>
11    <target name="dist" depends="distclean, build, javadoc" />
12    <target name="build" depends="builddep, jar" />
13    <target name="builddep">
14        <ant dir="core/java/" target="build" />
15        <ant dir="router/java/" target="build" />
16        <ant dir="apps/ministreaming/java/" target="build" />
17        <ant dir="apps/i2ptunnel/java/" target="build" />
18        <ant dir="apps/httptunnel/java/" target="build" />
19        <ant dir="apps/phttprelay/java/" target="build" />
20        <ant dir="installer/java/" target="build" />
21    </target>
22    <target name="compile" />
23    <target name="jar" depends="compile" >
24        <copy file="core/java/build/i2p.jar" todir="build/" />
25        <copy file="router/java/build/router.jar" todir="build/" />
26        <copy file="apps/ministreaming/java/build/mstreaming.jar" todir="build/" />
27        <copy file="apps/i2ptunnel/java/build/i2ptunnel.jar" todir="build/" />
28        <copy file="apps/httptunnel/java/build/httptunnel.jar" todir="build/" />
29        <copy file="apps/phttprelay/java/build/phttprelay.war" todir="build/" />
30        <copy file="installer/java/build/install.jar" todir="build/" />
31        <copy file="installer/java/build/guiinstall.jar" todir="build/" />
32        <copy file="installer/java/build/fetchseeds.jar" todir="build/" />
33    </target>
34    <target name="javadoc">
35        <mkdir dir="./build" />
36        <mkdir dir="./build/javadoc" />
37        <javadoc 
38            sourcepath="core/java/src:core/java/test:router/java/src:router/java/test:apps/ministreaming/java/src:apps/i2ptunnel/java/src:apps/httptunnel/java/src" 
39            destdir="./build/javadoc" 
40            packagenames="*" 
41            use="true" 
42            splitindex="true" 
43            windowtitle="I2P" />
44    </target>
45    <target name="clean">
46        <delete dir="./build" />
47    </target>
48    <target name="distclean" depends="clean">
49        <ant dir="core/java/" target="distclean" />
50        <ant dir="router/java/" target="distclean" />
51        <ant dir="apps/ministreaming/java/" target="distclean" />
52        <ant dir="apps/i2ptunnel/java/" target="distclean" />
53        <ant dir="apps/httptunnel/java/" target="distclean" />
54        <ant dir="apps/phttprelay/java/" target="distclean" />
55        <ant dir="installer/java/" target="distclean" />
56    </target>
57</project>
Note: See TracBrowser for help on using the repository browser.