aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/java_tools/buildjar
Commit message (Collapse)AuthorAge
...
* Ensure the argument to JarCreator.addDirectory existsGravatar cushon2017-11-28
| | | | | | Follow-up to https://github.com/bazelbuild/bazel/commit/0b2352de3101e87647d083f6089246079dda0f75 PiperOrigin-RevId: 177234776
* Prepare code using ASM for Java 9Gravatar cushon2017-11-28
| | | | PiperOrigin-RevId: 177138150
* Stop splitting classpath argumentsGravatar cushon2017-11-27
| | | | | | Blaze now passes class paths as individual arguments, instead of a pre-joined. PiperOrigin-RevId: 177112933
* Use java.nio.file.Paths instead of strings in JavaBuilderGravatar cushon2017-11-27
| | | | | | This avoids bazelbuild/bazel#4108. PiperOrigin-RevId: 177096864
* buildjar: close streamsGravatar Laszlo Csomor2017-11-16
| | | | | | | | | | | | | | Use try-with-resources to close all streams. I hope this will fix the spurious file deletion failures on Windows, where the persistent JavaBuilder worker cannot delete outputs from previous builds because, supposedly, they are still open, because a stale object that's ready to be GC'd hasn't yet been actually GC'd. Change-Id: Ia57b8bd0ba1b6ee0691d34467c92e86e35d4d71d PiperOrigin-RevId: 175941520
* Use CacheFSInfoGravatar cushon2017-11-14
| | | | PiperOrigin-RevId: 175709097
* Record package-infos as explicit dependencies in Strict Java DepsGravatar cushon2017-11-03
| | | | PiperOrigin-RevId: 174354036
* Wire in testOnly bit down to ErrorProneOptions, so it can be used from Checkers.Gravatar Googler2017-10-18
| | | | | RELNOTES: None PiperOrigin-RevId: 172545302
* Make BazelJavaCompiler aware of the platform classloaderGravatar cushon2017-10-18
| | | | PiperOrigin-RevId: 172365313
* Internal changeGravatar Googler2017-10-06
| | | | PiperOrigin-RevId: 171245323
* Internal changeGravatar cushon2017-10-06
| | | | PiperOrigin-RevId: 171209823
* Add an explicit dependency on jsr250_annotationsGravatar cushon2017-10-06
| | | | PiperOrigin-RevId: 170960535
* Ignore unpopular deferred diagnostics in VanillaJavaBuilderGravatar cushon2017-10-06
| | | | PiperOrigin-RevId: 170752570
* Prepare processor classpath masking for Java 9Gravatar cushon2017-09-26
| | | | PiperOrigin-RevId: 170022704
* Add files that were droped by our export processGravatar dmarting2017-09-19
| | | | | | | | | Those files are not linked anywhere and where removed by the export process either by accident or for better support from IntelliJ. According to ij.bazel.build a non linked target will not be analyzed so it should be safe. PiperOrigin-RevId: 169229654
* Auto-generate BUILD files for src/java_tools/buildjarGravatar ulfjack2017-09-11
| | | | | | | | | This and further changes may contain minor modifications to BUILD files that don't serve any apparent purpose. The reason for these changes is that we're switching from checked-in BUILD files to generated BUILD files, and there may be small differences between these files. PiperOrigin-RevId: 168201282
* added buildozer command to strict deps fix messageGravatar Ittai Zeidman2017-09-07
| | | | | | | | | fixes #3285 kept the existing message in case someone is parsing this text Closes #3677. PiperOrigin-RevId: 167707934
* Support direct classpaths in javac-turbineGravatar cushon2017-09-05
| | | | PiperOrigin-RevId: 167520688
* Remove some left over bits of Java 7 supportGravatar Liam Miller-Cushon2017-09-04
| | | | | Change-Id: I3fce66ec2e63d152aafc0cf9ea067d6dbf1245f7 PiperOrigin-RevId: 167484075
* Trigger a gc after processing a workrequest.Gravatar Googler2017-08-09
| | | | | RELNOTES: none PiperOrigin-RevId: 164667144
* Rearrange the java-langtools / javac-bootclasspath scriptsGravatar ulfjack2017-08-07
| | | | PiperOrigin-RevId: 164446300
* Prepare JavaBuilder classloader masking for Java9Gravatar cushon2017-07-18
| | | | PiperOrigin-RevId: 162263240
* Remove hard-coded -Xbootclasspath/p flags for javac and turbine invocationsGravatar cushon2017-07-12
| | | | | | | | And instead rely on the flags being set in java_toolchain.jvm_opts. This change is being made in preparation for JDK 9, which replaces -Xbootclasspath/p with --patch-module. PiperOrigin-RevId: 161620182
* Change JavaBuilder to work with the new Bazel Java coverage.Gravatar elenairina2017-07-11
| | | | | | The new implementation doesn't use the metadata jar anymore, but wraps all the uninstrumented classes in the build jar among with a txt file that contains the paths of the files to be instrumented. PiperOrigin-RevId: 161499019
* Remove support for -extra_checks:offGravatar cushon2017-07-07
| | | | | | | | | | it has been replaced by -XepDisableAllChecks, which disables all Error Prone checks instead of disabling the plugin. Disabling the plugin entirely breaks handling of other -Xep flags. RELNOTES[INC]: -extra_checks:off is no longer supported; use -XepDisableAllChecks instead PiperOrigin-RevId: 161127522
* Tweak buildjar/JavaBuilder to not output missing deps twice.Gravatar Googler2017-07-07
| | | | PiperOrigin-RevId: 161127284
* Automated rollback of commit ce7c4deda60a307bba5f0c9421738e2a375cf44e.Gravatar cushon2017-06-20
| | | | | | | | | | | | *** Reason for rollback *** See bazelbuild/bazel#3172 *** Original change description *** Add an experimental flag to Turbine to indicate to annotation processors that they are running in hjar compilation PiperOrigin-RevId: 159585343
* Update BUILD filesGravatar Ulf Adams2017-06-13
| | | | | | | | | | | We're currently maintaining two sets of BUILD files; one at Google, and one in the Git repository. We'd like to not do that. This change makes some of the Bazel BUILD files more closely match their counterparts, in preparation for removing the internal ones. Closes #3094. PiperOrigin-RevId: 158820490
* protobuf: Use bazel's native java_proto_library rules.Gravatar Jakob Buchgraber2017-06-06
| | | | | | | | | Additional changes: - Introduce a Skylark macro java_library_srcs that provides the source jars of a java_*_library rule. - Remove bazel's own java_proto_library implementation. Change-Id: I18f2259bc75ca0fb32dcd8a6a857c609bd2c7773 PiperOrigin-RevId: 158146210
* Optionally skip fallback to javac-turbineGravatar cushon2017-05-31
| | | | PiperOrigin-RevId: 157494773
* Migrate Java tests to Truth.Gravatar lberki2017-05-30
| | | | | | RELNOTES: None. PiperOrigin-RevId: 157446717
* Remove resourcejar handling from buildjarGravatar cushon2017-05-19
| | | | | | | singlejar is now used to add resources to library jars, so this code is unnecessary. PiperOrigin-RevId: 156473371
* Pass the platform classpath entries through to strict depsGravatar cushon2017-05-17
| | | | | | | from JavaBuilder's command line flags, instead of retrieving them using a non-standard filemanager API. PiperOrigin-RevId: 156226725
* Split classpaths more eagerlyGravatar cushon2017-05-15
| | | | | | | | | | Allow classpath command line options to be whitespace-separated, and store as lists instead of joined strings. This avoids some unnecessary string operations, and keeps command lines below the per-arg limit. A future change will update Bazel to pass unjoined classpaths. PiperOrigin-RevId: 156085128
* Re-enabling passing -sourcepath via javacopts.Gravatar elenairina2017-05-11
| | | | | | | This is needed until java_common.compile will be strong enough to replace java_library, exposing all its features. PiperOrigin-RevId: 155773169
* Avoid windows-incompatible absolute path syntaxGravatar cushon2017-05-11
| | | | | | See #2977 PiperOrigin-RevId: 155711073
* Migrate off versioned javac and Error Prone targetsGravatar Liam Miller-Cushon2017-05-09
| | | | | Change-Id: Iad1e07ad55d5304d7c3dbb8bdab856728a91432d PiperOrigin-RevId: 155375893
* Add a javac-turbine option for the reduced classpath optimizationGravatar cushon2017-05-04
| | | | PiperOrigin-RevId: 155131707
* Clean VanillaJavaBuilder output directoriesGravatar cushon2017-05-04
| | | | | | | | | | to ensure outputs from any previous local builds are discarded. To cherry-pick for #2692. Fixes #2941 PiperOrigin-RevId: 155089391
* JavaBuilder accepts a new --testonly argument to mark compilations ofGravatar eaftan2017-04-27
| | | | | | | test code. Error Prone will use these to distinguish between test and production code, e.g. for enforcing @VisibleForTesting. PiperOrigin-RevId: 154370318
* Prepend javac to test bootclasspathGravatar cushon2017-04-25
| | | | PiperOrigin-RevId: 154098929
* Update to javac9-r4023Gravatar cushon2017-04-25
| | | | PiperOrigin-RevId: 154078281
* Roll forward of ↵Gravatar cushon2017-04-18
| | | | | | | | https://github.com/bazelbuild/bazel/commit/4a303e2cd840810b95cbc793e38bdca48e6d9556 Only unescape @@-quoted args once PiperOrigin-RevId: 153189611
* Automated g4 rollback of commit b0ac3b41700cdc575c36ff2de191bc9ba2b6abf0.Gravatar cushon2017-04-14
| | | | | | | | | | | | | | | | | | *** Reason for rollback *** kokoro failures were not flakes :( *** Original change description *** Fix escaping of '@' in javabuilder command lines "@" is used to denote params files, so when it appears in labels it is escaped as "@@". The second "@" should be removed during flag parsing to avoid e.g. having it show up in strict deps errors. See bazelbuild/buildtools#83 PiperOrigin-RevId: 153127997
* Fix escaping of '@' in javabuilder command linesGravatar cushon2017-04-14
| | | | | | | | | | "@" is used to denote params files, so when it appears in labels it is escaped as "@@". The second "@" should be removed during flag parsing to avoid e.g. having it show up in strict deps errors. See bazelbuild/buildtools#83 PiperOrigin-RevId: 153098855
* Don't close System.errGravatar cushon2017-04-07
| | | | PiperOrigin-RevId: 152468763
* Remove unused data dependency on JavaBuilderGravatar cushon2017-04-06
| | | | PiperOrigin-RevId: 152336645
* Make encoding diagnostic tests slightly less fragileGravatar cushon2017-04-05
| | | | | | The wording of this diagnostic is changing in Java 9. PiperOrigin-RevId: 152222336
* Avoid `Iterable<Path>`Gravatar cushon2017-04-05
| | | | | | | The signature of setLocationFromPaths changes in JDK 9, see: https://bugs.openjdk.java.net/browse/JDK-8150111 PiperOrigin-RevId: 152143259
* Roll forward change https://cr.bazel.build/9250 with Java 7 build failure fix.Gravatar xingao2017-04-04
| | | | | | | | | Make Java tool jars available from @bazel_tools. Now users can point to default Java tool jars in customized java_toolchain rule defined in project's BUILD file. PiperOrigin-RevId: 152012191