/** * Get a File from configuration. * * @param name the name of the property * @param props the set of configuration properties * * @return the CanonicalFile form for the given name. */ private File getFileFromProperty(final String name, final Properties props) { return getFileFromPath(props.getProperty(name)); }
/** * Get a File from configuration. * * @param name the name of the property * @param props the set of configuration properties * * @return the CanonicalFile form for the given name. */ private File getFileFromProperty(final String name, final Properties props) { return getFileFromPath(props.getProperty(name)); }
/** * Get a File from configuration. * * @param name the name of the property * @param props the set of configuration properties * * @return the CanonicalFile form for the given name. */ private File getFileFromProperty(final String name, final Properties props) { return getFileFromPath(props.getProperty(name)); }
/** * Get a File from configuration. * * @param name the name of the property * @param props the set of configuration properties * * @return the CanonicalFile form for the given name. */ private File getFileFromProperty(final String name, final Properties props) { return getFileFromPath(props.getProperty(name)); }
private File configureServerTempDir(String path, Properties providedProps) { File tmp = getFileFromPath(path); if (tmp == null) { providedProps.remove(SERVER_TEMP_DIR); tmp = new File(serverBaseDir, "tmp"); } else { providedProps.setProperty(SERVER_TEMP_DIR, path); } serverTempDir = tmp; return tmp; }
private File configureServerTempDir(String path, Properties providedProps) { File tmp = getFileFromPath(path); if (tmp == null) { providedProps.remove(SERVER_TEMP_DIR); tmp = new File(serverBaseDir, "tmp"); } else { providedProps.setProperty(SERVER_TEMP_DIR, path); } serverTempDir = tmp; return tmp; }
private File configureServerTempDir(String path, Properties providedProps) { File tmp = getFileFromPath(path); if (tmp == null) { providedProps.remove(SERVER_TEMP_DIR); tmp = new File(serverBaseDir, "tmp"); } else { providedProps.setProperty(SERVER_TEMP_DIR, path); } serverTempDir = tmp; return tmp; }
private File configureServerTempDir(String path, Properties providedProps) { File tmp = getFileFromPath(path); if (tmp == null) { providedProps.remove(SERVER_TEMP_DIR); tmp = new File(serverBaseDir, "tmp"); } else { providedProps.setProperty(SERVER_TEMP_DIR, path); } serverTempDir = tmp; return tmp; }
private void configureBundlesDir(String dirPath, Properties providedProperties) { boolean haveDirProperty = dirPath != null; File tmp = getFileFromPath(dirPath); if (tmp == null) { if (haveDirProperty) { throw ServerLogger.ROOT_LOGGER.bundlesDirectoryDoesNotExist(new File(dirPath).getAbsoluteFile()); } providedProperties.remove(BUNDLES_DIR); tmp = new File(homeDir, "bundles"); } else { providedProperties.setProperty(BUNDLES_DIR, dirPath); } bundlesDir = tmp; }
private void configureBundlesDir(String dirPath, Properties providedProperties) { boolean haveDirProperty = dirPath != null; File tmp = getFileFromPath(dirPath); if (tmp == null) { if (haveDirProperty) { throw MESSAGES.bundlesDirectoryDoesNotExist(new File(dirPath).getAbsoluteFile()); } providedProperties.remove(BUNDLES_DIR); tmp = new File(homeDir, "bundles"); } else { providedProperties.setProperty(BUNDLES_DIR, dirPath); } bundlesDir = tmp; }
private void configureBundlesDir(String dirPath, Properties providedProperties) { boolean haveDirProperty = dirPath != null; File tmp = getFileFromPath(dirPath); if (tmp == null) { if (haveDirProperty) { throw MESSAGES.bundlesDirectoryDoesNotExist(new File(dirPath).getAbsoluteFile()); } providedProperties.remove(BUNDLES_DIR); tmp = new File(homeDir, "bundles"); } else { providedProperties.setProperty(BUNDLES_DIR, dirPath); } bundlesDir = tmp; }
private void configureBundlesDir(String dirPath, Properties providedProperties) { boolean haveDirProperty = dirPath != null; File tmp = getFileFromPath(dirPath); if (tmp == null) { if (haveDirProperty) { throw ServerLogger.ROOT_LOGGER.bundlesDirectoryDoesNotExist(new File(dirPath).getAbsoluteFile()); } providedProperties.remove(BUNDLES_DIR); tmp = new File(homeDir, "bundles"); } else { providedProperties.setProperty(BUNDLES_DIR, dirPath); } bundlesDir = tmp; }