public class ClasspathOption extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ENV
The environment variable used to define the path.
|
static java.lang.String |
PROPERTY
The system property to define the path.
|
Constructor and Description |
---|
ClasspathOption() |
Modifier and Type | Method and Description |
---|---|
GoloClassLoader |
initGoloClassLoader()
Init the class loader using the parsed command line option.
|
static GoloClassLoader |
initGoloClassLoader(java.util.List<java.lang.String> classpath)
Create a golo classloader using the given classpath list.
|
public static final java.lang.String PROPERTY
public static final java.lang.String ENV
public ClasspathOption()
public static GoloClassLoader initGoloClassLoader(java.util.List<java.lang.String> classpath) throws java.net.MalformedURLException
If classpath
is empty, packages from the PROPERTY
system property are used, then from
ENV
environment variable if no property is defined. Finally, the current directory is used if no other path
is defined.
The current thread class loader is set to the created golo class loader.
classpath
- a list of string representing classpath elementsjava.net.MalformedURLException
public GoloClassLoader initGoloClassLoader() throws java.net.MalformedURLException
java.net.MalformedURLException