OSDN Git Service

Make ApkBuilder create filenames supported by older rules.
authorXavier Ducrohet <xav@android.com>
Wed, 26 Aug 2009 03:01:56 +0000 (20:01 -0700)
committerXavier Ducrohet <xav@android.com>
Wed, 26 Aug 2009 21:58:56 +0000 (14:58 -0700)
commit0614664583142fc9b83288734893a508823b3efd
treef0003bea3d6294b9b98cf2988ec4480cfc38c171
parent2328b4f3f56cd33deef5f9b21673dc072012e0d3
Make ApkBuilder create filenames supported by older rules.

'ant install' must know the debug apk filename so newer naming scheme breaks
on older rule files (1.5 and earlier).
The fix is to check for the presence of the property naming the debug,
signed, unaligned package. If the property is present, then we use
the new naming scheme ({base}[-{config}]-debug-unaligned.apk), else we use
the old one ({base}-[-{config}]-debug.apk).

Also merge the install/reinstall targets, since 'adb install -r <file>'
works even if the apk was not yet installed.

Change-Id: Id0670610a6539a3f48c955756955f950039c3cd0
tools/anttasks/src/com/android/ant/ApkBuilderTask.java
tools/eclipse/changes.txt
tools/scripts/android_rules.xml