Package org.eclipse.debug.core
Interface ExecFactory
public interface ExecFactory
A
ExecFactory can be used to control how Eclipse forks a new
Process.- Since:
- 3.23
-
Method Summary
-
Method Details
-
exec
Optional<Process> exec(String[] cmdLine, Optional<File> workingDirectory, Optional<Map<String, String>> environment, boolean mergeOutput) throws CoreExceptionExecutes the given command with the provided working directory and environment- Parameters:
cmdLine- the commandline to executeworkingDirectory- an optional working directory to be used otherwise the process factory must use its defaultenvironment- the environment to use, if empty the process factory must use its defaultsmergeOutput-trueif standard error and standard out should be merged- Returns:
- an
Optionaldescribing the new process created, if an emptyOptionalis returned it is assumed that this factory is not capable of executing the provided command with the requested settings - Throws:
CoreException- if the factory is capable of execution but the creation of a process itself has failed
-