OSDN Git Service

Make the app processing variant of dex-preopt more consistent.
authorDan Bornstein <danfuzz@android.com>
Wed, 15 Sep 2010 21:44:01 +0000 (14:44 -0700)
committerDan Bornstein <danfuzz@android.com>
Wed, 15 Sep 2010 21:44:01 +0000 (14:44 -0700)
In particular, make it take paths relative to the product, just like
how the bootclasspath is found and processed.

Change-Id: I3f2a98a6bf6bbcf3145cf9be8edc1c3be4d763b9

tools/dex-preopt

index b2bc2c4..08c6370 100755 (executable)
@@ -254,7 +254,8 @@ if [ "${bootstrap}" = "yes" ]; then
     done
 else
     echo "Processing ${inputFile}" 1>&2
-    "${dexopt}" --preopt "${inputFile}" "${outputFile}" "${optimizeFlags}"
+    "${dexopt}" --preopt "${product}/${inputFile}" "${product}/${outputFile}" \
+        "${optimizeFlags}"
 
     status="$?"
     if [ "${status}" != "0" ]; then