Hi guys,
Im trying use genrule but i have some questions:
1. I have created a new package with a BUILD file and with a stub.sh that will prepend the JAR file:
Thanks.
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/f189e6ea-1dc0-4558-b48d-88666a6f129cn%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "bazel-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bazel-discuss/1Fk2J_8M4J4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/d4935096-e22e-4a4b-a104-58962616a227n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/194f3968-bf12-4bf5-a576-f6b2cdd6ee9en%40googlegroups.com.
Hi,
One more thing:How i can make it executable and all the params from bazel run be sent to the java executable?
genrule(
name = "generator",
srcs = ["stub.sh", "//src:djinni_deploy.jar"],
outs = ["djinni"],
cmd = "cat $(location :stub.sh) $(location //src:djinni_deploy.jar) > $@ && chmod +x $@",
executable = True
)
When i execute bazel run the parameters are not sent to the final binary, but is recognized by bazel as bazel parameter:
bazel run //generator:generator --help
Hi,The generated jar/binary always return null on version:Main.getClass.getPackage.getImplementationVersionThere is any way to add version to the package?Thanks.Em quinta-feira, 23 de dezembro de 2021 às 18:11:02 UTC-3, d...@mobileink.com escreveu:On Thu, Dec 23, 2021 at 1:35 PM Paulo Coutinho <pa...@prsolucoes.com> wrote:Hi,One more thing:How i can make it executable and all the params from bazel run be sent to the java executable?
genrule(
name = "generator",
srcs = ["stub.sh", "//src:djinni_deploy.jar"],
outs = ["djinni"],
cmd = "cat $(location :stub.sh) $(location //src:djinni_deploy.jar) > $@ && chmod +x $@",
executable = True
)
When i execute bazel run the parameters are not sent to the final binary, but is recognized by bazel as bazel parameter:
bazel run //generator:generator --helpbazel run //generator:generator -- --help
--
You received this message because you are subscribed to a topic in the Google Groups "bazel-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bazel-discuss/1Fk2J_8M4J4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/209357a1-6abe-476b-823f-e484d7639093n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/16f54b98-ba6a-4f67-9db3-f937ec2765c7n%40googlegroups.com.