-
-
Notifications
You must be signed in to change notification settings - Fork 649
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds `./pants run`/`experimental_run_in_sandbox` support for more JVM targets without needing to explicitly declare a `deploy_jar`. It does that by adapting the existing `jvm_artifact` rule, which was already fairly generic thanks to the use of `ClasspathEntryRequest` rules. The rules will attempt to automatically find a `main` method through either a JAR manifest (as before for `jvm_artifact`) or by directly inspecting the contents of the classpath entry JAR returned from compilation. This also permits explicitly declaring a `main` method in case the other approaches are inconclusive.
- Loading branch information
Christopher Neugebauer
authored
Dec 22, 2022
1 parent
4beb04e
commit 672ca1d
Showing
11 changed files
with
390 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.