Improved datamatrix reader with new algorithm
[zxing.git] / build.xml
index cda6f78..f2ededa 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
 <!--
- Copyright 2007 Google Inc.
+ Copyright 2007 ZXing authors
 
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
     <ant dir="core" target="build"/>
     <ant dir="javame" target="build"/>
     <ant dir="javase" target="build"/>
-    <ant dir="android" target="package"/>
+    <ant dir="android" target="compile"/>
+    <ant dir="androidtest" target="compile"/>
+    <ant dir="android-integration" target="build"/>
+    <!--<ant dir="zxingorg" target="build"/>-->
   </target>
 
   <target name="buildwithoutj2me">
     <ant dir="javame" target="clean"/>
     <ant dir="javase" target="clean"/>
     <ant dir="android" target="clean"/>
+    <ant dir="androidtest" target="clean"/>
+    <ant dir="android-integration" target="clean"/>
+    <ant dir="zxingorg" target="clean"/>
+    <delete dir="docs/javadoc"/>
   </target>
 
   <target name="test">
   </target>
 
   <target name="release" depends="build,clean,javadoc">
-    <zip file="ZXing-${version}.zip" level="9">
+    <zip file="ZXing-${version}.zip">
       <zipfileset dir="." prefix="zxing-${version}">
+        <exclude name="**/.*"/> <!-- exclude hidden files -->
+        <exclude name="**/.svn"/>
+        <exclude name="**/.iml"/>
+        <include name="AUTHORS"/>
         <include name="COPYING"/>
         <include name="README"/>
         <include name="CHANGES"/>
         <include name="build.xml"/>
         <include name="build.properties"/>
+        <include name="actionscript/**"/>
         <include name="android/**"/>
+        <include name="android-integration/**"/>
+        <include name="androidtest/**"/>
+        <include name="bug/**"/>
+        <exclude name="bug/lib/com.buglabs*"/> <!-- Cannot distributed GPLed libraries -->
         <include name="core/**"/>
+        <include name="cpp/**"/>
+        <include name="iphone/**"/>
         <include name="javame/**"/>
         <include name="javase/**"/>
-        <!-- Only include the build script for now -->
-        <include name="rim/build.xml"/>
+        <include name="rim/**"/>
         <include name="docs/**"/>
+        <include name="zxing.appspot.com/**"/>
+        <include name="zxingorg/**"/>
+        <exclude name="zxingorg/secrets.properties"/>
       </zipfileset>
     </zip>
   </target>
   <target name="javadoc">
     <mkdir dir="docs/javadoc"/>
     <javadoc destdir="docs/javadoc"
-             footer="&lt;script src=&quot;http://www.google-analytics.com/urchin.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;&lt;script type=&quot;text/javascript&quot;&gt;_uacct = &quot;UA-788492-5&quot;; urchinTracker();&lt;/script&gt;">
+             useexternalfile="true"
+             footer="&lt;script type=&quot;text/javascript&quot;&gt; var gaJsHost = ((&quot;https:&quot; == document.location.protocol) ?  &quot;https://ssl.&quot; : &quot;http://www.&quot;); document.write(unescape(&quot;%3Cscript src='&quot; + gaJsHost + &quot;google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E&quot;)); &lt;/script&gt; &lt;script type=&quot;text/javascript&quot;&gt; var pageTracker = _gat._getTracker(&quot;UA-788492-5&quot;); pageTracker._initData(); pageTracker._trackPageview(); &lt;/script&gt;">
       <sourcepath>
         <pathelement location="android/src"/>
+        <pathelement location="android/gen"/>        
         <pathelement location="core/src"/>
         <pathelement location="javame/src"/>
         <pathelement location="javase/src"/>
+        <pathelement location="zxingorg/src"/>
       </sourcepath>
       <classpath>
+        <!-- These are used with WTK 2.5.x -->
+        <!--
         <pathelement location="${WTK-home}/lib/cldcapi11.jar"/>
         <pathelement location="${WTK-home}/lib/midpapi20.jar"/>
         <pathelement location="${WTK-home}/lib/mmapi.jar"/>
         <pathelement location="${WTK-home}/lib/jsr234.jar"/>
-        <pathelement location="${android-home}/android.jar"/>
+        -->
+        <pathelement location="${WTK-home}/lib/cldc_1.1.jar"/>
+        <pathelement location="${WTK-home}/lib/midp_2.0.jar"/>
+        <pathelement location="${WTK-home}/lib/jsr135_1.2.jar"/>
+        <pathelement location="${WTK-home}/lib/jsr234_1.0.jar"/>
+        <pathelement location="${android-home}/platforms/android-8/android.jar"/>
+        <pathelement location="${tomcat-home}/lib/servlet-api.jar"/>
+        <fileset dir="zxingorg/web/WEB-INF/lib">
+          <include name="*.jar"/>
+        </fileset>
       </classpath>
     </javadoc>
   </target>