Lines Matching +full:jdk11 +full:- +full:build
4 # Use of this source code is governed by a BSD-style license that can be
20 import action_helpers # build_utils adds //build to sys.path.
22 …//chromium.googlesource.com/chromium/src/+/main/build/android/docs/lint.md' # pylint: disable=lin…
27 "Assert", # R8 --force-enable-assertions is used to enable java asserts.
32 "MissingApplicationIcon", # False positive for non-production targets.
70 """Returns relative path to top-level src dir."""
123 lint = ElementTree.SubElement(main_module, 'lint-checks')
170 uses_sdk = manifest.find('./uses-sdk')
172 uses_sdk = ElementTree.Element('uses-sdk')
189 root, encoding='utf-8')).toprettyxml(indent=' ').encode('utf-8'))
216 # Occasionally lint may crash due to re-using intermediate files from older
240 '-cp',
242 'org.chromium.build.CustomLint',
243 '--sdk-home',
245 '--jdk-home',
247 '--path-variables',
249 '--quiet', # Silences lint's "." progress updates.
250 '--stacktrace', # Prints full stacktraces for internal lint errors.
251 '--disable',
256 cmd.extend(['--disable', ','.join(_DISABLED_FOR_TESTS)])
259 manifest_path = os.path.join(build_utils.DIR_SOURCE_ROOT, 'build',
267 cmd.extend(['--config', generated_config_path])
335 cmd += ['--project', project_xml_path]
337 # This filter is necessary for JDK11.
367 end = time.time() - start
376 print('- For more help with lint in Chrome:', _LINT_MD_URL)
378 print('- DEBUG MODE: Here is the project.xml: {}'.format(
381 print('- Run with LINT_DEBUG=1 to enable lint configuration debugging')
390 parser.add_argument('--target-name', help='Fully qualified GN target name.')
391 parser.add_argument('--skip-build-server',
393 help='Avoid using the build server.')
394 parser.add_argument('--use-build-server',
396 help='Always use the build server.')
397 parser.add_argument('--lint-jar-path',
400 parser.add_argument('--custom-lint-jar-path',
403 parser.add_argument('--backported-methods',
405 parser.add_argument('--cache-dir',
409 parser.add_argument('--config-path', help='Path to lint suppressions file.')
410 parser.add_argument('--lint-gen-dir',
413 parser.add_argument('--stamp', help='Path to stamp upon success.')
414 parser.add_argument('--android-sdk-version',
417 parser.add_argument('--min-sdk-version',
420 parser.add_argument('--android-sdk-root',
423 parser.add_argument('--testonly',
428 parser.add_argument('--create-cache',
431 parser.add_argument('--warnings-as-errors',
434 parser.add_argument('--sources',
437 parser.add_argument('--aars', help='GN list of included aars.')
438 parser.add_argument('--srcjars', help='GN list of included srcjars.')
439 parser.add_argument('--manifest-path',
441 parser.add_argument('--extra-manifest-paths',
443 help='GYP-list of manifest paths to merge into the '
445 parser.add_argument('--resource-sources',
448 help='GYP-list of resource sources files, similar to '
450 parser.add_argument('--resource-zips',
453 help='GYP-list of resource zips, zip files of generated '
455 parser.add_argument('--classpath',
457 parser.add_argument('--baseline',
472 assert os.path.basename(args.baseline) == 'lint-baseline.xml', (
473 'The baseline file needs to be named "lint-baseline.xml" in order for '