From: Dan Bornstein Date: Wed, 15 Sep 2010 21:44:01 +0000 (-0700) Subject: Make the app processing variant of dex-preopt more consistent. X-Git-Tag: android-x86-4.0-r1~164^2~18^2~35 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=4c5d26bc;p=android-x86%2Fdalvik.git Make the app processing variant of dex-preopt more consistent. In particular, make it take paths relative to the product, just like how the bootclasspath is found and processed. Change-Id: I3f2a98a6bf6bbcf3145cf9be8edc1c3be4d763b9 --- diff --git a/tools/dex-preopt b/tools/dex-preopt index b2bc2c4d0..08c63705d 100755 --- a/tools/dex-preopt +++ b/tools/dex-preopt @@ -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