Commit 17903586 authored by Mickaël Guessant's avatar Mickaël Guessant

Experimental: compile Junit tests

git-svn-id: https://svn.code.sf.net/p/davmail/code/trunk@2470 3d1905a2-6b24-0410-a738-b14d5a86fcbd
parent 22c0287e
......@@ -88,6 +88,37 @@
</copy>
</target>
<target name="test-compile" depends="compile">
<mkdir dir="target/test-classes"/>
<javac srcdir="src/test" destdir="target/test-classes" source="1.6" target="1.6" debug="on" encoding="UTF-8"
includeantruntime="false">
<classpath>
<path refid="classpath"/>
<pathelement location="target/classes"/>
</classpath>
</javac>
<copy todir="target/test-classes">
<fileset dir="src/test">
<include name="**/*"/>
<exclude name="**/*.java"/>
</fileset>
</copy>
</target>
<target name="test" depends="test-compile">
<junit printsummary="on" haltonfailure="no" fork="true">
<classpath>
<path refid="classpath"/>
<pathelement location="target/classes"/>
<pathelement location="target/test-classes"/>
</classpath>
<formatter type="brief" usefile="false" />
<batchtest>
<fileset dir="src/test" includes="**/Test*.java" />
</batchtest>
</junit>
</target>
<target name="dist-nsis" if="is.windows">
<taskdef name="nsis" classname="net.sf.nsisant.Task">
<classpath location="lib/nsisant-1.2.jar"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment