ExecUtils.addArgument(cmd, CommandLineUtils.getJar());
} else {
ExecUtils.addArgument(cmd, CommandLineUtils.getFirstSegmentOfCommand());
ExecUtils.addArgument(cmd, "run");
}
<BUG>getArguments().stream().forEach(arg -> ExecUtils.addArgument(cmd, arg));
</BUG>
try {
builder.command(cmd);
if (redirect) {

ExecUtils.addArgument(cmd, CommandLineUtils.getJar());
} else {
ExecUtils.addArgument(cmd, CommandLineUtils.getFirstSegmentOfCommand());
ExecUtils.addArgument(cmd, "run");
}
cliArguments.forEach(arg -> ExecUtils.addArgument(cmd, arg));
try {
builder.command(cmd);
if (redirect) {
