mirror of
https://github.com/torproject/collector.git
synced 2024-11-27 03:10:28 +00:00
12cdab447a
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.
70 lines
2.2 KiB
XML
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>
|
|
|