I have a file hello.txt
that lives in src/main/resources
folder.
I am using a java_binary
rule and need to pass this hello.txt
file as an argument.
java_binary(
name = "Hello",
srcs = glob(["src/main/java/**"]),
args = ["/Users/jdoe/repo1/libraries/myproj/src/main/resources/hello.txt"],
deps = [...],
)
The above works when I provide the full path, however it fails if I try with a relative path like src/main/resources/hello.txt
.
How do I provide a relative path to the args attribute?