mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
2.1 KiB
75 lines
2.1 KiB
12 years ago
|
<project>
|
||
11 years ago
|
<property file="ant-${opencv.build.type}.properties"/>
|
||
10 years ago
|
<property name="test.dir" value="testResults"/>
|
||
|
<property name="build.dir" value="build"/>
|
||
11 years ago
|
|
||
12 years ago
|
<path id="master-classpath">
|
||
|
<fileset dir="lib">
|
||
|
<include name="*.jar"/>
|
||
|
</fileset>
|
||
|
<fileset dir="bin">
|
||
|
<include name="*.jar"/>
|
||
|
</fileset>
|
||
|
</path>
|
||
|
|
||
|
<target name="clean">
|
||
|
<delete dir="build"/>
|
||
10 years ago
|
<delete dir="${test.dir}"/>
|
||
12 years ago
|
</target>
|
||
|
|
||
|
<target name="compile">
|
||
|
<mkdir dir="build/classes"/>
|
||
|
|
||
12 years ago
|
<javac sourcepath="" srcdir="src" destdir="build/classes" includeantruntime="false" >
|
||
12 years ago
|
<include name="**/*.java"/>
|
||
|
<classpath refid="master-classpath"/>
|
||
|
</javac>
|
||
|
</target>
|
||
|
|
||
|
<target name="jar">
|
||
|
<mkdir dir="build/jar"/>
|
||
|
<jar destfile="build/jar/opencv-test.jar" basedir="build/classes">
|
||
|
<manifest>
|
||
12 years ago
|
<attribute name="Main-Class" value="org.opencv.test.OpenCVTestRunner"/>
|
||
12 years ago
|
</manifest>
|
||
|
</jar>
|
||
|
</target>
|
||
|
|
||
|
<target name="test">
|
||
10 years ago
|
<mkdir dir="${test.dir}"/>
|
||
12 years ago
|
<junit printsummary="true" haltonfailure="false" haltonerror="false" showoutput="false" logfailedtests="true" maxmemory="256m">
|
||
11 years ago
|
<sysproperty key="java.library.path" path="${opencv.lib.path}"/>
|
||
|
<env key="PATH" path="${opencv.lib.path}"/>
|
||
12 years ago
|
<classpath refid="master-classpath"/>
|
||
|
<classpath>
|
||
12 years ago
|
<pathelement location="build/classes"/>
|
||
12 years ago
|
</classpath>
|
||
|
|
||
|
<formatter type="xml"/>
|
||
|
|
||
10 years ago
|
<batchtest fork="yes" todir="${test.dir}">
|
||
12 years ago
|
<zipfileset src="build/jar/opencv-test.jar" includes="**/*.class" excludes="**/OpenCVTest*">
|
||
|
<exclude name="**/*$*.class"/>
|
||
|
</zipfileset>
|
||
12 years ago
|
</batchtest>
|
||
|
</junit>
|
||
10 years ago
|
<junitreport todir="${test.dir}">
|
||
|
<fileset dir="${test.dir}">
|
||
|
<include name="TEST-*.xml"/>
|
||
|
</fileset>
|
||
|
<report format="noframes" todir="${test.dir}"/>
|
||
|
</junitreport>
|
||
12 years ago
|
</target>
|
||
|
|
||
12 years ago
|
<target name="build">
|
||
|
<antcall target="compile"/>
|
||
|
<antcall target="jar"/>
|
||
|
</target>
|
||
|
|
||
12 years ago
|
<target name="buildAndTest">
|
||
|
<antcall target="compile"/>
|
||
|
<antcall target="jar"/>
|
||
|
<antcall target="test"/>
|
||
|
</target>
|
||
11 years ago
|
</project>
|