-
Our deployment environment launches jars using command line args instead of system env vars like this:
Is it possible to get these in Quarkus? I thought subclassing javax.ws.rs.core.Application might give me access to the command line arguments (no luck...can only access a list of classes, properties, and singletons) but ideally, I'd want to get these in these as part of quarkus config resources: https://quarkus.io/guides/config-reference#configuration-sources |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
nvm...found a workaround for this to put the ports in system properties |
Beta Was this translation helpful? Give feedback.
-
Did you try with Quarkus Main method: https://quarkus.io/guides/lifecycle#the-main-method? You should be able to collect the args into some static structure and then expose it via a |
Beta Was this translation helpful? Give feedback.
Did you try with Quarkus Main method: https://quarkus.io/guides/lifecycle#the-main-method? You should be able to collect the args into some static structure and then expose it via a
ConfigSource
.