"Inline" library jars passed to ProGuard to avoid issues with path names with space...
[zxing.git] / javame / build.xml
index 2271912..d8b0e4b 100644 (file)
           <available file="${WTK-home}/bin/proguard.jar" type="file"/>
         </not>
       </condition>
+    </fail>
+         <fail message="Please build 'core' first">
+      <condition>
+        <not>
+          <available file="../core/core.jar" type="file"/>
+        </not>
+      </condition>
     </fail>
   </target>
 
     <jar jarfile="${jar-name}.jar" basedir="build-j2me" manifest="src/com/google/zxing/client/j2me/MANIFEST.MF" level="9"/>
 
     <move file="${jar-name}.jar" tofile="temp.jar"/>
-    <java jar="${WTK-home}/bin/proguard.jar" fork="true">
+    <java jar="${WTK-home}/bin/proguard.jar" fork="true" failonerror="true">
       <arg value="-injars temp.jar"/>
       <arg value="-outjars ${jar-name}.jar"/>
-      <arg value="-libraryjars ${preverify-classpath}"/>
+      <arg value="-libraryjars ${WTK-home}/lib/cldcapi11.jar"/>
+      <arg value="-libraryjars ${WTK-home}/lib/midpapi20.jar"/>
+      <arg value="-libraryjars ${WTK-home}/lib/mmapi.jar"/>
+      <arg value="-libraryjars ${WTK-home}/lib/jsr234.jar"/>
+      <arg value="-libraryjars ../core/core.jar"/>
       <arg value="-microedition"/>
       <arg value="-keep public class com.google.zxing.client.j2me.ZXingMIDlet"/>
       <arg value="-keep public class com.google.zxing.qrcode.detector.DefaultGridSampler"/>