Class ResourceUtils
java.lang.Object
org.springframework.boot.cli.util.ResourceUtils
Utilities for manipulating resource paths and URLs.
- Since:
- 1.0.0
- Author:
- Dave Syer, Phillip Webb
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetUrls
(String path, ClassLoader classLoader) Return URLs from a given source path.
-
Field Details
-
CLASSPATH_URL_PREFIX
Pseudo URL prefix for loading from the class path: "classpath:".- See Also:
-
ALL_CLASSPATH_URL_PREFIX
Pseudo URL prefix for loading all resources from the class path: "classpath*:".- See Also:
-
FILE_URL_PREFIX
URL prefix for loading from the file system: "file:".- See Also:
-
-
Constructor Details
-
ResourceUtils
public ResourceUtils()
-
-
Method Details
-
getUrls
Return URLs from a given source path. Source paths can be simple file locations (/some/file.java) or wildcard patterns (/some/**). Additionally the prefixes "file:", "classpath:" and "classpath*:" can be used for specific path types.- Parameters:
path
- the source pathclassLoader
- the class loader ornull
to use the default- Returns:
- a list of URLs
-