Skip to content

Commit

Permalink
run jar instead of script
Browse files Browse the repository at this point in the history
  • Loading branch information
tvallin committed Nov 18, 2024
1 parent 723b558 commit 9d92929
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -467,13 +467,9 @@ private static final class JlinkRunner extends ProcessRunner {
@Override
protected List<String> command(List<String> opts, List<String> 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();
}
Expand Down

0 comments on commit 9d92929

Please sign in to comment.