forked from I2P_Developers/i2p.i2p

according to whether we're running on *nix or windoze. build.xml should now work on your platform, as long as you have jython installed and jython is on your execution path. Got SAM STREAMs working - test code added to i2psamclient.py as function demoSTREAM()
37 lines
1.0 KiB
XML
37 lines
1.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project basedir="." default="all" name="sam">
|
|
|
|
<target name="all" depends="build" />
|
|
|
|
<target name="build" depends="builddep, jar" />
|
|
|
|
<target name="builddep">
|
|
<ant dir="../../../core/java/" target="build" />
|
|
<ant dir="../../ministreaming/java/" target="build" />
|
|
</target>
|
|
|
|
<target name="jar">
|
|
|
|
<condition property="jythonext" value=".bat">
|
|
<os family="windows" />
|
|
</condition>
|
|
<condition property="jythonext" value="">
|
|
<not>
|
|
<os family="windows" />
|
|
</not>
|
|
</condition>
|
|
|
|
<exec executable="jythonc${jythonext}" dir=".">
|
|
<env key="CLASSPATH" path="../../../core/java/build/i2p.jar:../../ministreaming/java/build/mstreaming.jar"/>
|
|
<arg value="--jar"/><arg path="./i2psam.jar"/>
|
|
<arg path="./src/i2psam.py"/>
|
|
</exec>
|
|
</target>
|
|
|
|
<target name="clean">
|
|
<delete file="i2psam.jar" />
|
|
<delete dir="./jpywork" />
|
|
</target>
|
|
|
|
</project>
|