"Inline" library jars passed to ProGuard to avoid issues with path names with space...
[zxing.git] / javame / build.xml
index 47857ae..d8b0e4b 100644 (file)
     <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"/>