1 <?xml version="1.0" encoding="UTF-8"?>
3 Copyright 2008 ZXing authors
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
9 http://www.apache.org/licenses/LICENSE-2.0
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
17 <project name="zxingorg" basedir="." default="build">
19 <property file="../build.properties"/>
20 <property file="secrets.properties"/>
24 <fail message="Please build 'core' first">
27 <available file="../core/core.jar" type="file"/>
31 <fail message="Please build 'javase' first">
34 <available file="../javase/javase.jar" type="file"/>
38 <fail message="Please set 'tomcat-home' in build.properties">
41 <available file="${tomcat-home}" type="dir"/>
47 <target name="build" depends="init">
48 <mkdir dir="web/WEB-INF/classes"/>
49 <copy file="../core/core.jar" todir="web/WEB-INF/lib" overwrite="true"/>
50 <copy file="../javase/javase.jar" todir="web/WEB-INF/lib" overwrite="true"/>
52 destdir="web/WEB-INF/classes"
59 <fileset dir="web/WEB-INF/lib">
60 <include name="*.jar"/>
62 <pathelement location="${tomcat-home}/lib/servlet-api.jar"/>
65 <copy file="web/WEB-INF/web.xml.template" tofile="web/WEB-INF/web.xml" overwrite="true">
67 <filter token="EMAIL_PASSWORD" value="${emailPassword}"/>
70 <war warfile="zxingorg.war" webxml="web/WEB-INF/web.xml">
71 <lib dir="web/WEB-INF/lib">
72 <include name="*.jar"/>
74 <classes dir="web/WEB-INF/classes"/>
76 <include name="*.jspx"/>
77 <include name="*.png"/>
83 <delete dir="web/WEB-INF/web.xml"/>
84 <delete dir="web/WEB-INF/classes"/>
85 <delete file="web/WEB-INF/lib/core.jar"/>
86 <delete file="web/WEB-INF/lib/javase.jar"/>
87 <delete file="zxingorg.war"/>