Fixed ant junit test exec
This commit is contained in:
parent
660f9c4479
commit
c4c1c14651
2 changed files with 56 additions and 55 deletions
|
|
@ -28,7 +28,6 @@
|
||||||
</path>
|
</path>
|
||||||
|
|
||||||
<path id="classpath.test">
|
<path id="classpath.test">
|
||||||
<pathelement location="${libDir}/junit-4.12.jar" />
|
|
||||||
<pathelement location="${buildTestDir}" />
|
<pathelement location="${buildTestDir}" />
|
||||||
<!--include libraries used for building-->
|
<!--include libraries used for building-->
|
||||||
<path refid="classpath.build"/>
|
<path refid="classpath.build"/>
|
||||||
|
|
@ -47,8 +46,9 @@
|
||||||
|
|
||||||
<target name="test" depends="build-test">
|
<target name="test" depends="build-test">
|
||||||
<mkdir dir="${reportsDir}" />
|
<mkdir dir="${reportsDir}" />
|
||||||
<junit printsummary="yes" haltonfailure="false">
|
<junit printsummary="yes" haltonfailure="false" fork="true">
|
||||||
<classpath refid="classpath.test" />
|
<classpath refid="classpath.test" />
|
||||||
|
<formatter type="plain" usefile="false" /> <!-- to screen -->
|
||||||
<formatter type="xml" /> <!-- to file -->
|
<formatter type="xml" /> <!-- to file -->
|
||||||
|
|
||||||
<batchtest todir="${reportsDir}">
|
<batchtest todir="${reportsDir}">
|
||||||
|
|
@ -72,7 +72,8 @@
|
||||||
<copy file="${gitRoot}/hal-default.db" todir="${releaseDir}" />
|
<copy file="${gitRoot}/hal-default.db" todir="${releaseDir}" />
|
||||||
<copy file="${gitRoot}/logging.properties" todir="${releaseDir}" />
|
<copy file="${gitRoot}/logging.properties" todir="${releaseDir}" />
|
||||||
<copy file="${gitRoot}/run.sh" todir="${releaseDir}" />
|
<copy file="${gitRoot}/run.sh" todir="${releaseDir}" />
|
||||||
<copydir src="${libDir}" dest="${releaseDir}/lib" excludes="junit-*.jar" />
|
<copydir src="${libDir}" dest="${releaseDir}/lib"
|
||||||
|
excludes="junit-*.jar,hamcrest-*.jar" />
|
||||||
<copydir src="resource/web" dest="${releaseDir}/resource/web" />
|
<copydir src="resource/web" dest="${releaseDir}/resource/web" />
|
||||||
<jar destfile="${releaseDir}/hal.jar" basedir="${buildDir}" />
|
<jar destfile="${releaseDir}/hal.jar" basedir="${buildDir}" />
|
||||||
</target>
|
</target>
|
||||||
|
|
|
||||||
BIN
lib/hamcrest-core-1.3.jar
Executable file
BIN
lib/hamcrest-core-1.3.jar
Executable file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue