public final class MojoUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
IS_WINDOWS |
| Modifier and Type | Method and Description |
|---|---|
static <T> java.util.List<T> |
arrayAsListEmptyIfNull(T[] array) |
static java.io.File |
createBooterJar(java.util.List<java.lang.String> classPath,
java.lang.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 java.net.URL |
getURL(java.io.File file) |
static java.lang.String |
locateJar(java.lang.Class<?> c) |
public static java.lang.String locateJar(java.lang.Class<?> c)
throws java.lang.Exception
java.lang.Exceptionpublic static <T> java.util.List<T> arrayAsListEmptyIfNull(T[] array)
public static java.io.File createBooterJar(java.util.List<java.lang.String> classPath,
java.lang.String startClassName)
throws java.io.IOException
classPath - List of all classpath elements.startClassName - The classname to start (main-class)java.io.IOException - When a file operation fails.public static java.net.URL getURL(java.io.File file)
throws java.net.MalformedURLException
java.net.MalformedURLExceptionCopyright © 2011-2018. All Rights Reserved.