public class WebJarExtractor extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
WebJarExtractor.Cache
A cache for extracting WebJar assets.
|
static class |
WebJarExtractor.Cacheable |
static class |
WebJarExtractor.MemoryCache
An in memory cache.
|
Modifier and Type | Field and Description |
---|---|
static WebJarExtractor.Cache |
NO_CACHE |
static String |
PACKAGE_JSON
The node_modules directory prefix as a convenience.
|
Constructor and Description |
---|
WebJarExtractor() |
WebJarExtractor(ClassLoader classLoader) |
WebJarExtractor(WebJarExtractor.Cache cache,
ClassLoader classLoader) |
Modifier and Type | Method and Description |
---|---|
void |
extractAllNodeModulesTo(File to)
Extract the node_modules of all WebJars and merge them into the same folder.
|
void |
extractAllWebJarsTo(File to)
Extract all WebJars.
|
void |
extractWebJarTo(String name,
File to)
Extract the given WebJar to the given location.
|
public static final String PACKAGE_JSON
public static WebJarExtractor.Cache NO_CACHE
public WebJarExtractor()
public WebJarExtractor(ClassLoader classLoader)
public WebJarExtractor(WebJarExtractor.Cache cache, ClassLoader classLoader)
public void extractAllWebJarsTo(File to) throws IOException
to
- The directory to extract to.IOException
- There was a problem extracting the WebJarspublic void extractWebJarTo(String name, File to) throws IOException
name
- The name of the WebJar to extract.to
- The location to extract it to. All WebJars will be merged into this location.IOException
- There was a problem extracting the WebJarspublic void extractAllNodeModulesTo(File to) throws IOException
to
- The location to extract it to. All WebJars will be merged into this location.IOException
- There was a problem extracting the WebJarsCopyright © 2016. All rights reserved.