Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Unified Diff: build/android/gyp/create_java_binary_script.py

Issue 1913593002: Enable emma code coverage for JUnit testcases. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: changed from root_out_dir to root_build_dir Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | build/config/android/internal_rules.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/gyp/create_java_binary_script.py
diff --git a/build/android/gyp/create_java_binary_script.py b/build/android/gyp/create_java_binary_script.py
index 721e96f8cfe6e569f78f48424060936fc68da2dd..2b6553d0bdaa8e16bee0da4aac746df805240218 100755
--- a/build/android/gyp/create_java_binary_script.py
+++ b/build/android/gyp/create_java_binary_script.py
@@ -37,6 +37,7 @@ if os.getcwd() != self_dir:
classpath = [os.path.join(offset, p) for p in classpath]
bootclasspath = [os.path.join(offset, p) for p in bootclasspath]
java_cmd = ["java"]
+{noverify_flag}
if bootclasspath:
java_cmd.append("-Xbootclasspath/p:" + ":".join(bootclasspath))
java_cmd.extend(
@@ -58,8 +59,16 @@ def main(argv):
help='Classpath for running the jar.')
parser.add_option('--bootclasspath', action='append', default=[],
help='zip/jar files to add to bootclasspath for java cmd.')
+ parser.add_option('--noverify', action='store_true',
+ help='JVM flag: noverify.')
+
options, extra_program_args = parser.parse_args(argv)
+ if (options.noverify):
+ noverify_flag = 'java_cmd.append("-noverify")'
+ else:
+ noverify_flag = ''
+
classpath = [options.jar_path]
for cp_arg in options.classpath:
classpath += build_utils.ParseGypList(cp_arg)
@@ -78,7 +87,8 @@ def main(argv):
bootclasspath=('"%s"' % '", "'.join(bootclasspath)
if bootclasspath else ''),
main_class=options.main_class,
- extra_program_args=repr(extra_program_args)))
+ extra_program_args=repr(extra_program_args),
+ noverify_flag=noverify_flag))
os.chmod(options.output, 0750)
« no previous file with comments | « no previous file | build/config/android/internal_rules.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698