Comments (1)
We filter out non-.java
files from srcs
and files with the .properties
extension are specially handled as resources. The problem here seems to be that we create a separate jar for resources and aren't on the classpath, so those aren't available as inputs to the compile action. This explains why things work with local execution. I'm surprised that it works for you with linux-sandbox
, I would expect it to fail there as well.
From what I can tell, ECJ doesn't care about the file extension and parses it as a properties file no matter what. Horrible workaround for now would be to name the file as foo.jar
and add it to the deps
attribute. This should have it on the classpath and in the inputs to the action, so javacopts = ["-properties $(location foo.jar)"]
will work with sandboxing as well. Although that being said, .jar
files in deps
is legacy and should be avoided.
I'm keeping this open as the spirit of this FR sounds reasonable to me and will revisit this soon.
from bazel.
Related Issues (20)
- Have `cc_shared_library` warn or fail on duplicate `owner`s HOT 1
- Release X.Y.Z - $MONTH $YEAR
- [7.2.0] Update java_tools v13.5 / rules_java 7.5.0 HOT 4
- QCC doesnt support `--coverage` added by `--collect_code_coverage` HOT 1
- [7.2.0] Implement StageArtifacts HOT 3
- [7.2.0] Implement RemoteActionFileSystem#statIfFound correctly when the path cannot be canonicalized (because one of the components is a non-directory or a dangling symlink). HOT 2
- [bazel.build] Problem with /rules
- `--experimental_enable_android_migration_apis` and `--experimental_google_legacy_api` flags trigger repository cache invalidation. HOT 1
- BEP issues with SOURCE_INPUT_MISSING errors
- C++ Toolchain configuration on macOS does not allow cross compiling to another arch any more HOT 5
- JDK 8's tools.jar not collected by DumpPlatformClassPath.java HOT 1
- DumpPlatformClassPath: include tools.jar when dumping JDK 8
- Android `ResourceShrinker` fails with `IllegalAccessError` on JDK 17
- Multithreaded download_and_extract (http_archive) buggy on retry HOT 2
- Release 7.2.0 - May 2024
- [7.2.0] cquery: more precise results
- Cache eviction hangs action evaluation with remote execution
- Build fails with exit code 34 rather than 39 on missing input files
- Possible to use OAuth2 bearer tokens with `--registry`? HOT 4
- `osgi` and `aspectj` annotations(?) are not recognized by `ijar` and logs are flooded with the noise
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bazel.