diff --git a/src/tools/java_resource_extractor/resource_extractor.py b/src/tools/java_resource_extractor/resource_extractor.py index f2d583be4..407158dc4 100644 --- a/src/tools/java_resource_extractor/resource_extractor.py +++ b/src/tools/java_resource_extractor/resource_extractor.py @@ -86,7 +86,10 @@ def IsValidPath(path): # allow META-INF/services at the root to support ServiceLoader if dirs[:2] == ['meta-inf', 'services']: return True - + # allow META-INF/*.version files to support AS Layout Inspector + if dirs[:1] == ['meta-inf'] and filename.endswith('.version'): + return True + return not any(dir in EXCLUDED_DIRECTORIES for dir in dirs)