private void verifyWritable(String description, File file) { if (file == null) { // ignore... files are built up based on other files, and probles // with the root files will have been logged else where return; } if (!file.canWrite()) { addError(description + " file is not writable"); } }
private void verifyWritable(final String description, final File file) { if (file == null) { // ignore... files are built up based on other files, and probles // with the root files will have been logged else where return; } if (!file.canWrite()) { addError(description + " file is not writable"); } }
private boolean verifyDirectory(final String description, final File file) { if (file == null) { // ignore... files are built up based on other files, and probles // with the root files will have been logged else where return false; } if (!file.exists()) { addError(description + " directory does not exist"); return false; } if (!file.isDirectory()) { addError(description + " directory is not a directory"); return false; } if (!file.canRead()) { addError(description + " directory is not readable"); return false; } return true; }
private boolean verifyFile(final String description, final File file) { if (file == null) { // ignore... files are built up based on other files, and probles // with the root files will have been logged else where return false; } if (!file.exists()) { addError(description + " file does not exist"); return false; } if (!file.isFile()) { addError(description + " file is not a file"); return false; } if (!file.canRead()) { addError(description + " file is not readable"); return false; } return true; }
private boolean verifyDirectory(String description, File file) { if (file == null) { // ignore... files are built up based on other files, and probles // with the root files will have been logged else where return false; } if (!file.exists()) { addError(description + " directory does not exist"); return false; } if (!file.isDirectory()) { addError(description + " directory is not a directory"); return false; } if (!file.canRead()) { addError(description + " directory is not readable"); return false; } return true; }
private boolean verifyFile(String description, File file) { if (file == null) { // ignore... files are built up based on other files, and probles // with the root files will have been logged else where return false; } if (!file.exists()) { addError(description + " file does not exist"); return false; } if (!file.isFile()) { addError(description + " file is not a file"); return false; } if (!file.canRead()) { addError(description + " file is not readable"); return false; } return true; }
public boolean verify() { if (openejbWarDir == null) { addError("OpenEJB war is not unpacked"); addError("Catalina home directory is not defined"); addError("Catalina base directory is not defined"); addError("OpenEJB loader jar was not found in the OpenEJB lib dir"); addError("OpenEJB javaagent jar was not found in the OpenEJB lib dir");