2007-12-11 12:18:57 -08:00
|
|
|
<?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="rim" default="build">
|
|
|
|
|
|
|
|
<property file="../build.properties"/>
|
|
|
|
|
|
|
|
<target name="init">
|
|
|
|
<tstamp/>
|
|
|
|
<fail message="Please set 'BB-JDK-home' in build.properties">
|
|
|
|
<condition>
|
|
|
|
<not>
|
|
|
|
<available file="${BB-JDK-home}" type="dir"/>
|
|
|
|
</not>
|
|
|
|
</condition>
|
2008-01-30 08:12:56 -08:00
|
|
|
</fail>
|
2008-02-14 12:25:54 -08:00
|
|
|
<fail message="Please build target 'build-basic' in 'javame' first">
|
2008-01-30 08:12:56 -08:00
|
|
|
<condition>
|
|
|
|
<not>
|
2008-02-14 13:14:40 -08:00
|
|
|
<available file="../javame/BarcodeReaderBasic.jar" type="file"/>
|
2008-01-30 08:12:56 -08:00
|
|
|
</not>
|
|
|
|
</condition>
|
2007-12-11 12:18:57 -08:00
|
|
|
</fail>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="build" depends="init,clean">
|
2008-02-14 13:14:40 -08:00
|
|
|
<copy file="../javame/BarcodeReaderBasic.jad" todir="."/>
|
2008-01-07 13:19:03 -08:00
|
|
|
<java jar="${BB-JDK-home}/bin/rapc.jar" fork="true">
|
|
|
|
<arg value="import=${BB-JDK-home}/lib/net_rim_api.jar"/>
|
2008-02-14 13:14:40 -08:00
|
|
|
<arg value="codename=BarcodeReaderBasic"/>
|
2007-12-11 12:18:57 -08:00
|
|
|
<arg value="-midlet"/>
|
2008-02-14 13:14:40 -08:00
|
|
|
<arg value="jad=BarcodeReaderBasic.jad"/>
|
|
|
|
<arg value="../javame/BarcodeReaderBasic.jar"/>
|
2007-12-11 12:18:57 -08:00
|
|
|
</java>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
|
|
<target name="clean">
|
2008-02-14 13:14:40 -08:00
|
|
|
<delete dir="." includes="BarcodeReader*"/>
|
2007-12-11 12:18:57 -08:00
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|