preverify classpath now should work on Windows
authorsrowen <srowen@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Thu, 22 Nov 2007 03:52:30 +0000 (03:52 +0000)
committersrowen <srowen@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Thu, 22 Nov 2007 03:52:30 +0000 (03:52 +0000)
git-svn-id: http://zxing.googlecode.com/svn/trunk@68 59b500cc-1b3d-0410-9834-0bbf25fbcc57

javame/build.xml

index 6c85976..aefb05f 100644 (file)
@@ -3,6 +3,17 @@
 
   <property file="../build.properties"/>
 
 
   <property file="../build.properties"/>
 
+  <path id="wtk-build-path">
+    <fileset dir="${WTK-home}/lib">
+      <include name="cldcapi11.jar"/>
+      <include name="midpapi20.jar"/>
+      <include name="mmapi.jar"/>
+      <include name="jsr234.jar"/>
+      <include name="satsa-apdu.jar"/>
+    </fileset>
+    <pathelement location="../core/core.jar"/>
+  </path>
+
   <target name="init">
     <tstamp/>
   </target>
   <target name="init">
     <tstamp/>
   </target>
            debug="true"
            deprecation="true"
            fork="true">
            debug="true"
            deprecation="true"
            fork="true">
-      <classpath>
-        <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="../core/core.jar"/>
-      </classpath>
+           <classpath refid="wtk-build-path"/>
     </javac>
 
     <unzip src="../core/core.jar" dest="build"/>
 
     <mkdir dir="build-j2me"/>
     </javac>
 
     <unzip src="../core/core.jar" dest="build"/>
 
     <mkdir dir="build-j2me"/>
+    <property name="preverify-classpath" refid="wtk-build-path"/>
     <exec executable="${WTK-home}/bin/preverify1.1">
     <exec executable="${WTK-home}/bin/preverify1.1">
-      <arg line="-classpath ${WTK-home}/lib/cldcapi11.jar:${WTK-home}/lib/midpapi20.jar:${WTK-home}/lib/mmapi.jar:${WTK-home}/lib/jsr234.jar:${WTK-home}/lib/satsa-apdu.jar -d build-j2me build"/>
+      <arg line="-classpath ${preverify-classpath} -d build-j2me build"/>
     </exec>
 
     <copy todir="build-j2me">
     </exec>
 
     <copy todir="build-j2me">