]> git.saurik.com Git - android/aapt.git/commit
Add --error-on-failed-insert option to aapt. do not merge.
authorXavier Ducrohet <xav@android.com>
Thu, 6 Sep 2012 00:49:21 +0000 (17:49 -0700)
committerXavier Ducrohet <xav@android.com>
Wed, 26 Sep 2012 22:05:22 +0000 (15:05 -0700)
commita1cc551d359ff0c35ffe148d4b3855eb19a24070
tree629af8e8ed8c21cefbabc7cbb01c48a3c87f8672
parentc0de4d196e974fcd58060efe8a00776d3d70ad76
Add --error-on-failed-insert option to aapt. do not merge.

The new SDK build system give the ability to insert
versionCode/Name and min/targetSdkVersion in the manifest
but aapt won't replace those if they already exist.

The main problem is that aapt doesn't actually fail when
it doesn't replace them, making the output not what the
developer wanted.

This patch set adds an option to aapt to make it return
an error if the insert failed because the attribute
already existed.

Cherry-pick from 7714a2429b192c88e134ff67b969121bbaeb5457

Change-Id: I8938ec1238da407a8562c974e9598db39001ffd9
Bundle.h
Main.cpp
Resource.cpp