collector/build.xml
Sebastian Hahn 12cdab447a Fix build errors on Debian systems
This ports commit 3e60ccdaaba598cabb7281d45f9a415299b8e3e3 from
metrics-lib over, originally written by Jens-Michael Hoffmann
<jmho@jmho.de>, with minor tweaks by Karsten Loesing.

The local lib directory is not used anymore and respective references
were removed. The java dependencies are now specified in the build.xml
and taken from their installed locations.

In addition to git, openjdk-6-jdk and ant the following java packages
have to be installed:
 - libcommons-codec-java
 - libcommons-compress-java

Slighty tweaked by Sebastian Hahn to remove references to unused junit.
2013-08-22 16:13:31 +02:00

70 lines
2.2 KiB
XML

<project default="compile" name="ERNIE" basedir=".">
<property name="sources" value="src/"/>
<property name="classes" value="classes/"/>
<property name="docs" value="javadoc/"/>
<property name="name" value="ERNIE"/>
<path id="classpath">
<pathelement path="${classes}"/>
<fileset dir="/usr/share/java">
<include name="commons-codec.jar"/>
<include name="commons-compress.jar"/>
</fileset>
</path>
<target name="init">
<mkdir dir="${classes}"/>
<copy file="config.template" tofile="config"/>
</target>
<target name="compile" depends="init">
<javac srcdir="${sources}"
destdir="${classes}"
excludes="org/torproject/ernie/web/"
debug="true" debuglevel="lines,source"
includeantruntime="false">
<classpath refid="classpath"/>
</javac>
</target>
<target name="docs">
<mkdir dir="${docs}"/>
<javadoc destdir="${docs}">
<classpath refid="classpath"/>
<fileset dir="${sources}/" includes="**/*.java" />
</javadoc>
</target>
<target name="bridgedescs" depends="compile">
<java fork="true"
maxmemory="2048m"
classname="org.torproject.ernie.db.bridgedescs.SanitizedBridgesWriter">
<classpath refid="classpath"/>
</java>
</target>
<target name="bridgepools" depends="compile">
<java fork="true"
maxmemory="2048m"
classname="org.torproject.ernie.db.bridgepools.BridgePoolAssignmentsProcessor">
<classpath refid="classpath"/>
</java>
</target>
<target name="exitlists" depends="compile">
<java fork="true"
maxmemory="2048m"
classname="org.torproject.ernie.db.exitlists.ExitListDownloader">
<classpath refid="classpath"/>
</java>
</target>
<target name="relaydescs" depends="compile">
<java fork="true"
maxmemory="2048m"
classname="org.torproject.ernie.db.relaydescs.ArchiveWriter">
<classpath refid="classpath"/>
</java>
</target>
<target name="torperf" depends="compile">
<java fork="true"
maxmemory="2048m"
classname="org.torproject.ernie.db.torperf.TorperfDownloader">
<classpath refid="classpath"/>
</java>
</target>
</project>