commit | b9da39079d37114ae2a92d9ee8b976a4d9e4f588 | [log] [tgz] |
---|---|---|
author | ajurkowski <ajurkowski@google.com> | Mon May 09 08:28:42 2022 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Mon May 09 08:30:11 2022 -0700 |
tree | c3058c30836935fb17fbf3b714672dce7610b278 | |
parent | 280ef6915b0f507218a073974825d6aa7effddee [diff] |
Do not rewrite `.jdeps` file when it is empty. `JavaCompileAction` rewrites the `.jdeps` files after running the spawn if path stripping was used. The code skips the rewrite if there is [any unstripped path in the file](https://github.com/bazelbuild/bazel/blob/6142eac9153b539661c43dada5e11b552a6f58f6/src/main/java/com/google/devtools/build/lib/rules/java/JavaCompileAction.java#L699-L703). This will not happen if the jdeps file is empty. Skip rewriting the `.jdeps` file if there are no paths in it. PiperOrigin-RevId: 447475281
{Fast, Correct} - Choose two
Build and test software of any size, quickly and reliably.
Speed up your builds and tests: Bazel rebuilds only what is necessary. With advanced local and distributed caching, optimized dependency analysis and parallel execution, you get fast and incremental builds.
One tool, multiple languages: Build and test Java, C++, Android, iOS, Go, and a wide variety of other language platforms. Bazel runs on Windows, macOS, and Linux.
Scalable: Bazel helps you scale your organization, codebase, and continuous integration solution. It handles codebases of any size, in multiple repositories or a huge monorepo.
Extensible to your needs: Easily add support for new languages and platforms with Bazel's familiar extension language. Share and re-use language rules written by the growing Bazel community.
Follow our tutorials:
To report a security issue, please email security@bazel.build with a description of the issue, the steps you took to create the issue, affected versions, and, if known, mitigations for the issue. Our vulnerability management team will respond within 3 working days of your email. If the issue is confirmed as a vulnerability, we will open a Security Advisory. This project follows a 90 day disclosure timeline.
See CONTRIBUTING.md