• 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 '-jar',
426 try:
452 try:
511 try:
531 # As a build speed optimization (crbug.com/1170778), re-compile only
532 # java files which have changed. Re-use old jar .info file.
564 # Extract META-INF/services/* so that it can be copied into the output
569 pattern='META-INF/services/*')
580 cmd += ['-d', classes_dir]
583 cmd += ['-classpath', ':'.join(options.classpath)]
602 end = time.time() - start
622 parser.add_option('--target-name', help='Fully qualified GN target name.')
623 parser.add_option('--skip-build-server',
626 parser.add_option('--use-build-server',
630 '--java-srcjars',
635 '--generated-dir',
638 parser.add_option('--classpath', action='append', help='Classpath to use.')
640 '--processorpath',
645 '--processor-arg',
650 '--additional-jar-file',
657 '--jar-info-exclude-globs',
660 '--chromium-code',
665 '--gomacc-path', help='When set, prefix javac command with gomacc')
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',
749 '-g',
751 '--release',
755 '-encoding',
756 'UTF-8',
758 # See: http://blog.ltgt.net/most-build-tools-misuse-javac/
759 '-sourcepath',
761 # protobuf-generated files fail this check (javadoc has @deprecated,
763 '-Xlint:-dep-ann',
766 '-Xlint:-removal',
770 # All errorprone args are passed space-separated in a single arg.
771 errorprone_flags = ['-Xplugin:ErrorProne']
774 errorprone_flags += ['-XepAllErrorsAsWarnings']
776 errorprone_flags += ['-XepDisableWarningsInGeneratedCode']
777 errorprone_flags.extend('-Xep:{}:OFF'.format(x)
779 errorprone_flags.extend('-Xep:{}:WARN'.format(x)
784 '-XepPatchLocation:IN_PLACE',
785 '-XepPatchChecks:,' + ','.join(ERRORPRONE_CHECKS_TO_APPLY)
791 '-J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED',
792 '-J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED',
793 '-J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED',
794 '-J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED',
795 '-J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED',
796 '-J--add-exports=jdk.compiler/com.sun.tools.javac.processing='
797 'ALL-UNNAMED',
798 '-J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED',
799 '-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED',
800 '-J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED',
801 '-J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED',
804 javac_args += ['-XDcompilePolicy=simple', ' '.join(errorprone_flags)]
810 javac_args += ['-XDshould-stop.ifNoError=FLOW']
814 # META-INF/. See the following link for reference:
816 javac_args.extend(['-proc:none'])
819 javac_args.extend(['-processorpath', ':'.join(options.processorpath)])
822 javac_args.extend(['-A%s' % arg])