summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-09-24 18:36:37 -0400
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-09-24 18:36:37 -0400
commit20b394719daa218be7ff767fad024504f12e937b (patch)
tree2fbbcec5b27ce5d81ebd1edff2b0a9e53f5343c1
parentb9c932ba1203b477abbb0695d8b7162f45b4e91e (diff)
parent3cdfc042dca4264bdd2e51320f7edb81fd8f9ee0 (diff)
downloadframeworks_base-20b394719daa218be7ff767fad024504f12e937b.zip
frameworks_base-20b394719daa218be7ff767fad024504f12e937b.tar.gz
frameworks_base-20b394719daa218be7ff767fad024504f12e937b.tar.bz2
Merge change 26933 into eclair
* changes: AAPT: Ignore visual source safe files in resources
-rw-r--r--tools/aapt/AaptAssets.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/aapt/AaptAssets.cpp b/tools/aapt/AaptAssets.cpp
index b6b0e63..c346b90 100644
--- a/tools/aapt/AaptAssets.cpp
+++ b/tools/aapt/AaptAssets.cpp
@@ -55,6 +55,7 @@ static bool validateFileName(const char* fileName)
static bool isHidden(const char *root, const char *path)
{
+ const char *ext = NULL;
const char *type = NULL;
// Skip all hidden files.
@@ -83,6 +84,9 @@ static bool isHidden(const char *root, const char *path)
} else if (path[strlen(path)-1] == '~') {
// Skip suspected emacs backup files.
type = "backup";
+ } else if ((ext = strrchr(path, '.')) != NULL && strcmp(ext, ".scc") == 0) {
+ // Skip VisualSourceSafe files and don't chatter about it
+ return true;
} else {
// Let everything else through.
return false;