Added first cut at script to build a Blackberry client -- does not yet seem to work.
[zxing.git] / rim / build.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!--
4  Copyright 2007 Google Inc.
5
6  Licensed under the Apache License, Version 2.0 (the "License");
7  you may not use this file except in compliance with the License.
8  You may obtain a copy of the License at
9
10       http://www.apache.org/licenses/LICENSE-2.0
11
12  Unless required by applicable law or agreed to in writing, software
13  distributed under the License is distributed on an "AS IS" BASIS,
14  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  See the License for the specific language governing permissions and
16  limitations under the License.
17 -->
18
19 <project name="rim" default="build">
20
21   <property file="../build.properties"/>
22
23   <target name="init">
24     <tstamp/>
25     <fail message="Please set 'BB-JDK-home' in build.properties">
26       <condition>
27         <not>
28           <available file="${BB-JDK-home}" type="dir"/>
29         </not>
30       </condition>
31     </fail>
32   </target>
33
34   <target name="build" depends="init,clean">
35     <copy file="../javame/ZXingReaderBasic.jad" todir="."/>
36     <java jar="${BB-JDK-home}/rapc.jar" fork="true">
37       <arg value="import=${BB-JDK-home}/net_rim_api.jar"/>
38       <arg value="codename=ZXingReaderBasic"/>
39       <arg value="-midlet"/>
40       <arg value="jad=ZXingReaderBasic.jad"/>
41       <arg value="../javame/ZXingReaderBasic.jar"/>
42     </java>
43   </target>
44
45
46   <target name="clean">
47     <delete dir="." includes="ZXingReader*"/>
48   </target>
49
50 </project>