| Index: build/android/gyp/jar.py
|
| diff --git a/build/android/gyp/jar.py b/build/android/gyp/jar.py
|
| index 48abf5edb7d41491c7524cdb9a414c8565394033..9d5639a466f4c95991028f943dab692352b96719 100755
|
| --- a/build/android/gyp/jar.py
|
| +++ b/build/android/gyp/jar.py
|
| @@ -4,7 +4,6 @@
|
| # 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
|
| @@ -45,9 +44,8 @@ def Jar(class_files, classes_dir, jar_path, manifest_file=None):
|
|
|
| def JarDirectory(classes_dir, excluded_classes, jar_path, manifest_file=None):
|
| class_files = build_utils.FindInDirectory(classes_dir, '*.class')
|
| - for exclude in excluded_classes:
|
| - class_files = filter(
|
| - lambda f: not fnmatch.fnmatch(f, exclude), class_files)
|
| + class_files = [f for f in class_files
|
| + if not build_utils.MatchesGlob(f, excluded_classes)]
|
|
|
| Jar(class_files, classes_dir, jar_path, manifest_file=manifest_file)
|
|
|
|
|