Compile the tests on every compilation.
This commit is contained in:
@@ -77,10 +77,9 @@
|
||||
<classpath refid="classpath"/>
|
||||
<compilerarg value="-Xlint"/>
|
||||
<compilerarg value="-Xlint:-serial"/>
|
||||
<compilerarg value="-Xlint:rawtypes"/>
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
<target name="test-compile" depends="compile" description="Compiles test classes.">
|
||||
<mkdir dir="${tclasses.dir}"/>
|
||||
<javac srcdir="${test.dir}" destdir="${tclasses.dir}" includeAntRuntime="false"
|
||||
debug="on" optimize="${build.optimize}" source="1.5" target="1.5" encoding="utf-8">
|
||||
@@ -107,7 +106,7 @@
|
||||
<target name="all" depends="clean,compile,javadoc,dist"
|
||||
description="Cleans and rebuilds everything including documentation."/>
|
||||
|
||||
<target name="tests" depends="test-compile" description="Runs the unit tests.">
|
||||
<target name="tests" depends="compile" description="Runs the unit tests.">
|
||||
<!-- allows passing -Dtest=NamePrefix to restrict to subset of tests -->
|
||||
<property name="test" value=""/>
|
||||
<taskdef name="unit" classpathref="classpath"
|
||||
|
||||
Reference in New Issue
Block a user