source: apps/i2pcontrol/build.xml @ 24fd4881

Last change on this file since 24fd4881 was 24fd4881, checked in by zzz <zzz@…>, 22 months ago

I2PControl:
Disable webapp by default
Add link in Services section of sidebar
Add definition in PortMapper?
Add stub controller for socket implementation, WIP
Javadocs

  • Property mode set to 100644
File size: 2.9 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<project basedir="." default="all" name="source">
3    <property name="i2pbase" value="../.."/>
4    <property name="i2plib" value="${i2pbase}/build"/>
5    <property name="wrapperlib" value="${i2pbase}/installer/lib/wrapper/all"/>
6
7    <path id="cp">
8        <pathelement location="${i2plib}/i2p.jar" />
9        <pathelement location="${i2plib}/router.jar" />
10        <pathelement location="${i2plib}/org.mortbay.jetty.jar" />
11        <pathelement location="${i2plib}/javax.servlet.jar" />
12        <pathelement location="${i2plib}/jetty-servlet.jar" />
13        <pathelement location="${wrapperlib}/wrapper.jar" />
14    </path>
15
16    <target name="all" depends="clean, build" />
17    <target name="build" depends="jar" />
18    <condition property="depend.available">
19        <typefound name="depend" />
20    </condition>
21    <target name="builddep" if="depend.available">
22        <depend
23            cache="${i2pbase}/build"
24            srcdir="./java" 
25            classpath="${cp}"
26            destdir="./build/obj" >
27        </depend>
28    </target>
29
30    <property name="javac.compilerargs" value="" />
31    <property name="javac.version" value="1.7" />
32
33    <target name="compile" depends="builddep" >
34        <mkdir dir="./build" />
35        <mkdir dir="./build/obj" />
36        <javac 
37            srcdir="./java" 
38            debug="true" deprecation="on" source="${javac.version}" target="${javac.version}" 
39            includeAntRuntime="false"
40            destdir="./build/obj" 
41            classpath="${cp}">
42            <compilerarg line="${javac.compilerargs}" />
43            <classpath refid="cp"/>
44        </javac>
45    </target>
46
47    <target name="jar" depends="compile">
48        <jar destfile="build/I2PControl.jar" basedir="./build/obj" includes="**/*.class" >
49        </jar>
50    </target>   
51
52    <target name="war" depends="compile" >
53        <war destfile="build/jsonrpc.war" webxml="web.xml" >
54            <classes dir="./build/obj" excludes="net/i2p/i2pcontrol/I2PControlController.class net/i2p/i2pcontrol/HostCheckHandler.class net/i2p/i2pcontrol/SocketController*.class" />
55            <manifest>
56                <attribute name="Implementation-Version" value="${full.version}" />
57                <attribute name="Built-By" value="${build.built-by}" />
58                <attribute name="Build-Date" value="${build.timestamp}" />
59                <attribute name="Base-Revision" value="${workspace.version}" />
60                <attribute name="Workspace-Changes" value="${workspace.changes.tr}" />
61                <attribute name="X-Compile-Source-JDK" value="${javac.version}" />
62                <attribute name="X-Compile-Target-JDK" value="${javac.version}" />
63            </manifest>
64        </war>
65    </target>
66
67    <target name="clean">
68        <delete dir="./build" />
69    </target>
70
71    <target name="cleandep" depends="clean">
72    </target>
73
74    <target name="distclean" depends="clean">
75    </target>
76</project>
Note: See TracBrowser for help on using the repository browser.