Move the code to set system properties to its own method, make sure it's called from JvmTestClient

This commit is contained in:
Guillaume Nodet
2020-12-10 09:31:08 +01:00
parent 438e76c370
commit e8c39062ab
2 changed files with 20 additions and 17 deletions

View File

@@ -30,6 +30,7 @@ public class JvmTestClient extends DefaultClient {
@Override
public ExecutionResult execute(ClientOutput output, List<String> argv) {
setSystemPropertiesFromCommandLine(argv);
final ExecutionResult delegate = super.execute(output, argv);
if (output instanceof TestClientOutput) {
return new JvmTestResult(delegate, ((TestClientOutput) output).messagesToString());