collector/build.xml
2012-05-11 15:42:00 +02:00

64 lines
2.0 KiB
XML

<project default="run" name="ERNIE" basedir=".">
<property name="sources" value="src/"/>
<property name="classes" value="classes/"/>
<property name="tests" value="test"/>
<property name="docs" value="javadoc/"/>
<property name="name" value="ERNIE"/>
<path id="classpath">
<pathelement path="${classes}"/>
<pathelement location="lib/commons-codec-1.4.jar"/>
<pathelement location="lib/commons-compress-1.0.jar"/>
<pathelement location="lib/junit-4.8.2.jar"/>
<pathelement location="lib/descriptor.jar"/>
</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="run" depends="compile">
<java fork="true"
maxmemory="1024m"
classname="org.torproject.ernie.db.Main">
<classpath refid="classpath"/>
</java>
</target>
<target name="docs">
<mkdir dir="${docs}"/>
<javadoc destdir="${docs}">
<classpath refid="classpath"/>
<fileset dir="${sources}/" includes="**/*.java" />
</javadoc>
</target>
<target name="test" depends="compile">
<javac destdir="${classes}"
srcdir="${tests}"
source="1.5"
target="1.5"
debug="true"
deprecation="true"
optimize="false"
failonerror="true"
includeantruntime="false">
<classpath refid="classpath"/>
</javac>
<junit haltonfailure="true" printsummary="off">
<classpath refid="classpath"/>
<formatter type="plain" usefile="false"/>
<batchtest>
<fileset dir="${classes}"
includes="**/*Test.class"/>
</batchtest>
</junit>
</target>
</project>