forked from I2P_Developers/i2p.i2p
* Bundled dust's Sucker for pulling RSS/Atom content into SML, which can
then be injected into Syndie with the Syndie CLI.
* Bundled ROME and JDOM (BSD and Apache licensed, respectively) for
RSS/Atom parsing.
2005-10-13 jrandom
* SSU retransmission choke bugfix (== != !=)
* Include initial transmissions in the retransmission choke, so that
if we are already retransmitting a message, we won't send anything
to that peer other than that message (or ACKs, if necessary)
112 lines
5.5 KiB
XML
112 lines
5.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project basedir="." default="all" name="syndie">
|
|
<target name="all" depends="clean, build" />
|
|
<target name="build" depends="builddep, jar" />
|
|
<target name="builddep">
|
|
<ant dir="../../jetty/" target="build" />
|
|
<ant dir="../../../core/java/" target="build" />
|
|
<!-- ministreaming will build core -->
|
|
</target>
|
|
<target name="compile">
|
|
<mkdir dir="./build" />
|
|
<mkdir dir="./build/obj" />
|
|
<javac
|
|
srcdir="./src"
|
|
debug="true" deprecation="on" source="1.3" target="1.3"
|
|
destdir="./build/obj"
|
|
classpath="../../../core/java/build/i2p.jar:../../jetty/jettylib/org.mortbay.jetty.jar:../../jetty/jettylib/javax.servlet.jar:../../jdom/jdom.jar:../../rome/rome-0.7.jar" />
|
|
</target>
|
|
<target name="jar" depends="builddep, compile">
|
|
<jar destfile="./build/syndie.jar" basedir="./build/obj" includes="**/*.class">
|
|
<manifest>
|
|
<attribute name="Main-Class" value="net.i2p.syndie.CLIPost" />
|
|
<attribute name="Class-Path" value="i2p.jar" />
|
|
</manifest>
|
|
</jar>
|
|
<jar destfile="./build/sucker.jar" basedir="./build/obj" includes="net/i2p/syndie/Sucker.class, net/i2p/syndie/SuckerFetchListener.class">
|
|
<manifest>
|
|
<attribute name="Main-Class" value="net.i2p.syndie.Sucker" />
|
|
<attribute name="Class-Path" value="i2p.jar jdom.jar rome-0.7.jar" />
|
|
</manifest>
|
|
</jar>
|
|
<ant target="war" />
|
|
</target>
|
|
<target name="war" depends="builddep, compile, precompilejsp">
|
|
<war destfile="../syndie.war" webxml="../jsp/web-out.xml">
|
|
<fileset dir="../jsp/" includes="**/*" excludes=".nbintdb, web.xml, web-out.xml, web-fragment.xml, **/*.java, **/*.jsp" />
|
|
<classes dir="./build/obj" />
|
|
</war>
|
|
</target>
|
|
<target name="precompilejsp">
|
|
<delete dir="../jsp/WEB-INF/" />
|
|
<delete file="../jsp/web-fragment.xml" />
|
|
<delete file="../jsp/web-out.xml" />
|
|
<mkdir dir="../jsp/WEB-INF/" />
|
|
<mkdir dir="../jsp/WEB-INF/classes" />
|
|
<!-- there are various jspc ant tasks, but they all seem a bit flakey -->
|
|
<java classname="org.apache.jasper.JspC" fork="true" >
|
|
<classpath>
|
|
<pathelement location="../../jetty/jettylib/jasper-compiler.jar" />
|
|
<pathelement location="../../jetty/jettylib/jasper-runtime.jar" />
|
|
<pathelement location="../../jetty/jettylib/javax.servlet.jar" />
|
|
<pathelement location="../../jetty/jettylib/commons-logging.jar" />
|
|
<pathelement location="../../jetty/jettylib/commons-el.jar" />
|
|
<pathelement location="../../jetty/jettylib/org.mortbay.jetty.jar" />
|
|
<pathelement location="../../jetty/jettylib/javax.servlet.jar" />
|
|
<pathelement location="../../jetty/jettylib/ant.jar" />
|
|
<pathelement location="../../jdom/jdom.jar" />
|
|
<pathelement location="../../rome/rome-0.7.jar" />
|
|
<pathelement location="build/obj" />
|
|
<pathelement location="../../../core/java/build/i2p.jar" />
|
|
</classpath>
|
|
<arg value="-d" />
|
|
<arg value="../jsp/WEB-INF/classes" />
|
|
<arg value="-p" />
|
|
<arg value="net.i2p.syndie.jsp" />
|
|
<arg value="-webinc" />
|
|
<arg value="../jsp/web-fragment.xml" />
|
|
<arg value="-webapp" />
|
|
<arg value="../jsp/" />
|
|
</java>
|
|
<javac debug="true" deprecation="on" source="1.3" target="1.3"
|
|
destdir="../jsp/WEB-INF/classes/" srcdir="../jsp/WEB-INF/classes" includes="**/*.java" >
|
|
<classpath>
|
|
<pathelement location="../../jetty/jettylib/jasper-runtime.jar" />
|
|
<pathelement location="../../jetty/jettylib/javax.servlet.jar" />
|
|
<pathelement location="../../jetty/jettylib/commons-logging.jar" />
|
|
<pathelement location="../../jetty/jettylib/commons-el.jar" />
|
|
<pathelement location="../../jetty/jettylib/org.mortbay.jetty.jar" />
|
|
<pathelement location="../../jetty/jettylib/javax.servlet.jar" />
|
|
<pathelement location="../../jdom/jdom.jar" />
|
|
<pathelement location="../../rome/rome-0.7.jar" />
|
|
<pathelement location="build/obj" />
|
|
<pathelement location="../../../core/java/build/i2p.jar" />
|
|
</classpath>
|
|
</javac>
|
|
<copy file="../jsp/web.xml" tofile="../jsp/web-out.xml" />
|
|
<loadfile property="jspc.web.fragment" srcfile="../jsp/web-fragment.xml" />
|
|
<replace file="../jsp/web-out.xml">
|
|
<replacefilter token="<!-- precompiled servlets -->" value="${jspc.web.fragment}" />
|
|
</replace>
|
|
</target>
|
|
<target name="javadoc">
|
|
<mkdir dir="./build" />
|
|
<mkdir dir="./build/javadoc" />
|
|
<javadoc
|
|
sourcepath="./src:../../../core/java/src" destdir="./build/javadoc"
|
|
packagenames="*"
|
|
use="true"
|
|
splitindex="true"
|
|
windowtitle="syndie" />
|
|
</target>
|
|
<target name="clean">
|
|
<delete dir="./build" />
|
|
</target>
|
|
<target name="cleandep" depends="clean">
|
|
<ant dir="../../../core/java/" target="distclean" />
|
|
</target>
|
|
<target name="distclean" depends="clean">
|
|
<ant dir="../../../core/java/" target="distclean" />
|
|
</target>
|
|
</project>
|