source: apps/susimail/build.xml @ 2e72ece

Last change on this file since 2e72ece was 2e72ece, checked in by zzz <zzz@…>, 12 years ago
  • build.xml: Build speedups:
    • Don't distclean in the updaterRouter target
    • Don't make prepUpdate and prepupdateSmall depend on distclean
    • Don't make susimail build always clean
    • Make pkg depend on distclean to be sure
    • Clean out more routerconsole and susidns files in 'ant clean'
    • i2ptunnel, routerconsole, susidns: Only build WEB-INF when necessary
    • systray: Only build jar when necessary
    • Don't build i2psnark standalone for the updater target
  • Property mode set to 100644
File size: 1.6 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<project basedir="." default="all" name="susimail">
3    <target name="all" depends="clean, build" />
4    <target name="build" depends="builddep, jar" />
5    <target name="builddep">
6        <ant dir="../jetty/" target="build" />
7    </target>
8    <target name="compile">
9        <javac 
10            srcdir="./src/src"
11            debug="true" deprecation="off" source="1.5" target="1.5" 
12            destdir="./src/WEB-INF/classes">
13            <classpath>
14                <pathelement location="../jetty/jettylib/javax.servlet.jar" />
15                <pathelement location="../jetty/jettylib/org.mortbay.jetty.jar" />
16            </classpath>
17        </javac>
18    </target>
19    <target name="jar" depends="compile, war" />
20    <target name="war" depends="compile">
21        <war destfile="susimail.war" webxml="src/WEB-INF/web.xml"
22             basedir="src/" excludes="WEB-INF/web.xml">
23        </war>
24    </target>
25    <target name="javadoc">
26        <mkdir dir="./build" />
27        <mkdir dir="./build/javadoc" />
28        <javadoc 
29            sourcepath="./src/src/" destdir="./build/javadoc" 
30            packagenames="*" 
31            use="true" 
32            splitindex="true" 
33            windowtitle="susimail" />
34    </target>
35    <target name="clean">
36        <delete>
37            <fileset dir="src/WEB-INF/classes/" includes="**/*.class" />
38        </delete>
39        <delete dir="src/WEB-INF/classes/i2p"/>
40        <delete file="susimail.war"/>
41    </target>
42    <target name="cleandep" depends="clean" />
43    <target name="distclean" depends="clean" />
44</project>
Note: See TracBrowser for help on using the repository browser.