public class WebJarExtractor
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BOWER_JSON
The bower.json file name.
|
static java.lang.String |
PACKAGE_JSON
The node_modules directory prefix as a convenience.
|
| Constructor and Description |
|---|
WebJarExtractor() |
WebJarExtractor(java.lang.ClassLoader classLoader) |
| Modifier and Type | Method and Description |
|---|---|
void |
extractAllBowerComponentsTo(java.io.File to)
Extract the bower_components of all WebJars and merge them into the same folder.
|
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.
|
protected static java.lang.String |
getJsonModuleId(java.lang.String packageJson) |
public static final java.lang.String PACKAGE_JSON
public static final java.lang.String BOWER_JSON
public WebJarExtractor()
public WebJarExtractor(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 WebJarspublic void extractAllBowerComponentsTo(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 WebJarsprotected static java.lang.String getJsonModuleId(java.lang.String packageJson)
throws java.io.IOException
java.io.IOExceptionCopyright © 2020. All Rights Reserved.