| Modifier and Type | Field and Description |
|---|---|
| public static final String | BOWER_JSON
The bower.json file name. |
| private final ClassLoader | |
| private static final String | |
| private static final Logger | |
| public static final String | PACKAGE_JSON
The node_modules directory prefix as a convenience. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | extractAllBowerComponentsTo(File
The location to extract it to. All WebJars will be merged into this location. to)Extract the bower_components of all WebJars and merge them into the same folder. |
| public void | extractAllNodeModulesTo(File
The location to extract it to. All WebJars will be merged into this location. to)Extract the node_modules of all WebJars and merge them into the same folder. |
| public void | |
| private static void | extractResource(String webJarName, WebJarAssetLocator.
|
| private void | extractResourcesTo(final String webJarName, final WebJarAssetLocator.
|
| private void | extractWebJarsTo(final String
If null then all WebJars are extracted, otherwise the name of a single WebJars. name, final String The file to get module name from, can be moduleNameFile, final File null, artifactId will be used in this case.The location to extract it to. All WebJars will be merged into this location. to)A generalised form for extracting WebJars. |
| public void | extractWebJarTo(String
The name of the WebJar to extract. name, File The location to extract it to. All WebJars will be merged into this location. to)Extract the given WebJar to the given location. |
| protected static String | |
| private String |
| BOWER_JSON | back to summary |
|---|---|
| public static final String BOWER_JSON The bower.json file name. | |
| classLoader | back to summary |
|---|---|
| private final ClassLoader classLoader | |
| JAR_PATH_DELIMITER | back to summary |
|---|---|
| private static final String JAR_PATH_DELIMITER | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| PACKAGE_JSON | back to summary |
|---|---|
| public static final String PACKAGE_JSON The node_modules directory prefix as a convenience. | |
| WebJarExtractor | back to summary |
|---|---|
| public WebJarExtractor() | |
| WebJarExtractor | back to summary |
|---|---|
| public WebJarExtractor(ClassLoader classLoader) | |
| extractAllBowerComponentsTo | back to summary |
|---|---|
| public void extractAllBowerComponentsTo(File to) throws IOException Extract the bower_components of all WebJars and merge them into the same folder.
| |
| extractAllNodeModulesTo | back to summary |
|---|---|
| public void extractAllNodeModulesTo(File to) throws IOException Extract the node_modules of all WebJars and merge them into the same folder.
| |
| extractAllWebJarsTo | back to summary |
|---|---|
| public void extractAllWebJarsTo(File to) throws IOException Extract all WebJars.
| |
| extractResource | back to summary |
|---|---|
| private static void extractResource(String webJarName, WebJarAssetLocator. | |
| extractResourcesTo | back to summary |
|---|---|
| private void extractResourcesTo(final String webJarName, final WebJarAssetLocator. | |
| extractWebJarsTo | back to summary |
|---|---|
| private void extractWebJarsTo(final String name, final String moduleNameFile, final File to) A generalised form for extracting WebJars. | |
| extractWebJarTo | back to summary |
|---|---|
| public void extractWebJarTo(String name, File to) throws IOException Extract the given WebJar to the given location. The WebJar will be extracted, without its version in the path, to the given directory.
| |
| getJsonModuleId | back to summary |
|---|---|
protected static String getJsonModuleId(String packageJson) throws IOException
| |
| getModuleId | back to summary |
|---|---|
private String getModuleId(final String moduleNameFile)
| |