summaryrefslogtreecommitdiff
path: root/java/build.xml
blob: a148f6affa3468d5dd8d56ad732a20d7f9b2918e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?xml version="1.0" encoding="UTF-8"?>
<project name="httpauth-client" default="build" basedir=".">

    <target name="init">
        <property name="version" value="0.6"/>
    </target>

    <target name="build" depends="init">
        <mkdir dir="build"/>
        <javac srcdir="src" destdir="build" includes="**/*.java"
               classpath="lib/javax.servlet.jar;lib/org.mortbay.jetty.jar" compiler="extJavac"/>
    </target>

    <target name="clean" depends="init">
        <delete dir="build"/>
    </target>

    <target name="makedist" depends="init,build">
        <mkdir dir="build"/>
        <manifest file="build/manifest">
            <!-- <attribute name="Main-Class" value="com.memberwebs.XXXX"/> -->
            <attribute name="Class-Path" value="lib/javax.servlet.jar lib/org.mortbay.jetty.jar"/>
            <attribute name="Implementation-Title" value="httpauth-client"/>
            <attribute name="Implementation-Version" value="${version}"/>
            <attribute name="Implementation-Vendor" value="stef@memberwebs.com"/>
        </manifest>
        <jar basedir="." destfile="build/httpauth-client-src.jar" excludes="CVS .* build/* .svn"/>
        <jar basedir="build" destfile="build/httpauth-client.jar" manifest="build/manifest" includes="**/*.class"/>
    </target>

    <target name="javadoc">
        <mkdir dir="build"/>
        <javadoc access="public" author="true"
            classpath="build:lib/javax.servlet.jar:lib/org.mortbay.jetty.jar"
            destdir="build/doc" nodeprecated="true"
            nodeprecatedlist="true" noindex="false" nonavbar="false"
            notree="false"
            packagenames="com.memberwebs.httpauth,com.memberwebs.httpauth.jetty,com.memberwebs.httpauth.servlet"
            sourcepath="src" splitindex="false" use="true" version="true"/>
    </target>

</project>