Index: build/android/gyp/jar.py |
diff --git a/build/android/gyp/jar.py b/build/android/gyp/jar.py |
index 9d5639a466f4c95991028f943dab692352b96719..48abf5edb7d41491c7524cdb9a414c8565394033 100755 |
--- a/build/android/gyp/jar.py |
+++ b/build/android/gyp/jar.py |
@@ -4,6 +4,7 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
+import fnmatch |
import optparse |
import os |
import sys |
@@ -44,8 +45,9 @@ |
def JarDirectory(classes_dir, excluded_classes, jar_path, manifest_file=None): |
class_files = build_utils.FindInDirectory(classes_dir, '*.class') |
- class_files = [f for f in class_files |
- if not build_utils.MatchesGlob(f, excluded_classes)] |
+ for exclude in excluded_classes: |
+ class_files = filter( |
+ lambda f: not fnmatch.fnmatch(f, exclude), class_files) |
Jar(class_files, classes_dir, jar_path, manifest_file=manifest_file) |