Add a mvnd.rawStreams property (#719)

This commit is contained in:
Guillaume Nodet
2022-12-16 11:33:59 +01:00
parent 852e4e5535
commit 91f377d70b
4 changed files with 18 additions and 5 deletions

View File

@@ -297,6 +297,11 @@ public class DefaultClient implements Client {
return DefaultResult.success(argv);
}
// Raw streams
if (Environment.MVND_RAW_STREAMS.removeCommandLineOption(args) != null) {
args.add("-D" + Environment.MVND_RAW_STREAMS.getProperty());
}
Optional<String> threads = Optional.ofNullable(Environment.MVND_THREADS.removeCommandLineOption(args));
Environment.MVND_THREADS.addCommandLineOption(args, threads.orElseGet(parameters::threads));