mirror of
https://github.com/zxing/zxing.git
synced 2024-11-10 13:04:05 -08:00
e459482771
git-svn-id: https://zxing.googlecode.com/svn/trunk@87 59b500cc-1b3d-0410-9834-0bbf25fbcc57
85 lines
2.3 KiB
XML
85 lines
2.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--
|
|
Copyright 2007 Google Inc.
|
|
|
|
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.
|
|
-->
|
|
|
|
<project name="core" default="build">
|
|
|
|
<property file="../build.properties"/>
|
|
|
|
<path id="javame-compile-bootclasspath">
|
|
<fileset dir="${WTK-home}/lib">
|
|
<include name="cldcapi11.jar"/>
|
|
<include name="midpapi20.jar"/>
|
|
</fileset>
|
|
</path>
|
|
<property name="javame-compile-bootclasspath-path" refid="javame-compile-bootclasspath"/>
|
|
|
|
<target name="init">
|
|
<tstamp/>
|
|
</target>
|
|
|
|
<target name="build" depends="init">
|
|
<mkdir dir="build"/>
|
|
<javac srcdir="src"
|
|
destdir="build"
|
|
source="1.2"
|
|
target="1.2"
|
|
bootclasspath="${javame-compile-bootclasspath-path}"
|
|
optimize="true"
|
|
debug="true"
|
|
deprecation="true"
|
|
fork="true"/>
|
|
<jar jarfile="core.jar" basedir="build" level="9"/>
|
|
</target>
|
|
|
|
<target name="test" depends="init,build">
|
|
<mkdir dir="build-test"/>
|
|
<javac srcdir="test/src"
|
|
destdir="build-test"
|
|
debug="true"
|
|
deprecation="true">
|
|
<classpath>
|
|
<pathelement location="build"/>
|
|
<pathelement location="../javase/javase.jar"/>
|
|
</classpath>
|
|
</javac>
|
|
<junit printsummary="on" haltonfailure="on" haltonerror="on">
|
|
<formatter type="plain" usefile="false"/>
|
|
<classpath>
|
|
<pathelement location="build"/>
|
|
<pathelement location="build-test"/>
|
|
<pathelement location="../javase/javase.jar"/>
|
|
</classpath>
|
|
<assertions>
|
|
<enable/>
|
|
</assertions>
|
|
<batchtest>
|
|
<fileset dir="test/src">
|
|
<include name="**/*.java"/>
|
|
</fileset>
|
|
</batchtest>
|
|
</junit>
|
|
</target>
|
|
|
|
<target name="clean">
|
|
<delete dir="build"/>
|
|
<delete dir="build-test"/>
|
|
<delete file="core.jar"/>
|
|
</target>
|
|
|
|
</project>
|