From 9d929292b6577dc7ab5cecd2563d08f78ca82731 Mon Sep 17 00:00:00 2001 From: tvallin Date: Mon, 18 Nov 2024 07:03:43 +0100 Subject: [PATCH] run jar instead of script --- .../helidon/tests/integration/harness/ProcessRunner.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/integration/harness/src/main/java/io/helidon/tests/integration/harness/ProcessRunner.java b/tests/integration/harness/src/main/java/io/helidon/tests/integration/harness/ProcessRunner.java index 925cbde92cd..bf2f5b50fad 100644 --- a/tests/integration/harness/src/main/java/io/helidon/tests/integration/harness/ProcessRunner.java +++ b/tests/integration/harness/src/main/java/io/helidon/tests/integration/harness/ProcessRunner.java @@ -467,13 +467,9 @@ private static final class JlinkRunner extends ProcessRunner { @Override protected List command(List opts, List args) { Objects.requireNonNull(finalName, "finalName is null"); - - //Is it a permission issue ? - new File(".\\target\\" + finalName + "-jri\\bin\\start.ps1").setExecutable(true); - if (IS_WINDOWS) { - return new CommandBuilder("ShellExecute .\\target\\" + finalName + "-jri\\bin\\start.ps1") - .append("--jvm", String.join(" ", opts)) + return new CommandBuilder(".\\target\\" + finalName + "-jri\\bin\\java") + .append("-jar " + "target\\" + finalName + "-jri\\app\\" + finalName + ".jar") .append(args) .command(); }