From: Raphael Date: Thu, 24 Sep 2009 22:30:53 +0000 (-0700) Subject: AAPT: Ignore visual source safe files in resources X-Git-Url: https://git.saurik.com/android/aapt.git/commitdiff_plain/ce7043662fd164473ca829e06a75310a9dcde230 AAPT: Ignore visual source safe files in resources BUG 1895888 --- diff --git a/AaptAssets.cpp b/AaptAssets.cpp index b6b0e63..c346b90 100644 --- a/AaptAssets.cpp +++ b/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;