public Set<String> findResourcePaths(String location, URL resourceUrl) throws IOException { // Computes the physical root of the classpath to later // determine the resource path more easily String resourcePath = PathUtils.toFilePath(resourceUrl); String classpathPhysicalRoot = resourcePath.substring(0, resourcePath.length() - location.length()); // Gets the folder in which files will be scanned File folder = new File(resourcePath); return scanForResourcePathsInFileSystem(folder, classpathPhysicalRoot); }
public Set<String> findResourcePaths(String location, URL resourceUrl) throws IOException { // Computes the physical root of the classpath to later // determine the resource path more easily String resourcePath = PathUtils.toFilePath(resourceUrl); String classpathPhysicalRoot = resourcePath.substring(0, resourcePath.length() - location.length()); // Gets the folder in which files will be scanned File folder = new File(resourcePath); return scanForResourcePathsInFileSystem(folder, classpathPhysicalRoot); }
String filePath = PathUtils.toFilePath(resourceUrl);
String filePath = PathUtils.toFilePath(resourceUrl);