public class OutputStreamFlushableCommandline extends org.apache.maven.surefire.shared.utils.cli.Commandline implements FlushReceiverProvider
Commandline
implementation that provides the output stream of
the executed process in form of a FlushReceiver
, for it to be
flushed on demand.org.apache.maven.surefire.shared.utils.cli.Commandline.Argument
Constructor and Description |
---|
OutputStreamFlushableCommandline()
for testing purposes only
|
OutputStreamFlushableCommandline(String[] excludedEnvironmentVariables) |
Modifier and Type | Method and Description |
---|---|
void |
addEnvironment(String name,
String value) |
void |
addSystemEnvironment() |
Process |
execute() |
FlushReceiver |
getFlushReceiver() |
addArguments, clearArgs, clone, createArg, createArg, getArguments, getArguments, getCommandline, getEnvironmentVariables, getExecutable, getShell, getWorkingDirectory, setExecutable, setWorkingDirectory, setWorkingDirectory, toString
public OutputStreamFlushableCommandline()
public OutputStreamFlushableCommandline(String[] excludedEnvironmentVariables)
public void addEnvironment(String name, String value)
addEnvironment
in class org.apache.maven.surefire.shared.utils.cli.Commandline
public final void addSystemEnvironment()
addSystemEnvironment
in class org.apache.maven.surefire.shared.utils.cli.Commandline
public Process execute() throws org.apache.maven.surefire.shared.utils.cli.CommandLineException
public FlushReceiver getFlushReceiver()
getFlushReceiver
in interface FlushReceiverProvider
FlushReceiver
Copyright © 2004–2020 The Apache Software Foundation. All rights reserved.