|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.groovy.tools.LoaderConfiguration
public class LoaderConfiguration
class used to configure a RootLoader from a stream or by using it's methods. The stream can be for example a FileInputStream from a file with the following format: # comment main is classname load path load file load pathWith${property} load path/*.jar
RootLoader| 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 |
void |
configure(InputStream is)
configures this loader with a stream |
URL[] |
getClassPathUrls()
gets a classpath as URL[] from this configuration. |
String |
getMainClass()
returns the main class or null is no is defined |
void |
setMainClass(String clazz)
sets the main class. |
void |
setRequireMain(boolean requireMain)
if set to false no main class is required when calling |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LoaderConfiguration()
| Method Detail |
|---|
public void configure(InputStream is)
throws IOException
is - stream used to read the configuration
IOException - if reading or parsing the contents of the stream failspublic void addFile(File f)
public void addFile(String s)
public void addClassPath(String path)
File.pathSeparatorpublic URL[] getClassPathUrls()
public String getMainClass()
public void setMainClass(String clazz)
public void setRequireMain(boolean requireMain)
configure(InputStream)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||