2008-05-02 15:18:38 -07:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--
|
2008-06-19 13:56:24 -07:00
|
|
|
Copyright 2008 ZXing authors
|
2008-05-02 15:18:38 -07:00
|
|
|
|
|
|
|
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="zxingorg" basedir="." default="build">
|
|
|
|
|
|
|
|
<property file="../build.properties"/>
|
2009-08-13 04:11:48 -07:00
|
|
|
<!--<property file="secrets.properties"/>-->
|
2008-05-02 15:18:38 -07:00
|
|
|
|
|
|
|
<target name="init">
|
2008-07-15 16:41:24 -07:00
|
|
|
<tstamp/>
|
2008-05-02 15:18:38 -07:00
|
|
|
<fail message="Please build 'core' first">
|
|
|
|
<condition>
|
|
|
|
<not>
|
|
|
|
<available file="../core/core.jar" type="file"/>
|
|
|
|
</not>
|
|
|
|
</condition>
|
|
|
|
</fail>
|
|
|
|
<fail message="Please build 'javase' first">
|
|
|
|
<condition>
|
|
|
|
<not>
|
|
|
|
<available file="../javase/javase.jar" type="file"/>
|
|
|
|
</not>
|
|
|
|
</condition>
|
|
|
|
</fail>
|
2009-06-26 11:08:05 -07:00
|
|
|
<fail message="Please build project javadoc first">
|
|
|
|
<condition>
|
|
|
|
<not>
|
|
|
|
<available file="../docs/javadoc" type="dir"/>
|
|
|
|
</not>
|
|
|
|
</condition>
|
|
|
|
</fail>
|
2008-07-15 16:41:24 -07:00
|
|
|
<fail message="Please set 'tomcat-home' in build.properties">
|
|
|
|
<condition>
|
|
|
|
<not>
|
|
|
|
<available file="${tomcat-home}" type="dir"/>
|
|
|
|
</not>
|
|
|
|
</condition>
|
|
|
|
</fail>
|
2008-05-02 15:18:38 -07:00
|
|
|
</target>
|
|
|
|
|
2008-07-15 16:41:24 -07:00
|
|
|
<target name="build" depends="init">
|
|
|
|
<mkdir dir="web/WEB-INF/classes"/>
|
2008-05-02 15:18:38 -07:00
|
|
|
<copy file="../core/core.jar" todir="web/WEB-INF/lib" overwrite="true"/>
|
|
|
|
<copy file="../javase/javase.jar" todir="web/WEB-INF/lib" overwrite="true"/>
|
|
|
|
<javac srcdir="src"
|
|
|
|
destdir="web/WEB-INF/classes"
|
|
|
|
source="1.5"
|
|
|
|
target="1.5"
|
|
|
|
optimize="true"
|
|
|
|
debug="true"
|
|
|
|
deprecation="true">
|
2008-07-15 16:41:24 -07:00
|
|
|
<classpath>
|
|
|
|
<fileset dir="web/WEB-INF/lib">
|
|
|
|
<include name="*.jar"/>
|
|
|
|
</fileset>
|
|
|
|
<pathelement location="${tomcat-home}/lib/servlet-api.jar"/>
|
|
|
|
</classpath>
|
|
|
|
</javac>
|
2009-08-04 01:54:02 -07:00
|
|
|
<!--
|
|
|
|
<copy file="web/WEB-INF/web.xml" tofile="web/WEB-INF/web.xml" overwrite="true">
|
2008-05-02 15:18:38 -07:00
|
|
|
<filterset>
|
|
|
|
<filter token="EMAIL_PASSWORD" value="${emailPassword}"/>
|
|
|
|
</filterset>
|
|
|
|
</copy>
|
2009-08-04 01:54:02 -07:00
|
|
|
-->
|
2009-08-13 04:11:48 -07:00
|
|
|
<war warfile="w.war" webxml="web/WEB-INF/web.xml">
|
2008-05-02 15:18:38 -07:00
|
|
|
<lib dir="web/WEB-INF/lib">
|
|
|
|
<include name="*.jar"/>
|
|
|
|
</lib>
|
|
|
|
<classes dir="web/WEB-INF/classes"/>
|
|
|
|
<fileset dir="web">
|
|
|
|
<include name="*.jspx"/>
|
2008-05-11 11:01:23 -07:00
|
|
|
<include name="*.png"/>
|
2009-08-13 04:11:48 -07:00
|
|
|
<include name="**/*.jad"/>
|
|
|
|
<include name="**/*.jar"/>
|
2008-05-02 15:18:38 -07:00
|
|
|
</fileset>
|
2009-06-26 11:08:05 -07:00
|
|
|
<fileset dir="..">
|
|
|
|
<include name="docs/**"/>
|
|
|
|
</fileset>
|
2008-05-02 15:18:38 -07:00
|
|
|
</war>
|
|
|
|
</target>
|
|
|
|
|
2008-07-15 16:41:24 -07:00
|
|
|
<target name="clean">
|
2008-06-16 10:32:16 -07:00
|
|
|
<delete dir="web/WEB-INF/classes"/>
|
2008-05-11 11:01:23 -07:00
|
|
|
<delete file="web/WEB-INF/lib/core.jar"/>
|
|
|
|
<delete file="web/WEB-INF/lib/javase.jar"/>
|
2009-09-16 03:39:53 -07:00
|
|
|
<delete file="w.war"/>
|
2008-05-02 15:18:38 -07:00
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|