Fix XVFB run not evaluating arg providers (#1464)

This commit is contained in:
modmuss
2025-12-05 17:18:07 +00:00
committed by GitHub
parent 81d3f1d97c
commit 87adb207b4

View File

@@ -225,6 +225,12 @@ public abstract class AbstractRunTask extends JavaExec {
commandLine.add(getMainClass().get());
commandLine.addAll(getArgs());
for (CommandLineArgumentProvider provider : getArgumentProviders()) {
for (String arg : provider.asArguments()) {
commandLine.add(arg);
}
}
getExecOperations().exec(execSpec -> {
execSpec.setCommandLine(commandLine);
execSpec.setWorkingDir(getWorkingDir());