public static File exists(final File file) { if (!file.exists()) { throw new FileDoesNotExistException("Does not exist: " + file.getAbsolutePath()); } return file; }
public static void loadFrom(final Deployments dep, final FileUtils path, final List<File> jarList) { if (dep.getDir() != null) { try { loadFromDir(dep, path, jarList); } catch (final Files.FileDoesNotExistException e) { logger.warning("File error: <Deployments dir=\"" + dep.getDir() + "\"> - " + e.getMessage()); } catch (final RuntimeException e) { final String message = "Runtime error: <Deployments dir=\"" + dep.getDir() + "\"> - " + e.getMessage(); logger.error(message); throw new DeploymentsConfigurationException(message); } } else if (dep.getFile() != null) { try { loadFromFile(dep, path, jarList); } catch (final RuntimeException e) { final String message = "<Deployments file=\"" + dep.getFile() + "\"> - " + e.getMessage(); logger.error(message); throw new DeploymentsConfigurationException(message); } } }
public static void loadFrom(final Deployments dep, final FileUtils path, final List<File> jarList) { if (dep.getDir() != null) { try { loadFromDir(dep, path, jarList); } catch (final Files.FileDoesNotExistException e) { logger.warning("File error: <Deployments dir=\"" + dep.getDir() + "\"> - " + e.getMessage()); } catch (final RuntimeException e) { final String message = "Runtime error: <Deployments dir=\"" + dep.getDir() + "\"> - " + e.getMessage(); logger.error(message); throw new DeploymentsConfigurationException(message); } } else if (dep.getFile() != null) { try { loadFromFile(dep, path, jarList); } catch (final RuntimeException e) { final String message = "<Deployments file=\"" + dep.getFile() + "\"> - " + e.getMessage(); logger.error(message); throw new DeploymentsConfigurationException(message); } } }
public static File exists(final File file, final String s) { if (!file.exists()) { throw new FileDoesNotExistException(s + " does not exist: " + file.getAbsolutePath()); } return file; }
public static File exists(final File file) { if (!file.exists()) { throw new FileDoesNotExistException("Does not exist: " + file.getAbsolutePath()); } return file; }
public static File exists(final File file, final String s) { if (!file.exists()) { throw new FileDoesNotExistException(s + " does not exist: " + file.getAbsolutePath()); } return file; }