public final class CommandLineUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SCHEME_CLASSPATH
The scheme name of Java class path.
|
Modifier and Type | Method and Description |
---|---|
static ClassLoader |
buildPluginLoader(ClassLoader parent,
List<File> files)
Creates a class loader for loading plug-ins.
|
static Properties |
loadProperties(File path)
Loads properties from the specified file.
|
static List<File> |
parseFileList(String fileListOrNull)
Parses a string of file list separated by the platform dependent path separator.
|
public static final String SCHEME_CLASSPATH
public static Properties loadProperties(File path) throws IOException
path
- path to the target propertiesIOException
- if failed to load the propertiesIllegalArgumentException
- if any parameter is null
public static List<File> parseFileList(String fileListOrNull)
fileListOrNull
- target string, or null
public static ClassLoader buildPluginLoader(ClassLoader parent, List<File> files)
parent
- parent class loader, or null
to use the system class loaderfiles
- plug-in class paths (*.jar file or class path directory)IllegalArgumentException
- if some parameters were null
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.