|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Field Summary | |
---|---|
String |
ALL_WILDCARD
|
String |
LOAD_PREFIX
|
String |
MAIN_PREFIX
|
String |
MATCH_ALL
|
String |
MATCH_FILE_NAME
|
char |
WILDCARD
|
List |
classPath
|
String |
main
|
boolean |
requireMain
|
Constructor Summary | |
LoaderConfiguration()
creates a new loader configuration |
Method Summary | |
---|---|
void |
addClassPath(String path)
adds a classpath to this configuration. |
void |
addFile(File f)
adds a file to the classpath if it does exist |
void |
addFile(String s)
adds a file to the classpath if it does exist |
String |
assignProperties(String str)
exapands the properties inside the given string to it's values |
void |
configure(InputStream is)
configures this loader with a stream |
void |
findMatchingFiles(def files, Pattern pattern, boolean recursive)
|
def |
getClassPathUrls()
gets a classpath as URL[] from this configuration. |
String |
getMainClass()
returns the main class or null is no is defined |
String |
getParentPath(String filter)
seperates the given path at the last '/' |
String |
getSlashyPath(String path)
|
void |
loadFilteredPath(String filter)
load a possible filtered path. |
boolean |
parentPathDoesExist(String path)
return true if the parent of the path inside the given string does exist |
void |
setMainClass(String clazz)
sets the main class. |
void |
setRequireMain(boolean requireMain)
if set to false no main class is required when calling |
Constructor Detail |
---|
public LoaderConfiguration()
Method Detail |
---|
public void addClassPath(String path)
public void addFile(File f)
public void addFile(String s)
String assignProperties(String str)
public void configure(InputStream is)
void findMatchingFiles(def files, Pattern pattern, boolean recursive)
public def getClassPathUrls()
public String getMainClass()
String getParentPath(String filter)
String getSlashyPath(String path)
void loadFilteredPath(String filter)
boolean parentPathDoesExist(String path)
public void setMainClass(String clazz)
public void setRequireMain(boolean requireMain)