aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/java_tools
Commit message (Collapse)AuthorAge
* Remove runWithLargeStack and remove some single-use abstractionsGravatar Liam Miller-Cushon2016-04-07
| | | | | -- MOS_MIGRATED_REVID=119188524
* Disable tree pruning for blacklisted annotation processorsGravatar Liam Miller-Cushon2016-04-07
| | | | | | | | | | Some annotation processors use non-standard APIs to examine the AST, and are broken by tree pruning. This change adds configuration to Turbine to allow a blacklist of processors to be provided, and disables tree pruning if any blacklisted processors are found. -- MOS_MIGRATED_REVID=119079114
* Remove shell quotes from javacoptsGravatar Liam Miller-Cushon2016-04-05
| | | | | -- MOS_MIGRATED_REVID=118967358
* Allow compilations to have an empty source listGravatar Liam Miller-Cushon2016-04-04
| | | | | | | for compatibility with JavaBuilder. -- MOS_MIGRATED_REVID=118802288
* Deduplicate annotation processor classesGravatar Liam Miller-Cushon2016-04-01
| | | | | | | Also rename the build method from add* to set*. -- MOS_MIGRATED_REVID=118746866
* Track which output files are writtenGravatar Liam Miller-Cushon2016-04-01
| | | | | | | | | instead of initializing all file objects to empty. Some annotation processors speculatively open files and handle FileNotFoundException, and we were always providing empty files. -- MOS_MIGRATED_REVID=118730162
* Handle more javacoptsGravatar Liam Miller-Cushon2016-04-01
| | | | | | | | | | | | | | Previously turbine whitelisted -source and -target flags and ignored all other configured javacopts, including custom annotation processor options and javac debug flags. The change switches to allowing all javacopts, and blackisting options that are known to be incompatible. Also ensure that invalid flags result in an error. -- MOS_MIGRATED_REVID=118718745
* Prune private fields and methods from the outputGravatar Liam Miller-Cushon2016-04-01
| | | | | -- MOS_MIGRATED_REVID=118713377
* Remove support for non-proto deps filesGravatar Liam Miller-Cushon2016-03-30
| | | | | -- MOS_MIGRATED_REVID=118488877
* Don't prune qualified super constructors invocations in chained constructorsGravatar Liam Miller-Cushon2016-03-30
| | | | | -- MOS_MIGRATED_REVID=118488791
* Fix file object URIs in ZipOutputFileManagerGravatar Liam Miller-Cushon2016-03-30
| | | | | | | Avoids spurious diagnostics about annotation processor generated class names not matching the file path. -- MOS_MIGRATED_REVID=118488628
* Handle overlapping source jarsGravatar Liam Miller-Cushon2016-03-30
| | | | | | | JavaBuilder overwrites files when extracting source jars, silently ignoring duplicates. It it'd be better if it didn't, but until it's fixed turbine should have the same behaviour. -- MOS_MIGRATED_REVID=118487939
* Update TODOGravatar Liam Miller-Cushon2016-03-29
| | | | | -- MOS_MIGRATED_REVID=118410183
* Record dependencies for exempt annotation processorsGravatar Liam Miller-Cushon2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | Certain annotation processors that generate references to transitive dependencies are exempt from Strict Java Deps. Dagger ensures that all references to transitive types are reachable via a chain of direct dependencies specified in @Component interfaces. We don't record dependencies inside dagger-generated code, since Dagger is already enforcing strict dependencies. By not recording the deps we allow dependency management tools to remove depednencies that are only needed transitively by dagger. This approach doesn't work in general, since processors may generate references to transitive types that are not reachable via a chain of direct deps, and which may be subject to pruning by the reduced classpath optimization. This change causes strict deps to record dependencies (but not emit strict deps errors) inside code generated by exempt annotation processors other than Dagger. -- MOS_MIGRATED_REVID=117882599
* Stop using //tools/defaults:java_langtoolsGravatar Liam Miller-Cushon2016-03-18
| | | | | | | | | | | | | | | | | | The //tools/defaults package exports the values of blaze flags, including --java_langtools. That flag is being deprecated and the configuration moved into the java_toolchain rule. This change migrates from the //tools/defaults targets for Java tools to the canonical versions of those tools. Unlike the previous solution, the tools in the package are no longer affected by the current build configuration (e.g. the value of --java_toolchain). If that configurability becomes necessary again, we can achieve it using Skylark (via the java.compilation_info.boot_classpath provider), or by expanding the blaze query output for java_toolchain (as used in java_toolchain_content). -- MOS_MIGRATED_REVID=117485737
* Mask turbine classes from the processor classpath to avoid version skewGravatar Liam Miller-Cushon2016-03-17
| | | | | | | | This prevents processors from seeing turbine's version of e.g. guava. javac is still available becuase Blaze puts it on the bootstrap classpath. -- MOS_MIGRATED_REVID=117363448
* Add Python protobuf to Bazel third_party and move all protobuf targets intoGravatar David Chen2016-03-17
| | | | | | | //third_party/protobuf. -- MOS_MIGRATED_REVID=117336377
* Description redacted.Gravatar Liam Miller-Cushon2016-03-15
| | | | | -- MOS_MIGRATED_REVID=117151379
* Global cleanup change.Gravatar Googler2016-03-08
| | | | | -- MOS_MIGRATED_REVID=116498132
* Canonicalize the name of the target itself for java indirect dep errors.Gravatar Brian Silverman2016-03-03
| | | | | | | | | | | | | | | Roll-forward of I3762e6be911b79a133a2959fce3a8bf34d183232 with fixes. Otherwise it prints the wrong message when the target which is missing a dependency is in a repository other than the default one. Second try with the new test disabled for jdk7 because that uses an old, fixed version of the code. -- Change-Id: I7e16fa874066e1b63064662df42a98784fcae233 Reviewed-on: https://bazel-review.googlesource.com/#/c/3032/ MOS_MIGRATED_REVID=116248259
* Rollback of commit 37059e4ffd23fbc10828f61ab198b98c2ca7a8a9.Gravatar Kristina Chodorow2016-03-02
| | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Breaks on Java 1.7 See http://ci.bazel.io/job/Bazel/385/. *** Original change description *** Canonicalize the name of the target itself for java indirect dep errors. Otherwise it prints the wrong message when the target which is missing a dependency is in a repository other than the default one. -- MOS_MIGRATED_REVID=116164887
* Global cleanup change.Gravatar Googler2016-03-02
| | | | | -- MOS_MIGRATED_REVID=116146417
* Canonicalize the name of the target itself for java indirect dep errors.Gravatar Brian Silverman2016-03-02
| | | | | | | | | | Otherwise it prints the wrong message when the target which is missing a dependency is in a repository other than the default one. -- Change-Id: I3762e6be911b79a133a2959fce3a8bf34d183232 Reviewed-on: https://bazel-review.googlesource.com/#/c/2782/ MOS_MIGRATED_REVID=116128663
* Fix pruning of implicitly final fieldsGravatar Liam Miller-Cushon2016-03-01
| | | | | -- MOS_MIGRATED_REVID=115902893
* Add a bazel-srcs target to the top-level package containing all Bazel sourcesGravatar Damien Martin-Guillerez2016-02-29
| | | | | | | | This target include all non tests targets of Bazel to do integration tests of bootstrapping. -- MOS_MIGRATED_REVID=115830741
* Rename proto dependencies to include a _java component in them.Gravatar Julio Merino2016-02-23
| | | | | | | | While doing this, homogenize the two dependencies on build.proto (via build_proto and build_proto_v2) into a single build_java_proto. -- MOS_MIGRATED_REVID=115328219
* Remove an unused field from AbstractPostProcessorGravatar Liam Miller-Cushon2016-02-19
| | | | | -- MOS_MIGRATED_REVID=114985098
* Make effectively final fields finalGravatar Liam Miller-Cushon2016-02-19
| | | | | -- MOS_MIGRATED_REVID=114984938
* Make effectively final fields finalGravatar Liam Miller-Cushon2016-02-19
| | | | | -- MOS_MIGRATED_REVID=114984900
* Turn //tools/build_rules into a package.Gravatar Julio Merino2016-02-17
| | | | | | | | | This is in preparation for another change that will add a new helper script to the tools/build_rules directory, and such script requires a BUILD rule of its own. -- MOS_MIGRATED_REVID=114898083
* Fix pruning of annotation declaration fieldsGravatar Liam Miller-Cushon2016-02-17
| | | | | | | | Fields in annotation declarations are implicitly final, so are candidates for constant variables. -- MOS_MIGRATED_REVID=114878247
* Fix tree pruning bug with constructor delegationGravatar Liam Miller-Cushon2016-02-17
| | | | | | | | | | -relax disables checks in Resolve to catch constructors that do not explicitly delegate to a superclass constructor when no nullary superclass constructor exists. Now that we're not using -relax, those constructor calls have to be preserved. -- MOS_MIGRATED_REVID=114875860
* Marking more jdk8 tests.Gravatar Damien Martin-Guillerez2016-02-16
| | | | | | | Fixes #881. -- MOS_MIGRATED_REVID=114731500
* Mark turbine test as JDK 8Gravatar Damien Martin-Guillerez2016-02-15
| | | | | | | | | This should unbreak our JDK 7 builds. Fixes #881. -- MOS_MIGRATED_REVID=114537482
* Turbine, a tool for improving Java build performanceGravatar Liam Miller-Cushon2016-02-10
| | | | | | | | | Turbine compiles ijars from source, ignoring method bodies and relaxing error checks for performance. We can then do normal compilation against those ijars and move javac off the build's critical path. -- MOS_MIGRATED_REVID=114247125
* Refactor buildjar BUILD filesGravatar Liam Miller-Cushon2016-02-10
| | | | | -- MOS_MIGRATED_REVID=114223734
* Turbine tree prunerGravatar Liam Miller-Cushon2016-02-04
| | | | | | | | | Prunes AST nodes that are not required for header compilation: method bodies, class and instance initializers, and definitely non-constant field initializers. -- MOS_MIGRATED_REVID=113807661
* Turbine options parserGravatar Liam Miller-Cushon2016-02-04
| | | | | -- MOS_MIGRATED_REVID=113806383
* Java readability review.Gravatar Andrew Pellegrini2016-02-03
| | | | | -- MOS_MIGRATED_REVID=113651164
* Use labels in load statementsGravatar Damien Martin-Guillerez2016-02-02
| | | | | | | | | | | | This will fix some issue with loading skylark rules from @bazel_tools. Tested with ./compile.sh all and also a project that use pkg_tar from @bazel_tools (which is broken at HEAD). -- Change-Id: Iffbb7134ef5fee497890c4d01b85084973d45ad0 Reviewed-on: https://bazel-review.googlesource.com/2800 MOS_MIGRATED_REVID=113508661
* Report source position information for Error Prone crashesGravatar Liam Miller-Cushon2016-02-01
| | | | | -- MOS_MIGRATED_REVID=113492679
* Use correct file path separator.Gravatar Dmitry Lomov2016-01-29
| | | | | -- MOS_MIGRATED_REVID=113349046
* Change constructor of ConcatenateStrategy to public for better extensibilityGravatar Googler2016-01-27
| | | | | -- MOS_MIGRATED_REVID=113105947
* Add a strict dependencies exception for the GenerateWrapperModuleProcessor,Gravatar Googler2016-01-27
| | | | | | | | which is doing approximately the same thing dagger is doing, so is safe for the same reasons. -- MOS_MIGRATED_REVID=113054388
* Fix Ant XML writer when there is a test failure.Gravatar Damien Martin-Guillerez2016-01-22
| | | | | | | | | | The generated XML output was incorrect. See http://ci.bazel.io/job/Bazel/JAVA_VERSION=1.7,PLATFORM_NAME=ubuntu_15.10-x86_64/ws/bazel-testlogs/src/test/java/com/google/devtools/build/lib/shell_test/test.xml/*view*/ Fixes #812. -- MOS_MIGRATED_REVID=112776671
* Refactor DependencyModule#computeStrictClasspathGravatar Liam Miller-Cushon2016-01-21
| | | | | | | | | | so it can operate on lists of classpath entries, instead of pre-joined classpath strings. Also improve error for missing .jdeps inputs. -- MOS_MIGRATED_REVID=112634009
* Stop explicitly disabling useOptimizedZipGravatar Liam Miller-Cushon2016-01-21
| | | | | | | | javac's bespoke zip implementation is now off by default: https://bugs.openjdk.java.net/browse/JDK-7018859 -- MOS_MIGRATED_REVID=112600878
* Remove javac/testing from the public tree.Gravatar Lukacs Berki2016-01-19
| | | | | | | It is currently unused and messes up IDEs because it requires a few dependencies that are not in the source tree (most notably, jimfs) -- MOS_MIGRATED_REVID=112461226
* Set test_class for java_test test target where it is neededGravatar Damien Martin-Guillerez2016-01-19
| | | | | | | | | This make those test target compatible with --nolegacy_bazel_java_test. -- Change-Id: I2316c9aa53327b417ecce5fd5dab95ec726da11d Reviewed-on: https://bazel-review.googlesource.com/#/c/2690 MOS_MIGRATED_REVID=112446514
* Don't append the class output dir to the classpathGravatar Liam Miller-Cushon2016-01-15
| | | | | -- MOS_MIGRATED_REVID=112280234