Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--javacopt value supplied via .bazelrc file is not passed properly to java compiler #34

Open
oliviernotteghem opened this issue Dec 27, 2020 · 0 comments

Comments

@oliviernotteghem
Copy link

We are using javacopt to disabled errorprone on generated files.

If specified in .bazelrc, the corresponding javacopt is ignored (EP is showing legit errors) :
build --javacopt=-XepExcludedPaths:.*/.*genfiles/.*

If specified in the android_library rule itself, javacopt is passed properly (EP is disabled and no errors) :
java_library( name = "src_main", srcs = glob(["src/main/java/**/*.java"]), javacopts = ["-XepExcludedPaths:.*/.*genfiles/.*"], visibility = ["//visibility:public"], ... )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant