2403: comments and rename the temp jar file

This commit is contained in:
U-BASIS\zhaohui 2017-04-13 10:26:44 -04:00
parent 60ab75240a
commit e2a4ccd81f

View File

@ -15,24 +15,26 @@
<fail message="Missing required argument: nsrl_path" unless="nsrl_path"/>
<fail message="Missing required argument: keyword_path" unless="keyword_path"/>
</target>
<!-- use manifestclasspath (http://ant.apache.org/manual/Tasks/manifestclasspath.html) to put all the jar files that we need for junit/regression test
to a single jar file: allJarsInUse.jar. Then we put this new jar to classpath for testing program to avoid command line Java classpath too long problem. -->
<target name="manifest-classpath">
<manifestclasspath property="tem.classpath" jarfile="parthing.jar">
<manifestclasspath property="tem.classpath" jarfile="allJarsInUse.jar">
<classpath refid="test.${regression}.run.cp"/>
</manifestclasspath>
<jar destfile="pathing.jar" basedir="build/classes">
<jar destfile="allJarsInUse.jar" basedir="build/classes">
<manifest>
<attribute name="Class-Path" value="${tem.classpath}"/>
</manifest>
</jar>
<path id="test.classpath">
<pathelement path="pathing.jar"/>
<pathelement path="allJarsInUse.jar"/>
</path>
</target>
<target name="regression-test" depends="check-args,init,test-init,test-build, manifest-classpath" if="exists.test.qa-functional.src.dir">
<test test.type="${regression}"/>
<delete file="pathing.jar"/>
<delete file="allJarsInUse.jar"/>
</target>
<macrodef name="test">