/** * Sets executable to be executed. This can either a an absolute path or executed on path of underlying file system * * @param programName * program name * * @throws IllegalArgumentException * If program name is null or empty */ public CommandTool programName(CharSequence programName) throws IllegalArgumentException { Validate.notNullOrEmpty(programName, "Program name must not be empty nor null"); this.commandBuilder = new CommandBuilder(programName); return this; }