Refine search
/** * Locate the specific file. * Return the file path or uri (if a resource within an archive on the classpath) or throw FileNotFoundExcpetion. */ static String locateFile (String findFile, ClassLoader classLoader) throws FileNotFoundException { URL url; String fullPathName; if (findFile == null) throw new FileNotFoundException("locateFile: null file name"); String testAbsolutePath = new File(findFile).getAbsolutePath(); if(testAbsolutePath.equals(findFile)) { return testAbsolutePath; } if (findFile.startsWith(absolutePath)) return findFile.substring(absolutePath.length()); if ((fullPathName = locateByProperty(findFile)) != null) return fullPathName; if ((url = locateByResource(findFile, classLoader)) != null) return url.toString(); // no special decode handling any more. throw new FileNotFoundException("locateFile: file not found: " + findFile); }
propertiesSourceUri = com.arjuna.common.util.propertyservice.FileLocator.locateFile(propertyFileName, classLoader); throw new RuntimeException("missing property file "+propertyFileName); } else { propertiesSourceUri = url.toString();
propertiesSourceUri = com.arjuna.common.util.propertyservice.FileLocator.locateFile(propertyFileName, classLoader); throw new RuntimeException("missing property file "+propertyFileName); } else { propertiesSourceUri = url.toString();
/** * Locate the specific file. * Return the file path or uri (if a resource within an archive on the classpath) or throw FileNotFoundExcpetion. */ static String locateFile (String findFile, ClassLoader classLoader) throws FileNotFoundException { URL url; String fullPathName; if (findFile == null) throw new FileNotFoundException("locateFile: null file name"); String testAbsolutePath = new File(findFile).getAbsolutePath(); if(testAbsolutePath.equals(findFile)) { return testAbsolutePath; } if (findFile.startsWith(absolutePath)) return findFile.substring(absolutePath.length()); if ((fullPathName = locateByProperty(findFile)) != null) return fullPathName; if ((url = locateByResource(findFile, classLoader)) != null) return url.toString(); // no special decode handling any more. throw new FileNotFoundException("locateFile: file not found: " + findFile); }
propertiesSourceUri = com.arjuna.common.util.propertyservice.FileLocator.locateFile(propertyFileName, classLoader); throw new RuntimeException("missing property file "+propertyFileName); } else { propertiesSourceUri = url.toString();
/** * Locate the specific file. * Return the file path or uri (if a resource within an archive on the classpath) or throw FileNotFoundExcpetion. */ static String locateFile (String findFile, ClassLoader classLoader) throws FileNotFoundException { URL url; String fullPathName; if (findFile == null) throw new FileNotFoundException("locateFile: null file name"); String testAbsolutePath = new File(findFile).getAbsolutePath(); if(testAbsolutePath.equals(findFile)) { return testAbsolutePath; } if (findFile.startsWith(absolutePath)) return findFile.substring(absolutePath.length()); if ((fullPathName = locateByProperty(findFile)) != null) return fullPathName; if ((url = locateByResource(findFile, classLoader)) != null) return url.toString(); // no special decode handling any more. throw new FileNotFoundException("locateFile: file not found: " + findFile); }
propertiesSourceUri = com.arjuna.common.util.propertyservice.FileLocator.locateFile(propertyFileName, classLoader); throw new RuntimeException("missing property file "+propertyFileName); } else { propertiesSourceUri = url.toString();
/** * Locate the specific file. * Return the file path or uri (if a resource within an archive on the classpath) or throw FileNotFoundExcpetion. */ static String locateFile (String findFile, ClassLoader classLoader) throws FileNotFoundException { URL url; String fullPathName; if (findFile == null) throw new FileNotFoundException("locateFile: null file name"); String testAbsolutePath = new File(findFile).getAbsolutePath(); if(testAbsolutePath.equals(findFile)) { return testAbsolutePath; } if (findFile.startsWith(absolutePath)) return findFile.substring(absolutePath.length()); if ((fullPathName = locateByProperty(findFile)) != null) return fullPathName; if ((url = locateByResource(findFile, classLoader)) != null) return url.toString(); // no special decode handling any more. throw new FileNotFoundException("locateFile: file not found: " + findFile); }
propertiesSourceUri = com.arjuna.common.util.propertyservice.FileLocator.locateFile(propertyFileName, classLoader); commonLogger.i18NLogger.warn_could_not_find_config_file(url); } else { propertiesSourceUri = url.toString();
/** * Locate the specific file. * Return the file path or uri (if a resource within an archive on the classpath) or throw FileNotFoundExcpetion. */ static String locateFile (String findFile, ClassLoader classLoader) throws FileNotFoundException { URL url; String fullPathName; if (findFile == null) throw new FileNotFoundException("locateFile: null file name"); String testAbsolutePath = new File(findFile).getAbsolutePath(); if(testAbsolutePath.equals(findFile)) { return testAbsolutePath; } if (findFile.startsWith(absolutePath)) return findFile.substring(absolutePath.length()); if ((fullPathName = locateByProperty(findFile)) != null) return fullPathName; if ((url = locateByResource(findFile, classLoader)) != null) return url.toString(); // no special decode handling any more. throw new FileNotFoundException("locateFile: file not found: " + findFile); }
propertiesSourceUri = com.arjuna.common.util.propertyservice.FileLocator.locateFile(propertyFileName, classLoader); commonLogger.i18NLogger.warn_could_not_find_config_file(url); } else { propertiesSourceUri = url.toString();
/** * Locate the specific file. * Return the file path or uri (if a resource within an archive on the classpath) or throw FileNotFoundExcpetion. */ static String locateFile (String findFile, ClassLoader classLoader) throws FileNotFoundException { URL url; String fullPathName; if (findFile == null) throw new FileNotFoundException("locateFile: null file name"); String testAbsolutePath = new File(findFile).getAbsolutePath(); if(testAbsolutePath.equals(findFile)) { return testAbsolutePath; } if (findFile.startsWith(absolutePath)) return findFile.substring(absolutePath.length()); if ((fullPathName = locateByProperty(findFile)) != null) return fullPathName; if ((url = locateByResource(findFile, classLoader)) != null) return url.toString(); // no special decode handling any more. throw new FileNotFoundException("locateFile: file not found: " + findFile); }
propertiesSourceUri = com.arjuna.common.util.propertyservice.FileLocator.locateFile(propertyFileName, classLoader); commonLogger.i18NLogger.warn_could_not_find_config_file(url); } else { propertiesSourceUri = url.toString();
/** * Locate the specific file. * Return the file path or uri (if a resource within an archive on the classpath) or throw FileNotFoundExcpetion. */ static String locateFile (String findFile, ClassLoader classLoader) throws FileNotFoundException { URL url; String fullPathName; if (findFile == null) throw new FileNotFoundException("locateFile: null file name"); String testAbsolutePath = new File(findFile).getAbsolutePath(); if(testAbsolutePath.equals(findFile)) { return testAbsolutePath; } if (findFile.startsWith(absolutePath)) return findFile.substring(absolutePath.length()); if ((fullPathName = locateByProperty(findFile)) != null) return fullPathName; if ((url = locateByResource(findFile, classLoader)) != null) return url.toString(); // no special decode handling any more. throw new FileNotFoundException("locateFile: file not found: " + findFile); }
propertiesSourceUri = com.arjuna.common.util.propertyservice.FileLocator.locateFile(propertyFileName, classLoader); commonLogger.i18NLogger.warn_could_not_find_config_file(url); } else { propertiesSourceUri = url.toString();
/** * Locate the specific file. * Return the file path or uri (if a resource within an archive on the classpath) or throw FileNotFoundExcpetion. */ static String locateFile (String findFile, ClassLoader classLoader) throws FileNotFoundException { URL url; String fullPathName; if (findFile == null) throw new FileNotFoundException("locateFile: null file name"); String testAbsolutePath = new File(findFile).getAbsolutePath(); if(testAbsolutePath.equals(findFile)) { return testAbsolutePath; } if (findFile.startsWith(absolutePath)) return findFile.substring(absolutePath.length()); if ((fullPathName = locateByProperty(findFile)) != null) return fullPathName; if ((url = locateByResource(findFile, classLoader)) != null) return url.toString(); // no special decode handling any more. throw new FileNotFoundException("locateFile: file not found: " + findFile); }
propertiesSourceUri = com.arjuna.common.util.propertyservice.FileLocator.locateFile(propertyFileName, classLoader); commonLogger.i18NLogger.warn_could_not_find_config_file(url); } else { propertiesSourceUri = url.toString();
/** * Locate the specific file. * Return the file path or uri (if a resource within an archive on the classpath) or throw FileNotFoundExcpetion. */ static String locateFile (String findFile, ClassLoader classLoader) throws FileNotFoundException { URL url; String fullPathName; if (findFile == null) throw new FileNotFoundException("locateFile: null file name"); String testAbsolutePath = new File(findFile).getAbsolutePath(); if(testAbsolutePath.equals(findFile)) { return testAbsolutePath; } if (findFile.startsWith(absolutePath)) return findFile.substring(absolutePath.length()); if ((fullPathName = locateByProperty(findFile)) != null) return fullPathName; if ((url = locateByResource(findFile, classLoader)) != null) return url.toString(); // no special decode handling any more. throw new FileNotFoundException("locateFile: file not found: " + findFile); }