-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Introduce ability to recognize and execute user main method(s) #6499
Comments
Reading the proposed items I'm struggling to figure out if I'll be able to as follows:
here I'm just using a method reference, but could also be a class. Main point is that I'll have a plain static main that can be booted by Quarkus. Or is the expectation all is always handled by Quarkus ? |
That seems doable to me. We just have to be sure that the Quarkus build process has a way to know which entry point main to use during build. |
Yes, I assume we'll have a way to do both - the explicit main() method is mainly just for easy launching from IDE or command line jar runs. |
@maxandersen Just curious how far we are from this wonderful feature? |
@dodalovic sorry - didn't see your ping here before now - see #7681 for current progress |
@stuartwdouglas how much of this is fullfilled by #7681 ? |
Most of it, except for exception mapping for exit codes, which is going to be a follow up. Also failure due to config issue does not have it's own exit code, however that can be done as part of the exception mapping work. |
Description
Introduce ability to recognize and execute user main method(s).
Requirements
@Named
be used for this?)String[]
orList<String>
which contains the command arguments (minus the arguments processed by Introduce config-based command line argument binding #6497)int
which contains the desired exit codeSystem.exit()
should be called with the final exit code once all shutdown work is complete (at the end of the launcher main method).waitForExit
method defined in Introduce an exit request API with wait-for-exit method #6498 should be used, with the code returned from that method being used as the requested exit codeExit codes reference
The text was updated successfully, but these errors were encountered: