2004-10-28 02:11:52 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<project basedir="." default="all" name="streaming">
|
|
|
|
<target name="all" depends="clean, build" />
|
|
|
|
<target name="build" depends="builddep, jar" />
|
|
|
|
<target name="builddep">
|
2010-11-28 03:56:56 +00:00
|
|
|
<!-- run from top level build.xml to get dependencies built -->
|
2004-10-28 02:11:52 +00:00
|
|
|
</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"
|
2012-11-04 11:23:12 +00:00
|
|
|
srcdir="./src:./test/junit"
|
2008-11-12 17:08:09 +00:00
|
|
|
destdir="./build/obj" >
|
|
|
|
<!-- Depend on classes instead of jars where available -->
|
|
|
|
<classpath>
|
|
|
|
<pathelement location="../../../core/java/build/obj" />
|
|
|
|
<pathelement location="../../ministreaming/java/build/obj" />
|
|
|
|
</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-10-28 02:11:52 +00:00
|
|
|
<mkdir dir="./build" />
|
|
|
|
<mkdir dir="./build/obj" />
|
|
|
|
<javac
|
2008-12-08 15:03:45 +00:00
|
|
|
srcdir="./src"
|
|
|
|
debug="true" deprecation="on" source="1.5" target="1.5"
|
2011-02-17 12:47:35 +00:00
|
|
|
includeAntRuntime="false"
|
2008-12-08 15:03:45 +00:00
|
|
|
destdir="./build/obj"
|
2009-04-26 15:54:51 +00:00
|
|
|
classpath="../../../core/java/build/i2p.jar:../../ministreaming/java/build/mstreaming.jar" >
|
|
|
|
<compilerarg line="${javac.compilerargs}" />
|
|
|
|
</javac>
|
2008-12-08 15:03:45 +00:00
|
|
|
</target>
|
|
|
|
<target name="compileTest" depends="compile">
|
|
|
|
<javac
|
2012-11-04 11:23:12 +00:00
|
|
|
srcdir="./test/junit"
|
2008-10-10 17:25:58 +00:00
|
|
|
debug="true" deprecation="on" source="1.5" target="1.5"
|
2011-02-17 12:47:35 +00:00
|
|
|
includeAntRuntime="false"
|
2004-10-28 02:11:52 +00:00
|
|
|
destdir="./build/obj"
|
2009-04-26 15:54:51 +00:00
|
|
|
classpath="../../../core/java/build/i2p.jar:../../ministreaming/java/build/mstreaming.jar" >
|
|
|
|
<compilerarg line="${javac.compilerargs}" />
|
|
|
|
</javac>
|
2004-10-28 02:11:52 +00:00
|
|
|
</target>
|
2011-02-17 12:47:35 +00:00
|
|
|
|
2011-06-08 20:15:53 +00:00
|
|
|
<target name="listChangedFiles" depends="jarUpToDate" if="shouldListChanges" >
|
2011-02-17 12:47:35 +00:00
|
|
|
<exec executable="mtn" outputproperty="workspace.changes" errorproperty="mtn.error2" failifexecutionfails="false" >
|
|
|
|
<arg value="list" />
|
|
|
|
<arg value="changed" />
|
|
|
|
<arg value="." />
|
|
|
|
</exec>
|
|
|
|
<!-- \n in an attribute value generates an invalid manifest -->
|
|
|
|
<exec executable="tr" inputstring="${workspace.changes}" outputproperty="workspace.changes.tr" errorproperty="mtn.error2" failifexecutionfails="false" >
|
|
|
|
<arg value="-s" />
|
|
|
|
<arg value="[:space:]" />
|
|
|
|
<arg value="," />
|
|
|
|
</exec>
|
2011-06-08 20:15:53 +00:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="jar" depends="builddep, compile, jarUpToDate, listChangedFiles" unless="jar.uptodate" >
|
|
|
|
<!-- set if unset -->
|
|
|
|
<property name="workspace.changes.tr" value="" />
|
2011-02-17 12:47:35 +00:00
|
|
|
<jar destfile="./build/streaming.jar" basedir="./build/obj" includes="**/*.class" >
|
|
|
|
<manifest>
|
2012-01-15 16:36:17 +00:00
|
|
|
<attribute name="Implementation-Version" value="${full.version}" />
|
2012-03-01 16:04:17 +00:00
|
|
|
<attribute name="Built-By" value="${build.built-by}" />
|
2011-02-17 12:47:35 +00:00
|
|
|
<attribute name="Build-Date" value="${build.timestamp}" />
|
|
|
|
<attribute name="Base-Revision" value="${workspace.version}" />
|
|
|
|
<attribute name="Workspace-Changes" value="${workspace.changes.tr}" />
|
|
|
|
</manifest>
|
|
|
|
</jar>
|
2004-10-28 02:11:52 +00:00
|
|
|
</target>
|
2011-02-17 12:47:35 +00:00
|
|
|
|
|
|
|
<target name="jarUpToDate">
|
|
|
|
<uptodate property="jar.uptodate" targetfile="build/streaming.jar" >
|
|
|
|
<srcfiles dir= "." includes="build/obj/**/*.class" />
|
|
|
|
</uptodate>
|
2011-06-08 20:15:53 +00:00
|
|
|
<condition property="shouldListChanges" >
|
|
|
|
<and>
|
|
|
|
<not>
|
|
|
|
<isset property="jar.uptodate" />
|
|
|
|
</not>
|
|
|
|
<isset property="mtn.available" />
|
|
|
|
</and>
|
|
|
|
</condition>
|
2011-02-17 12:47:35 +00:00
|
|
|
</target>
|
|
|
|
|
2008-12-08 15:03:45 +00:00
|
|
|
<target name="jarTest" depends="jar, compileTest">
|
|
|
|
<jar destfile="./build/streaming.jar" basedir="./build/obj" includes="**/*Test*.class" update="true" />
|
|
|
|
</target>
|
2004-10-28 02:11:52 +00:00
|
|
|
<target name="javadoc">
|
|
|
|
<mkdir dir="./build" />
|
|
|
|
<mkdir dir="./build/javadoc" />
|
|
|
|
<javadoc
|
|
|
|
sourcepath="./src:../../../core/java/src:../../ministreaming/java/src" destdir="./build/javadoc"
|
|
|
|
packagenames="*"
|
|
|
|
use="true"
|
|
|
|
splitindex="true"
|
|
|
|
windowtitle="Streaming" />
|
|
|
|
</target>
|
|
|
|
<target name="clean">
|
|
|
|
<delete dir="./build" />
|
|
|
|
</target>
|
|
|
|
<target name="cleandep" depends="clean">
|
|
|
|
</target>
|
|
|
|
<target name="distclean" depends="clean">
|
|
|
|
</target>
|
|
|
|
</project>
|