msd.salehi
msd.salehi

Reputation: 1079

How to inject the command line arguments to a Quarkus applicaiton

How to inject the command line arguments to a Quarkus applicaiton?

Normally we use Maven, Gradle or CLI to run a Quarkus application. But how can we inject command line arguments to the execution?

It took me a while until I could find it out at the time of creating this Question. So I will post the answer here to save someone's time hopefully.

Upvotes: 1

Views: 53

Answers (1)

msd.salehi
msd.salehi

Reputation: 1079

CLI:

quarkus dev -Dquarkus.args=cmd-args

Maven:

./mvnw quarkus:dev -Dquarkus.args=cmd-args

Gradle:

./gradlew --console=plain quarkusDev -Dquarkus.args=cmd-args

Upvotes: 1

Related Questions