private Collection<String> systemPropertiesClasspathElements() { final ArrayList<String> resources = new ArrayList<>(); final String classPath = System.getProperty("java.class.path", "."); final String[] classPathElements = classPath.split(PATH_SEPARATOR); for (final String element : classPathElements) { resources.addAll(getResources(element, pattern)); } return resources; }
private void addResourcesFromUrlClassLoader(ArrayList<String> resources, URLClassLoader classLoader) { URL[] classPathElements = classLoader.getURLs(); for(URL classPathElement : classPathElements) { resources.addAll(getResources(classPathElement.getFile(), pattern)); } }
private void addResourcesFromUrlClassLoader(ArrayList<String> resources, URLClassLoader classLoader) { URL[] classPathElements = classLoader.getURLs(); for(URL classPathElement : classPathElements) { resources.addAll(getResources(classPathElement.getFile(), pattern)); } }
public Collection<String> systemPropertiesClasspathElements() { final ArrayList<String> resources = new ArrayList<String>(); final String classPath = System.getProperty("java.class.path", "."); final String[] classPathElements = classPath.split(PATH_SEPARATOR); for (final String element : classPathElements) { resources.addAll(getResources(element, pattern)); } return resources; }
public Collection<String> systemPropertiesClasspathElements() { final ArrayList<String> resources = new ArrayList<String>(); final String classPath = System.getProperty("java.class.path", "."); final String[] classPathElements = classPath.split(PATH_SEPARATOR); for (final String element : classPathElements) { resources.addAll(getResources(element, pattern)); } return resources; }
private void addResourcesFromUrlClassLoader(ArrayList<String> resources, URLClassLoader classLoader) { URL[] classPathElements = classLoader.getURLs(); for(URL classPathElement : classPathElements) { if (isASerenityResourceJarFile(classPathElement.getFile())) { resources.addAll(getResources(classPathElement.getFile(), pattern)); } } }