• Home
  • Raw
  • Download

Lines Matching +full:nice +full:- +full:try

4 # Use of this source code is governed by a BSD-style license that can be
37 # TODO(wnwen): Re-enable this upstream.
79 # Android platform default is always UTF-8.
90 # Nice to be explicit about operators, but not necessary.
96 # in the https://chromium-review.googlesource.com/c/chromium/src/+/871630.
100 # Nice to have static inner classes but not necessary.
118 # Nice to fix but low priority.
124 # Nice to have better primitives.
128 # Nice to have better type safety.
141 # Nice to have.
143 # A lot of false-positives from CharSequence.equals().
145 # Nice to have.
147 # Nice to have.
149 # Nice to have.
151 # Nice to have.
153 # Nice to have.
155 # Nice to have.
157 # Nice to have.
161 # Nice to have.
163 # Nice to have.
165 # Nice to have.
167 # Nice to have.
169 # Nice to have.
171 # Nice to have.
173 # Nice to have.
175 # Nice to have.
177 # Nice to have.
179 # Nice to have.
192 # Nice to have.
222 recompile_re = re.compile(r'(Note: Recompile with -Xlint:.* for details.)$')
284 # Considers a leading * as a continuation of a multi-line comment (our
311 """Manages the creation of the class->source file .info file."""
316 # Map of .java path -> .srcjar/nested/path.java.
363 # This check is not necessary but nice to check this somewhere.
414 raise Exception('--enable-kythe-annotations requires '
418 '--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED',
419 '--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED',
420 '--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED',
421 '--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED',
422 '--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED',
423 '--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED',
424 '--add-exports=jdk.internal.opt/jdk.internal.opt=ALL-UNNAMED',
425 '-jar',
428 try:
454 try:
513 try:
533 # As a build speed optimization (crbug.com/1170778), re-compile only
534 # java files which have changed. Re-use old jar .info file.
566 # Extract META-INF/services/* so that it can be copied into the output
571 pattern='META-INF/services/*')
582 cmd += ['-d', classes_dir]
585 cmd += ['-classpath', ':'.join(options.classpath)]
604 end = time.time() - start
624 parser.add_option('--target-name', help='Fully qualified GN target name.')
625 parser.add_option('--skip-build-server',
628 parser.add_option('--use-build-server',
632 '--java-srcjars',
637 '--generated-dir',
640 parser.add_option('--classpath', action='append', help='Classpath to use.')
642 '--processorpath',
647 '--processor-arg',
652 '--additional-jar-file',
659 '--jar-info-exclude-globs',
662 '--chromium-code',
667 '--errorprone-path', help='Use the Errorprone compiler at this path.')
669 '--enable-errorprone',
673 '--warnings-as-errors',
676 parser.add_option('--jar-path', help='Jar output path.')
678 '--javac-arg',
683 '--enable-kythe-annotations',
688 '--header-jar',
690 'META-INF/services/* files to be included in the output jar.')
692 '--kotlin-jar-path',
746 '-g',
748 '--release',
752 '-encoding',
753 'UTF-8',
755 # See: http://blog.ltgt.net/most-build-tools-misuse-javac/
756 '-sourcepath',
758 # protobuf-generated files fail this check (javadoc has @deprecated,
760 '-Xlint:-dep-ann',
763 '-Xlint:-removal',
765 '-J-XX:+PerfDisableSharedMem',
769 # All errorprone args are passed space-separated in a single arg.
770 errorprone_flags = ['-Xplugin:ErrorProne']
773 errorprone_flags += ['-XepAllErrorsAsWarnings']
775 errorprone_flags += ['-XepDisableWarningsInGeneratedCode']
776 errorprone_flags.extend('-Xep:{}:OFF'.format(x)
778 errorprone_flags.extend('-Xep:{}:WARN'.format(x)
783 '-XepPatchLocation:IN_PLACE',
784 '-XepPatchChecks:,' + ','.join(ERRORPRONE_CHECKS_TO_APPLY)
790 '-J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED',
791 '-J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED',
792 '-J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED',
793 '-J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED',
794 '-J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED',
795 '-J--add-exports=jdk.compiler/com.sun.tools.javac.processing='
796 'ALL-UNNAMED',
797 '-J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED',
798 '-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED',
799 '-J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED',
800 '-J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED',
803 javac_args += ['-XDcompilePolicy=simple', ' '.join(errorprone_flags)]
809 javac_args += ['-XDshould-stop.ifNoError=FLOW']
813 # META-INF/. See the following link for reference:
815 javac_args.extend(['-proc:none'])
818 javac_args.extend(['-processorpath', ':'.join(options.processorpath)])
821 javac_args.extend(['-A%s' % arg])