Add -no_internal flag to tools/gradle.py
Bug: 136594736
Change-Id: Id2fbeb70fd5b9adfe68f4ffd62c0f94c0fb1f25e
diff --git a/tools/gradle.py b/tools/gradle.py
index 6a9bd16..842816e 100755
--- a/tools/gradle.py
+++ b/tools/gradle.py
@@ -26,6 +26,9 @@
def ParseOptions():
parser = argparse.ArgumentParser(description = 'Call gradle.')
+ parser.add_argument('--no-internal', '--no_internal',
+ help='Do not build with support for Google internal tests.',
+ default=False, action='store_true')
parser.add_argument('--java-home', '--java_home',
help='Use a custom java version to run gradle.')
return parser.parse_known_args()
@@ -96,6 +99,8 @@
(options, args) = ParseOptions()
if options.java_home:
args.append('-Dorg.gradle.java.home=' + options.java_home)
+ if options.no_internal:
+ args.append('-Pno_internal')
return RunGradle(args)
if __name__ == '__main__':