@Deprecated public CommandTool workingDir(String workingDirectory) throws IllegalArgumentException { return workingDirectory(workingDirectory); }
/** * Sets working directory for the command * * @param workingDirectory * working directory, can be {@code null} to use current directory of running Java process * * @throws IllegalArgumentException * if working directory does not exist */ public CommandTool workingDirectory(String workingDirectory) throws IllegalArgumentException { if (workingDirectory == null) { this.workingDirectory = null; return this; } return workingDirectory(new File(workingDirectory)); }