aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/java_tools/buildjar
Commit message (Collapse)AuthorAge
* Improve error message for invalid srcjar inputsGravatar cushon2018-06-17
| | | | | | | Fixes #5418 RELNOTES: N/A PiperOrigin-RevId: 200934846
* Make JavaBuilder use a unique coverage metadata directoryGravatar elenairina2018-06-08
| | | | | | | | | | | for each test instead of the same directory for all the tests. The previous implementation was using one directory for instrumenting the classes of a jar. For each each jar the metadata directory was deleted if it already existed. This is problematic for local execution when multiple tests are run in parallel because some threads will try to delete the directory and some will try to perform read/write operations on it. This is an important fix for Bazel coverage users. Fixes #4398. RELNOTES: Java coverage works now with multiple jobs. PiperOrigin-RevId: 199764483
* Format all bzl files with buildifierGravatar vladmos2018-06-01
| | | | | | This CL aslo enables a presubmit check for correct formatting of all bzl files in //third_party/bazel. PiperOrigin-RevId: 198857055
* Always use `/` as the path separator for jar entriesGravatar cushon2018-05-25
| | | | | | Fixes #5260 PiperOrigin-RevId: 198110476
* Clean up code that directly imports nested classes like Builder, Entry, etc.Gravatar jcater2018-05-02
| | | | PiperOrigin-RevId: 195090893
* Don't build Error Prone plugin during bootstrappingGravatar cushon2018-04-27
| | | | | | Follow-up to https://github.com/bazelbuild/bazel/commit/bdb75bba00dbe97e9bb99db04844096f135f59ad PiperOrigin-RevId: 194559167
* Normalize parameter name commentsGravatar cushon2018-04-27
| | | | PiperOrigin-RevId: 194512971
* Use VanillaJavaBuilder for bootstrappingGravatar cushon2018-04-26
| | | | PiperOrigin-RevId: 194504697
* Add support for native header outputs to VanillaJavaBuilderGravatar cushon2018-04-26
| | | | PiperOrigin-RevId: 194503531
* Remove use of bare Immutable{List,Map,Set} Builder classes.Gravatar jcater2018-04-19
| | | | | | Always use the more-qualified class name for clarity at the site of use. There are too many classes named Builder. PiperOrigin-RevId: 193579440
* Fix a crash in javac-turbine transitive classpath fallbackGravatar cushon2018-04-18
| | | | | | | This code was failing to reset the SJD plugin before falling back, which caused a reference to a JimFS Path in the original filesystem to leak. PiperOrigin-RevId: 193421565
* When normalizing -source and --release options, allow the last one to winGravatar cushon2018-04-13
| | | | | | | | | previously --release always took precedence. if/when Bazel defaults to using e.g. --release 9, legacy -source and -target javacopts should be respected. PiperOrigin-RevId: 192844963
* Process package-info annotations in Strict Java DepsGravatar cushon2018-04-13
| | | | PiperOrigin-RevId: 192837552
* Use jadep to fix missing dependencies in turbineGravatar cushon2018-04-13
| | | | PiperOrigin-RevId: 192802011
* Don't print empty add dep commandsGravatar cushon2018-04-11
| | | | PiperOrigin-RevId: 192539741
* Tolerate empty bootclasspaths in javac-turbineGravatar cushon2018-04-05
| | | | PiperOrigin-RevId: 191809494
* Clean up after b/72379900Gravatar cushon2018-03-16
| | | | PiperOrigin-RevId: 189380767
* Clean up whitespace in add_dep messagesGravatar cushon2018-03-15
| | | | PiperOrigin-RevId: 189225279
* Emit SJD errors even if we don't know the label of a dependencyGravatar cushon2018-03-14
| | | | | | Fixes bazelbuild/bazel#4846 PiperOrigin-RevId: 189123353
* Fix javac-turbine diagnostic formatting to include source positionGravatar cushon2018-03-12
| | | | PiperOrigin-RevId: 188799934
* Delete F5 JarDexer.Gravatar Googler2018-03-02
| | | | | | | | The only two remaining users are for JAR, so directly call into BazelJavaBuilder rather than through our multiplex tool. This requires opening the visibility of BazelJavaBuilder up to public. PiperOrigin-RevId: 187690855
* Change the strict deps plugin to read jar owner from manifest.Gravatar tomlu2018-02-28
| | | | | | | | | | | | | | | | | The plugin tries to read the following attributes: Target-Label: <label> Injecting-Rule-Kind: <rule kind> These are used instead of the jar owners passed to JavaBuilder from blaze. Any owners currently passed from blaze are now ignored. This CL also half-reverts the command line syntax for JavaBuilder and Turbine. It is now: --classpath <jar1> <jar2> ... --direct_dependencies <jar1> ... RELNOTES: None PiperOrigin-RevId: 187419469
* Remove support for --rule_kindGravatar cushon2018-02-22
| | | | | | now that Bazel no longer passes it. PiperOrigin-RevId: 186708415
* Automated rollback of commit 11cc89a27544311111473dc7a17522635c2b6e70.Gravatar eaftan2018-02-21
| | | | | | | | | | | | | | *** Reason for rollback *** Superceded by https://github.com/bazelbuild/bazel/commit/e734c479956df7a675c61f531d769609d3af3e5d *** Original change description *** JavaBuilder accepts a new --testonly argument to mark compilations of test code. Error Prone will use these to distinguish between test and production code, e.g. for enforcing @VisibleForTesting. PiperOrigin-RevId: 186520809
* Add --experimental_fix_deps_tool to JavaBuilderGravatar Googler2018-02-21
| | | | | RELNOTES: None PiperOrigin-RevId: 186494122
* Rewrite visibility handling for all java_toolsGravatar ulfjack2018-02-16
| | | | PiperOrigin-RevId: 185959149
* Use a diagnostic listener, and match diagnostic codes for the reduced ↵Gravatar cushon2018-02-14
| | | | | | classpath heuristic PiperOrigin-RevId: 185746460
* Remove deprecated rule_kind argument from Turbine and JavaBuilder.Gravatar cushon2018-02-14
| | | | | | Roll forward of unknown commit PiperOrigin-RevId: 185727344
* Accept --target_label, --injecting_rule_kind in JavaBuilder and Turbine.Gravatar tomlu2018-02-13
| | | | | | | | | | | The values (if present) are written into the manifest with this format: Target-Label: <label> Injecting-Rule-Kind: <kind> In the future, JavaBuilder will make sure of this instead of command line arguments to find owners for jars for its add_dep commands. PiperOrigin-RevId: 185557317
* Use a different date time when normalizing zip entriesGravatar cushon2018-02-12
| | | | | | Fixes #4614 PiperOrigin-RevId: 185474153
* Use a different date time when normalizing zip entriesGravatar cushon2018-02-12
| | | | PiperOrigin-RevId: 185419668
* Make some tests compatible with JDK 9Gravatar cushon2018-02-08
| | | | PiperOrigin-RevId: 185003013
* Add a Path-returning method to JavacBootclasspathGravatar cushon2018-02-02
| | | | PiperOrigin-RevId: 184370036
* Don't suppress non-NOTE diagnostics for failed buildsGravatar cushon2018-02-02
| | | | | | | | To avoid hiding compiler.warn.sun.proprietary warnings when running with -Werror. Fixes bazelbuild/bazel#4564 PiperOrigin-RevId: 184367653
* Migrate DependencyModule to use jarToTarget/directJarsGravatar cushon2018-01-29
| | | | | | instead of directJarsToTargets/indirectJarsToTargets. PiperOrigin-RevId: 183780563
* Change JavaBuilder and Turbine command lines to not require CustomMultiArgv.Gravatar tomlu2018-01-24
| | | | | | | | | | | | | | | | | | | | Instead of passing: --direct_dependency jar1 jarowner1 aspect1 --indirect_dependency jar2 jarowner2 aspect2 --classpath jar1 jar2 we pass --dependencies jar1 jarowner1;aspect1 jar2 jarowner2:aspect2 --direct_dependencies jar1 This formats doesn't need to inspect each item in the incoming nested set, and thus doesn't need CustomMultiArgv. This change needs to be rolled out in phases, so this CL changes JavaBuilder and Turbine to accept either format. RELNOTES: None PiperOrigin-RevId: 183155036
* Fix "Could not reserve enough space for object heap" error on Windows during ↵Gravatar philwo2018-01-24
| | | | | | Bazel bootstrap. PiperOrigin-RevId: 183065122
* Consolidate Error Prone resource handlingGravatar cushon2018-01-22
| | | | | | Fixes bazelbuild/bazel#4483 PiperOrigin-RevId: 182847474
* Minimal support for compiling module-infosGravatar cushon2018-01-18
| | | | PiperOrigin-RevId: 182461095
* Normalize javacopts for javac-turbineGravatar cushon2018-01-16
| | | | PiperOrigin-RevId: 182130131
* If a compilation uses both -source and --release, prefer --releaseGravatar cushon2018-01-16
| | | | | | | | javac does not allow both -source and --release to be set, which makes it difficult to migrate to --release when javacopts are combined from multiple sources. PiperOrigin-RevId: 182113897
* Add a TODOGravatar cushon2018-01-14
| | | | PiperOrigin-RevId: 181908311
* Avoid mixing -source and --releaseGravatar cushon2018-01-12
| | | | | | | | javac doesn't allow both to be set, so when defaulting to target Java 8 use --release if the javacopts already include a --release flag. PiperOrigin-RevId: 181777670
* Fix breakage caused by unknown commitGravatar cushon2018-01-12
| | | | PiperOrigin-RevId: 181703395
* Require --javacopts to be terminated with --Gravatar cushon2018-01-11
| | | | PiperOrigin-RevId: 181687846
* Use Iterable#forEach instead of `.stream().forEach`.Gravatar cushon2018-01-08
| | | | PiperOrigin-RevId: 181180652
* Make SJD @Generated handling compatible with ↵Gravatar cushon2018-01-05
| | | | | | javax.annotation.processing.Generated PiperOrigin-RevId: 181012373
* Batch SJD errors for an entire compilationGravatar cushon2018-01-05
| | | | | | | instead of emitting them one file at a time. This provides users with a single add_dep command instead of one-per-file. PiperOrigin-RevId: 180979982
* Add support for native header outputs to JavaBuilderGravatar cushon2018-01-05
| | | | | | | | Add a --native_header_output flag which, if set, causes JavaBuilder to set the equivalent of `javac -h`, and then collect all generated headers and write them to a jar archive at the given path. PiperOrigin-RevId: 180954084
* Terminate --javacopts in tests with --Gravatar cushon2017-12-21
| | | | PiperOrigin-RevId: 179841278