Last updates to build files
authorsrowen <srowen@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Mon, 19 Nov 2007 18:33:02 +0000 (18:33 +0000)
committersrowen <srowen@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Mon, 19 Nov 2007 18:33:02 +0000 (18:33 +0000)
git-svn-id: http://zxing.googlecode.com/svn/trunk@60 59b500cc-1b3d-0410-9834-0bbf25fbcc57

build.properties
build.xml
core/build.xml

index f984bbb..0da4d5f 100644 (file)
@@ -1,2 +1,3 @@
+version=0.1
 WTK-home=/usr/local/WTK2.5.2
 JDK1.4-home=/usr/lib/jvm/j2sdk1.4.2_16
\ No newline at end of file
index 36ba5c1..a84f828 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -1,6 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project name="ZXing" default="build">
 
+  <property file="build.properties"/>
+
   <target name="build">
     <ant dir="core" target="build"/>
     <ant dir="javame" target="build"/>
@@ -8,4 +10,22 @@
     <ant dir="javase" target="build"/>
   </target>
 
+  <target name="clean">
+    <ant dir="core" target="clean"/>
+    <ant dir="javame" target="clean"/>
+    <ant dir="core-ext" target="clean"/>
+    <ant dir="javase" target="clean"/>
+  </target>
+
+  <target name="release">
+    <zip file="ZXing-${version}.zip" basedir=".">
+      <include name="COPYING"/>
+      <include name="README"/>
+      <include name="core/**"/>
+      <include name="javame/**"/>
+      <include name="core-ext/**"/>
+      <include name="javase/**"/>
+    </zip>
+  </target>
+
 </project>
index 6066b71..29b55ed 100644 (file)
@@ -50,6 +50,7 @@
 
   <target name="clean">
     <delete dir="build"/>
+    <delete dir="build-test"/>    
     <delete file="core.jar"/>
   </target>