Korean translation from Chang Hyun Park
[zxing.git] / bug / build.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!--
4  Copyright 2008 ZXing authors
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="bug" default="build">
20
21   <property file="../build.properties"/>
22
23   <target name="init">
24     <tstamp/>
25     <fail message="Please build 'core' first">
26       <condition>
27         <not>
28           <available file="../core/core.jar" type="file"/>
29         </not>
30       </condition>
31     </fail>
32     <fail message="Please install BUG .jar files in lib/ first">
33       <condition>
34         <not>
35           <available file="lib/com.buglabs.common_1.0.0.jar" type="file"/>
36           <!-- Actually we need even more, just checking for one -->
37         </not>
38       </condition>
39     </fail>
40   </target>
41
42   <target name="build" depends="init">
43     <mkdir dir="build"/>
44     <javac srcdir="src"
45            destdir="build"
46            source="1.5"
47            target="1.5"
48            optimize="true"
49            debug="true"
50            deprecation="true">
51       <classpath>
52         <fileset dir="lib">
53           <include name="*.jar"/>
54         </fileset>
55         <pathelement location="../core/core.jar"/>
56       </classpath>
57     </javac>
58     <jar jarfile="bug.jar" basedir="build">
59       <manifest>
60         <attribute name="Bundle-Name" value="BugBarcode"/>
61         <attribute name="Bundle-Vendor" value="ZXing Project"/>
62         <attribute name="Bundle-SymbolicName" value="BugBarcode"/>
63         <attribute name="Bundle-Version" value="${version}"/>
64         <attribute name="Bundle-Activator" value="com.google.zxing.client.bug.Activator"/>                
65         <attribute name="Import-Package" value="com.buglabs.application,com.buglabs.device,com.buglabs.bug.module.camera.pub,com.buglabs.bug.module.lcd.pub,com.buglabs.util,com.google.zxing,com.google.zxing.common,org.osgi.framework,org.osgi.util.tracker"/>
66         <attribute name="Bug-Bundle-Type" value="Application"/>
67       </manifest>
68     </jar>
69   </target>
70
71   <target name="clean">
72     <delete dir="build"/>
73     <delete file="bug.jar"/>
74   </target>
75
76 </project>