in src/main/java/org/apache/commons/exec/DefaultExecutor.java [167:176]
public int execute(final CommandLine command, final Map<String, String> environment)
throws ExecuteException, IOException {
if (workingDirectory != null && !workingDirectory.exists()) {
throw new IOException(workingDirectory + " doesn't exist.");
}
return executeInternal(command, environment, workingDirectory, streamHandler);
}