diff --git a/quarkus-test-core/src/main/java/io/quarkus/test/services/quarkus/ProdLocalhostQuarkusApplicationManagedResource.java b/quarkus-test-core/src/main/java/io/quarkus/test/services/quarkus/ProdLocalhostQuarkusApplicationManagedResource.java index fc35376fd..3f0a2b95c 100644 --- a/quarkus-test-core/src/main/java/io/quarkus/test/services/quarkus/ProdLocalhostQuarkusApplicationManagedResource.java +++ b/quarkus-test-core/src/main/java/io/quarkus/test/services/quarkus/ProdLocalhostQuarkusApplicationManagedResource.java @@ -21,17 +21,18 @@ public ProdLocalhostQuarkusApplicationManagedResource(ProdQuarkusApplicationMana protected List prepareCommand(List systemProperties) { List command = new LinkedList<>(); + // extract 'quarkus.args' and remove the args from system properties String[] cmdArgs = extractQuarkusArgs(systemProperties); if (model.getArtifact().getFileName().toString().endsWith(".jar")) { command.add(JAVA); command.addAll(systemProperties); command.add("-jar"); command.add(model.getArtifact().toAbsolutePath().toString()); - command.addAll(Arrays.asList(cmdArgs)); } else { command.add(model.getArtifact().toAbsolutePath().toString()); command.addAll(systemProperties); } + command.addAll(Arrays.asList(cmdArgs)); return command; }