2004-04-13 04:41:14 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<project basedir="." default="all" name="sam">
|
|
|
|
<target name="all" depends="clean, build" />
|
|
|
|
<target name="build" depends="builddep, jar" />
|
|
|
|
<target name="builddep">
|
|
|
|
<ant dir="../../ministreaming/java/" target="build" />
|
2009-04-06 08:16:19 +00:00
|
|
|
<ant dir="../../streaming/java/" target="build" />
|
2004-04-13 04:41:14 +00:00
|
|
|
<!-- ministreaming will build core -->
|
|
|
|
</target>
|
2008-11-14 14:48:08 +00:00
|
|
|
<condition property="depend.available">
|
|
|
|
<typefound name="depend" />
|
|
|
|
</condition>
|
|
|
|
<target name="depend" if="depend.available">
|
2008-11-12 17:08:09 +00:00
|
|
|
<depend
|
|
|
|
cache="../../../build"
|
|
|
|
srcdir="./src"
|
|
|
|
destdir="./build/obj" >
|
|
|
|
<!-- Depend on classes instead of jars where available -->
|
|
|
|
<classpath>
|
|
|
|
<pathelement location="../../../core/java/build/obj" />
|
|
|
|
<pathelement location="../../ministreaming/java/build/obj" />
|
2009-04-06 08:16:19 +00:00
|
|
|
<pathelement location="../../streaming/java/build/obj" />
|
2008-11-12 17:08:09 +00:00
|
|
|
</classpath>
|
|
|
|
</depend>
|
|
|
|
</target>
|
2009-04-26 15:54:51 +00:00
|
|
|
<property name="javac.compilerargs" value="" />
|
2008-11-12 17:08:09 +00:00
|
|
|
<target name="compile" depends="depend">
|
2004-04-13 04:41:14 +00:00
|
|
|
<mkdir dir="./build" />
|
|
|
|
<mkdir dir="./build/obj" />
|
|
|
|
<javac
|
2009-01-13 19:54:07 +00:00
|
|
|
srcdir="./src"
|
|
|
|
debug="true" deprecation="on" source="1.5" target="1.5"
|
|
|
|
destdir="./build/obj"
|
2009-05-05 09:28:10 +00:00
|
|
|
classpath="../../../core/java/build/i2p.jar:../../ministreaming/java/build/mstreaming.jar:../../streaming/java/build/streaming.jar" >
|
2009-04-26 15:54:51 +00:00
|
|
|
<compilerarg line="${javac.compilerargs}" />
|
|
|
|
</javac>
|
2009-01-13 19:54:07 +00:00
|
|
|
</target>
|
|
|
|
<target name="compileTest" depends="compile">
|
|
|
|
<javac
|
|
|
|
srcdir="./test"
|
2008-10-10 17:25:58 +00:00
|
|
|
debug="true" deprecation="on" source="1.5" target="1.5"
|
2004-04-13 04:41:14 +00:00
|
|
|
destdir="./build/obj"
|
2009-05-05 09:28:10 +00:00
|
|
|
classpath="../../../core/java/build/i2p.jar:../../ministreaming/java/build/mstreaming.jar:../../streaming/java/build/streaming.jar" >
|
2009-04-26 15:54:51 +00:00
|
|
|
<compilerarg line="${javac.compilerargs}" />
|
|
|
|
</javac>
|
2004-04-13 04:41:14 +00:00
|
|
|
</target>
|
|
|
|
<target name="jar" depends="compile">
|
|
|
|
<jar destfile="./build/sam.jar" basedir="./build/obj" includes="**/*.class">
|
|
|
|
<manifest>
|
|
|
|
<attribute name="Main-Class" value="net.i2p.sam.SAMBridge" />
|
2009-04-06 08:16:19 +00:00
|
|
|
<attribute name="Class-Path" value="i2p.jar mstreaming.jar streaming.jar" />
|
2004-04-13 04:41:14 +00:00
|
|
|
</manifest>
|
|
|
|
</jar>
|
|
|
|
</target>
|
2009-01-13 19:54:07 +00:00
|
|
|
<target name="jarTest" depends="jar, compileTest">
|
|
|
|
<jar destfile="./build/sam.jar" basedir="./build/obj" includes="**/*Test*.class" update="true" />
|
|
|
|
</target>
|
2004-04-13 04:41:14 +00:00
|
|
|
<target name="javadoc">
|
|
|
|
<mkdir dir="./build" />
|
|
|
|
<mkdir dir="./build/javadoc" />
|
|
|
|
<javadoc
|
2009-04-06 08:16:19 +00:00
|
|
|
sourcepath="./src:../../../core/java/src:../../ministreaming/java/src:../../streaming/java/src" destdir="./build/javadoc"
|
2004-04-13 04:41:14 +00:00
|
|
|
packagenames="*"
|
|
|
|
use="true"
|
|
|
|
splitindex="true"
|
|
|
|
windowtitle="SAMBridge" />
|
|
|
|
</target>
|
|
|
|
<target name="clean">
|
|
|
|
<delete dir="./build" />
|
|
|
|
</target>
|
|
|
|
<target name="cleandep" depends="clean">
|
|
|
|
<!-- ministreaming will clean core -->
|
|
|
|
<ant dir="../../ministreaming/java/" target="distclean" />
|
2009-04-06 08:16:19 +00:00
|
|
|
<ant dir="../../streaming/java/" target="distclean" />
|
2004-04-13 04:41:14 +00:00
|
|
|
</target>
|
|
|
|
<target name="distclean" depends="clean">
|
|
|
|
<!-- ministreaming will clean core -->
|
|
|
|
<ant dir="../../ministreaming/java/" target="distclean" />
|
2009-04-06 08:16:19 +00:00
|
|
|
<ant dir="../../streaming/java/" target="distclean" />
|
2004-04-13 04:41:14 +00:00
|
|
|
</target>
|
|
|
|
</project>
|