2007-10-23 12:12:27 -07:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2007-11-28 09:19:36 -08:00
|
|
|
|
|
|
|
<!--
|
2008-06-19 13:56:24 -07:00
|
|
|
Copyright 2007 ZXing authors
|
2007-11-28 09:19:36 -08:00
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
-->
|
|
|
|
|
2007-10-23 12:12:27 -07:00
|
|
|
<project name="core" default="build">
|
|
|
|
|
2007-11-14 07:27:06 -08:00
|
|
|
<property file="../build.properties"/>
|
2007-10-23 12:12:27 -07:00
|
|
|
|
|
|
|
<target name="init">
|
|
|
|
<tstamp/>
|
2007-11-26 12:04:32 -08:00
|
|
|
</target>
|
|
|
|
|
2011-11-02 12:34:19 -07:00
|
|
|
<target name="build" depends="init">
|
2007-10-23 12:12:27 -07:00
|
|
|
<mkdir dir="build"/>
|
|
|
|
<javac srcdir="src"
|
|
|
|
destdir="build"
|
2011-11-02 04:16:30 -07:00
|
|
|
source="6"
|
|
|
|
target="6"
|
2007-10-23 12:12:27 -07:00
|
|
|
optimize="true"
|
2011-11-02 12:34:19 -07:00
|
|
|
debug="true"
|
2007-10-23 12:12:27 -07:00
|
|
|
deprecation="true"
|
2010-10-25 14:03:11 -07:00
|
|
|
fork="true"
|
2011-11-02 12:34:19 -07:00
|
|
|
includeantruntime="false">
|
|
|
|
</javac>
|
|
|
|
<jar jarfile="core.jar" basedir="build"/>
|
2008-06-20 08:22:45 -07:00
|
|
|
</target>
|
|
|
|
|
2011-11-02 12:34:19 -07:00
|
|
|
<target name="export" depends="build">
|
|
|
|
<jar jarfile="core.jar" basedir="build"/>
|
|
|
|
<copy file="core.jar" todir="../android/libs" overwrite="true"/>
|
|
|
|
<copy file="core.jar" todir="../androidtest/libs" overwrite="true"/>
|
2009-12-20 12:08:32 -08:00
|
|
|
</target>
|
|
|
|
|
2008-06-12 10:11:07 -07:00
|
|
|
<target name="build-test" depends="init,build">
|
2007-11-14 07:27:06 -08:00
|
|
|
<mkdir dir="build-test"/>
|
|
|
|
<javac srcdir="test/src"
|
|
|
|
destdir="build-test"
|
|
|
|
debug="true"
|
2010-10-25 14:03:11 -07:00
|
|
|
deprecation="true"
|
|
|
|
includeantruntime="false">
|
2007-11-14 07:27:06 -08:00
|
|
|
<classpath>
|
2008-06-12 08:55:42 -07:00
|
|
|
<pathelement location="core.jar"/>
|
2012-11-26 14:51:07 -08:00
|
|
|
<pathelement location="lib/junit-4.11.jar"/>
|
2007-11-14 07:27:06 -08:00
|
|
|
</classpath>
|
|
|
|
</javac>
|
2008-04-18 10:03:04 -07:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="test-blackbox" depends="build-test">
|
2008-08-06 13:26:05 -07:00
|
|
|
<parallel failonany="true">
|
2011-05-13 14:42:52 -07:00
|
|
|
<antcall target="test-blackbox-subset">
|
|
|
|
<param name="subdir" value="aztec"/>
|
|
|
|
</antcall>
|
2008-08-06 13:26:05 -07:00
|
|
|
<antcall target="test-blackbox-subset">
|
|
|
|
<param name="subdir" value="datamatrix"/>
|
|
|
|
</antcall>
|
|
|
|
<antcall target="test-blackbox-subset">
|
|
|
|
<param name="subdir" value="negative"/>
|
|
|
|
</antcall>
|
|
|
|
<antcall target="test-blackbox-subset">
|
|
|
|
<param name="subdir" value="oned"/>
|
|
|
|
</antcall>
|
2012-11-04 06:49:51 -08:00
|
|
|
<antcall target="test-blackbox-subset">
|
|
|
|
<param name="subdir" value="oned/rss"/>
|
|
|
|
</antcall>
|
|
|
|
<antcall target="test-blackbox-subset">
|
|
|
|
<param name="subdir" value="oned/rss/expanded"/>
|
|
|
|
</antcall>
|
2009-06-30 11:51:43 -07:00
|
|
|
<antcall target="test-blackbox-subset">
|
|
|
|
<param name="subdir" value="pdf417"/>
|
|
|
|
</antcall>
|
2008-08-06 13:26:05 -07:00
|
|
|
<antcall target="test-blackbox-subset">
|
|
|
|
<param name="subdir" value="qrcode"/>
|
|
|
|
</antcall>
|
|
|
|
</parallel>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="test-blackbox-subset">
|
2008-01-22 11:59:11 -08:00
|
|
|
<junit printsummary="on" haltonfailure="on" haltonerror="on" fork="true" dir=".">
|
2007-11-14 07:27:06 -08:00
|
|
|
<formatter type="plain" usefile="false"/>
|
|
|
|
<classpath>
|
2008-06-12 08:55:42 -07:00
|
|
|
<pathelement location="core.jar"/>
|
2007-11-29 11:44:05 -08:00
|
|
|
<pathelement location="build-test"/>
|
2012-11-26 14:51:07 -08:00
|
|
|
<pathelement location="lib/junit-4.11.jar"/>
|
2007-11-14 07:27:06 -08:00
|
|
|
</classpath>
|
|
|
|
<assertions>
|
|
|
|
<enable/>
|
|
|
|
</assertions>
|
2011-05-13 14:42:52 -07:00
|
|
|
<jvmarg value="-Djava.awt.headless=true"/>
|
2012-11-03 18:21:38 -07:00
|
|
|
<jvmarg value="-DexplicitLuminanceConversion=true"/>
|
2007-11-14 07:27:06 -08:00
|
|
|
<batchtest>
|
|
|
|
<fileset dir="test/src">
|
2008-08-06 13:26:05 -07:00
|
|
|
<include name="**/${subdir}/*BlackBox*TestCase.java"/>
|
2009-12-20 12:08:32 -08:00
|
|
|
<exclude name="**/Abstract*.java"/>
|
2007-11-14 07:27:06 -08:00
|
|
|
</fileset>
|
|
|
|
</batchtest>
|
|
|
|
</junit>
|
|
|
|
</target>
|
|
|
|
|
2008-04-18 10:03:04 -07:00
|
|
|
<target name="test-unit" depends="build-test">
|
|
|
|
<junit printsummary="on" haltonfailure="on" haltonerror="on" fork="true" dir=".">
|
|
|
|
<formatter type="plain" usefile="false"/>
|
|
|
|
<classpath>
|
2008-06-12 08:55:42 -07:00
|
|
|
<pathelement location="core.jar"/>
|
2008-04-18 10:03:04 -07:00
|
|
|
<pathelement location="build-test"/>
|
2012-11-26 14:51:07 -08:00
|
|
|
<pathelement location="lib/junit-4.11.jar"/>
|
2008-04-18 10:03:04 -07:00
|
|
|
</classpath>
|
|
|
|
<assertions>
|
|
|
|
<enable/>
|
|
|
|
</assertions>
|
2010-08-13 10:20:42 -07:00
|
|
|
<jvmarg value="-Djava.awt.headless=true"/>
|
2012-11-04 05:35:40 -08:00
|
|
|
<jvmarg value="-DexplicitLuminanceConversion=true"/>
|
2008-04-18 10:03:04 -07:00
|
|
|
<batchtest>
|
|
|
|
<fileset dir="test/src">
|
2009-12-20 12:08:32 -08:00
|
|
|
<include name="**/*TestCase.java"/>
|
2008-04-18 10:03:04 -07:00
|
|
|
<exclude name="**/*BlackBox*TestCase.java"/>
|
2008-11-15 05:50:18 -08:00
|
|
|
<exclude name="**/Abstract*.java"/>
|
2008-04-18 10:03:04 -07:00
|
|
|
</fileset>
|
|
|
|
</batchtest>
|
|
|
|
</junit>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="test" depends="test-unit,test-blackbox"/>
|
|
|
|
|
2007-10-23 12:12:27 -07:00
|
|
|
<target name="clean">
|
|
|
|
<delete dir="build"/>
|
2007-11-29 11:44:05 -08:00
|
|
|
<delete dir="build-test"/>
|
2007-10-23 12:12:27 -07:00
|
|
|
<delete file="core.jar"/>
|
2008-10-29 08:42:22 -07:00
|
|
|
<delete file="proguard-dump.txt"/>
|
2007-10-23 12:12:27 -07:00
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|