</target>
<target name="test" depends="init,build">
+ <fail message="Please build 'javase' first">
+ <condition>
+ <not>
+ <available file="../javase/javase.jar" type="file"/>
+ </not>
+ </condition>
+ </fail>
<mkdir dir="build-test"/>
<javac srcdir="test/src"
destdir="build-test"
<classpath>
<pathelement location="build"/>
<pathelement location="../javase/javase.jar"/>
+ <pathelement location="lib/junit.jar"/>
</classpath>
</javac>
- <junit printsummary="on" haltonfailure="on" haltonerror="on">
+ <junit printsummary="on" haltonfailure="on" haltonerror="on" fork="true" dir=".">
<formatter type="plain" usefile="false"/>
<classpath>
<pathelement location="build"/>
<pathelement location="build-test"/>
- <pathelement location="../javase/javase.jar"/>
+ <pathelement location="../javase/javase.jar"/>
+ <pathelement location="lib/junit.jar"/>
</classpath>
<assertions>
<enable/>
</assertions>
<batchtest>
<fileset dir="test/src">
- <include name="**/*.java"/>
+ <include name="**/*TestCase.java"/>
+ <exclude name="com/google/zxing/common/AbstractBlackBoxTestCase.java"/>
</fileset>
</batchtest>
</junit>