Implementation of the AssetResolver interface for the file system
Type | Name and description |
---|---|
static String |
DIRECTIVE_FILE_SEPARATOR |
static String |
QUOTED_FILE_SEPARATOR |
File |
baseDirectory |
List<FileSystemAssetResolver> |
resolvers |
List<String> |
scanDirectories |
Constructor and description |
---|
FileSystemAssetResolver
(String name, String basePath, boolean flattenSubDirectories = true) |
Type | Name and description |
---|---|
protected Closure<InputStream> |
createInputStreamClosure(File file) |
AssetFile |
getAsset(String relativePath, String contentType = null, String extension = null, AssetFile baseFile = null) |
List<AssetFile> |
getAssets(String basePath, String contentType = null, String extension = null, Boolean recursive = true, AssetFile relativeFile = null, AssetFile baseFile = null) Implementation Requirements Should be able to take a relative to baseFile scenario |
protected String |
getFileName(File file) |
protected File |
getRelativeFile(String relativePath, String name) |
protected def |
iterateOverFileSystem(File dir, List<String> excludePatterns, List<String> includePatterns, List<AssetFile> fileList, String sourcePath) |
protected void |
recursiveTreeAppend(File directory, List<AssetFile> tree, String contentType = null, AssetFile baseFile, boolean recursive = true, String sourceDirectory) |
protected String |
relativePathToResolver(File file, String scanDirectoryPath) |
Collection<AssetFile> |
scanForFiles(List<String> excludePatterns, List<String> includePatterns) Uses file globbing to scan for files that need precompiled |
Methods inherited from class | Name |
---|---|
class AbstractAssetResolver |
assetForFile, convertGlobToRegEx, createInputStreamClosure, getFileName, getRelativeFile, isFileMatchingPatterns, relativePathToResolver, resolveAsset |
Implementation Requirements Should be able to take a relative to baseFile scenario
Uses file globbing to scan for files that need precompiled
Groovy Documentation