public class WebJars extends Object
| Modifier and Type | Field and Description |
|---|---|
private static Pattern |
WEBJAR_INTERNAL_PATH_REGEX
A regex to extract the different part of the path of a file from a library included in a webjar.
|
private static String |
WEBJAR_LOCATION
The directory within jar file where webjar resources are located.
|
private static Pattern |
WEBJAR_REGEX
A regex extracting the library name and version from Zip Entry names.
|
| Constructor and Description |
|---|
WebJars() |
| Modifier and Type | Method and Description |
|---|---|
static void |
extract(AbstractVertxMojo mojo,
File in,
File out,
boolean stripVersion) |
private static File |
getOutput(Log log,
File out,
boolean stripVersion,
String path) |
static boolean |
isWebJar(Log log,
File file)
Checks whether the given file is a WebJar or not (http://www.webjars.org/documentation).
|
private static void |
search(Set<String> found,
JarFile jar) |
private static void |
unzipWebJarFile(AbstractVertxMojo mojo,
File out,
boolean stripVersion,
ZipFile file,
Enumeration<? extends ZipEntry> entries) |
private static final Pattern WEBJAR_REGEX
private static final String WEBJAR_LOCATION
private static final Pattern WEBJAR_INTERNAL_PATH_REGEX
public static boolean isWebJar(Log log, File file)
file - the file.public static void extract(AbstractVertxMojo mojo, File in, File out, boolean stripVersion) throws IOException
IOExceptionprivate static void unzipWebJarFile(AbstractVertxMojo mojo, File out, boolean stripVersion, ZipFile file, Enumeration<? extends ZipEntry> entries) throws IOException
IOExceptionCopyright © 2018. All rights reserved.