Package ch.acanda.maven.springbanner
Class RootPath
- java.lang.Object
-
- ch.acanda.maven.springbanner.RootPath
-
- All Implemented Interfaces:
AutoCloseable
public class RootPath extends Object implements AutoCloseable
This class provides a way to list the files in the root path of spring-banner-plugin. If the plugin is package in a jar file, then the root path is the root of the jar file. If the plugin is not in a jar file (e.g. during development), then the root path is the working directory.
-
-
Constructor Summary
Constructors Constructor Description RootPath()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Stream<Path>walkReadableFiles(Class<?> resourceClass, String extension)
-
-
-
Method Detail
-
walkReadableFiles
public Stream<Path> walkReadableFiles(Class<?> resourceClass, String extension) throws IOException, URISyntaxException
- Throws:
IOExceptionURISyntaxException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
-