]> git.saurik.com Git - android/aapt.git/commit - Bundle.h
Add --error-on-failed-insert option to aapt.
authorXavier Ducrohet <xav@android.com>
Thu, 6 Sep 2012 00:49:21 +0000 (17:49 -0700)
committerXavier Ducrohet <xav@android.com>
Wed, 12 Sep 2012 01:17:22 +0000 (18:17 -0700)
commit3b8c05ce0707be71abb209f7dbae564088426d87
tree6ffd7c1f9c279ebd0bebc33a816f9f4b6f93670c
parent9833539c7b8f55113f661e8b97013252469187f2
Add --error-on-failed-insert option to aapt.

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.

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