public final class MojoUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
IS_WINDOWS |
| Modifier and Type | Method and Description |
|---|---|
static <T> List<T> |
arrayAsListEmptyIfNull(T[] array) |
static File |
createBooterJar(List<String> classPath,
String startClassName)
Create a jar with just a manifest containing a Main-Class entry for BooterConfiguration and a Class-Path entry
for all classpath elements.
|
static URL |
getURL(File file) |
static String |
locateJar(Class<?> c) |
public static <T> List<T> arrayAsListEmptyIfNull(T[] array)
public static File createBooterJar(List<String> classPath, String startClassName) throws IOException
classPath - List of all classpath elements.startClassName - The classname to start (main-class)IOException - When a file operation fails.public static URL getURL(File file) throws MalformedURLException
MalformedURLExceptionCopyright © 2018–2019. All rights reserved.