/** * @return the force option, whether the output should be overwritten if it * exists */ public boolean overwriteOutput() { return this.isForce(); }
/** * @return the force option, whether the output should be overwritten if it * exists */ public boolean overwriteOutput() { return this.isForce(); }
/** * Validate the (local) ouput from an {@link InOutToolOptions} and return * the corresponding file. * * @param tool * the tool from which to get settings * @return the output file location, deleted if it is allowed to be deleted * @throws IOException * if the file exists, but can't be deleted */ public static File validateLocalOutput(InOutToolOptions tool) throws IOException { return validateLocalOutput(tool.output, tool.isForce(), tool.contin); }
/** * Validate the (local) ouput from an {@link InOutToolOptions} and return * the corresponding file. * * @param tool * the tool from which to get settings * @return the output file location, deleted if it is allowed to be deleted * @throws IOException * if the file exists, but can't be deleted */ public static File validateLocalOutput(InOutToolOptions tool) throws IOException { return validateLocalOutput(tool.output, tool.isForce(), tool.contin); }