public class MavenResourceAccessor extends ClassLoaderResourceAccessor
ClassLoaderResourceAccessor for Maven which will use a default or user specified ClassLoader to load files/resources.| Constructor and Description |
|---|
MavenResourceAccessor() |
MavenResourceAccessor(ClassLoader classLoader) |
| Modifier and Type | Method and Description |
|---|---|
Set<InputStream> |
getResourcesAsStream(String path)
Return an InputStream for each resource mapped by the given path.
|
Set<String> |
list(String relativeTo,
String path,
boolean includeFiles,
boolean includeDirectories,
boolean recursive)
Returns the path to all resources contained in the given root.
|
toClassLoader, toStringaddRootPath, convertToPath, convertToPath, getContents, getRootPaths, init, isCaseSensitivepublic MavenResourceAccessor()
public MavenResourceAccessor(ClassLoader classLoader)
public Set<InputStream> getResourcesAsStream(String path) throws IOException
ResourceAccessorgetResourcesAsStream in interface ResourceAccessorgetResourcesAsStream in class ClassLoaderResourceAccessorIOException - if there is an error reading an existing path.public Set<String> list(String relativeTo, String path, boolean includeFiles, boolean includeDirectories, boolean recursive) throws IOException
ResourceAccessorlist in interface ResourceAccessorlist in class ClassLoaderResourceAccessorincludeFiles - Set to false to exclude files in the returned set. Defaults to trueincludeDirectories - Set to false to exclude directories in the returned set. Defaults to truerecursive - Set to true and will return paths to contents in sub directories as well. Defaults to falseIOException - if there is an error reading an existing root.Copyright © 2019 Liquibase.org. All rights reserved.