abstract class AbstractAssetResolver
The abstract class for any helper methods in resolving files
Constructor and description |
---|
AbstractAssetResolver
(String name) |
Type | Name and description |
---|---|
protected AssetFile |
assetForFile(T file, String contentType, AssetFile baseFile = null, String sourceDirectory) |
Pattern |
convertGlobToRegEx(String line) A method for converting glob patterns into regex. |
protected Closure<InputStream> |
createInputStreamClosure(T file) |
protected String |
getFileName(T file) |
protected T |
getRelativeFile(String relativePath, String name) |
protected boolean |
isFileMatchingPatterns(String filePath, List<String> patterns) |
protected String |
relativePathToResolver(T file, String scanDirectoryPath) |
protected AssetFile |
resolveAsset(def specs, String prefixPath, String normalizedPath, AssetFile baseFile, String extension) |
A method for converting glob patterns into regex. Not used anymore as Java 7 Path patterns are now used
Groovy Documentation