public class WebJarExtractor
extends java.lang.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 java.lang.String |
PACKAGE_JSON |
static java.lang.String |
PACKAGE_JSON_NAME
The node_modules directory prefix as a convenience.
|
Constructor and Description |
---|
WebJarExtractor() |
WebJarExtractor(java.lang.ClassLoader classLoader) |
WebJarExtractor(WebJarExtractor.Cache cache,
java.lang.ClassLoader classLoader) |
Modifier and Type | Method and Description |
---|---|
void |
extractAllNodeModulesTo(java.io.File to)
Extract the node_modules of all WebJars and merge them into the same folder.
|
void |
extractAllWebJarsTo(java.io.File to)
Extract all WebJars.
|
void |
extractWebJarTo(java.lang.String name,
java.io.File to)
Extract the given WebJar to the given location.
|
public static final java.lang.String PACKAGE_JSON_NAME
public static final java.lang.String PACKAGE_JSON
public static WebJarExtractor.Cache NO_CACHE
public WebJarExtractor()
public WebJarExtractor(java.lang.ClassLoader classLoader)
public WebJarExtractor(WebJarExtractor.Cache cache, java.lang.ClassLoader classLoader)
public void extractAllWebJarsTo(java.io.File to) throws java.io.IOException
to
- The directory to extract to.java.io.IOException
- There was a problem extracting the WebJarspublic void extractWebJarTo(java.lang.String name, java.io.File to) throws java.io.IOException
name
- The name of the WebJar to extract.to
- The location to extract it to. All WebJars will be merged into this location.java.io.IOException
- There was a problem extracting the WebJarspublic void extractAllNodeModulesTo(java.io.File to) throws java.io.IOException
to
- The location to extract it to. All WebJars will be merged into this location.java.io.IOException
- There was a problem extracting the WebJarsCopyright © 2015. All Rights Reserved.