mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
2403: Use manifestclasspath to avoid classpath too long in command line
This commit is contained in:
parent
bb9023d0f9
commit
60ab75240a
@ -5,9 +5,8 @@
|
||||
<project name="org.sleuthkit.autopsy.testing" default="netbeans" basedir=".">
|
||||
<description>Builds, tests, and runs the project org.sleuthkit.autopsy.testing.</description>
|
||||
<import file="nbproject/build-impl.xml"/>
|
||||
|
||||
|
||||
|
||||
<property name="regression" value="qa-functional"/>
|
||||
|
||||
<target name="check-args">
|
||||
<fail message="Missing required argument: img_path" unless="img_path"/>
|
||||
<fail message="Missing required argument: gold_path" unless="gold_path"/>
|
||||
@ -17,13 +16,29 @@
|
||||
<fail message="Missing required argument: keyword_path" unless="keyword_path"/>
|
||||
</target>
|
||||
|
||||
<target name="regression-test" depends="check-args,init,test-init,test-build" if="exists.test.qa-functional.src.dir">
|
||||
<test test.type="qa-functional"/>
|
||||
<target name="manifest-classpath">
|
||||
<manifestclasspath property="tem.classpath" jarfile="parthing.jar">
|
||||
<classpath refid="test.${regression}.run.cp"/>
|
||||
</manifestclasspath>
|
||||
<jar destfile="pathing.jar" basedir="build/classes">
|
||||
<manifest>
|
||||
<attribute name="Class-Path" value="${tem.classpath}"/>
|
||||
</manifest>
|
||||
</jar>
|
||||
<path id="test.classpath">
|
||||
<pathelement path="pathing.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"/>
|
||||
</target>
|
||||
|
||||
<macrodef name="test">
|
||||
<attribute name="test.type"/>
|
||||
<attribute name="disable.apple.ui" default="false"/>
|
||||
|
||||
<sequential>
|
||||
<property name="test.config" value="default"/>
|
||||
<property name="test.config.default.includes" value="**/*Test.class"/>
|
||||
@ -36,7 +51,7 @@
|
||||
<batchtest todir="${build.test.@{test.type}.results.dir}">
|
||||
<fileset dir="${build.test.@{test.type}.classes.dir}" includes="${test.includes}" excludes="${test.excludes}"/>
|
||||
</batchtest>
|
||||
<classpath refid="test.@{test.type}.run.cp"/>
|
||||
<classpath refid="test.classpath"/>
|
||||
<syspropertyset refid="test.@{test.type}.properties"/>
|
||||
<jvmarg line="${test.bootclasspath.prepend.args}"/>
|
||||
<jvmarg line="${test.run.args}"/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user