|
Groovy 1.7.0 | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.codehaus.groovy.tools.LoaderConfiguration
class LoaderConfiguration extends Object
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 pathWith!{required.property}
load path/*.jar
load path/**/*.jar
| Constructor Summary | |
LoaderConfiguration()
creates a new loader configuration |
|
| Method Summary | |
|---|---|
void
|
addClassPath(String path)
Adds a classpath to this configuration. |
void
|
addFile(File file)
Adds a file to the classpath if it exists. |
void
|
addFile(String filename)
Adds a file to the classpath if it exists. |
void
|
configure(InputStream is)
configures this loader with a stream |
URL[]
|
getClassPathUrls()
The classpath as URL[] from this configuration. |
String
|
getMainClass()
Returns the name of the main class for this configuration. |
void
|
setMainClass(String classname)
Sets the main class. |
void
|
setRequireMain(boolean requireMain)
Determines if a main class is required when calling. |
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
| Constructor Detail |
|---|
public LoaderConfiguration()
| Method Detail |
|---|
public void addClassPath(String path)
public void addFile(File file)
public void addFile(String filename)
public void configure(InputStream is)
public URL[] getClassPathUrls()
public String getMainClass()
public void setMainClass(String classname)
public void setRequireMain(boolean requireMain)
Copyright © 2003-2009 The Codehaus. All rights reserved.