This repository was archived by the owner on Dec 28, 2024. It is now read-only.
This repository was archived by the owner on Dec 28, 2024. It is now read-only.
Consider making java_import
targets executable #2
Open
Description
Some JARs are "executable" in the sense that they can be run directly with java -jar
. This is supported by setting a main class in the JAR's manifest file.
It may be convenient to be able to run such JARs using bazel run
. The java_import
rule could support this. An executable
boolean attribute could be added to the rule to let the user indicate whether a JAR is in fact executable.