Implementation of the AssetResolver interface for resolving from JAR files or ZIP files
Type | Name and description |
---|---|
static String |
DIRECTIVE_FILE_SEPARATOR |
static String |
QUOTED_FILE_SEPARATOR |
JarFile |
baseJar |
String |
prefixPath |
Constructor and description |
---|
JarAssetResolver
(String name, String jarPath, String prefixPath) |
Type | Name and description |
---|---|
protected Closure<InputStream> |
createInputStreamClosure(ZipEntry 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) |
protected String |
getFileName(ZipEntry file) |
protected ZipEntry |
getRelativeFile(String relativePath, String name) |
protected String |
relativePathToResolver(ZipEntry 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 |
Uses file globbing to scan for files that need precompiled
Groovy Documentation