CLI args not recognized when running Quarkus dev mode (#23254)

Closes #23253
This commit is contained in:
Pedro Igor 2023-09-14 16:48:30 -03:00 committed by GitHub
parent 4b94298b4a
commit 2f4144a8c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,7 +77,14 @@ public class ConfigArgsConfigSource extends PropertiesConfigSource {
}
private static String getRawConfigArgs() {
return System.getProperty(CLI_ARGS, "");
String args = System.getProperty(CLI_ARGS);
if (args != null) {
return args;
}
// make sure quarkus.args property is properly formatted
return String.join(ARG_SEPARATOR, System.getProperty("quarkus.args", "").split(" "));
}
@Override