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

Consider making java_import targets executable #2

Open
dwtj opened this issue Sep 23, 2020 · 0 comments
Open

Consider making java_import targets executable #2

dwtj opened this issue Sep 23, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@dwtj
Copy link
Owner

dwtj commented Sep 23, 2020

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.

@dwtj dwtj self-assigned this Sep 23, 2020
@dwtj dwtj added the enhancement New feature or request label Sep 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant