When patching or checking plugin versions, use *.gradle

Apparently all *.gradle files are valid, e.g. global.gradle.
This commit is contained in:
Daniel Martí 2015-04-06 17:42:26 +02:00
parent 021df3c424
commit acd49c6e4d
2 changed files with 12 additions and 7 deletions

View file

@ -430,7 +430,9 @@ def build_server(app, thisbuild, vcs, build_dir, output_dir, force):
def adapt_gradle(build_dir):
filename = 'build.gradle'
for root, dirs, files in os.walk(build_dir):
if filename in files:
for filename in files:
if not filename.endswith('.gradle'):
continue
path = os.path.join(root, filename)
logging.debug("Adapting %s at %s" % (filename, path))