nl.uva.vlet.bootstrap
Class Bootstrapper
java.lang.Object
nl.uva.vlet.bootstrap.Bootstrapper
public class Bootstrapper
- extends java.lang.Object
Universal Bootstrapper class for both Windows and Linux.
This class must be able work as a standalone class !
Cannot reference other (vls) classes !
(Also the vls.* jar will loaded by THIS bootstrapper!)
Method Summary |
void |
addDirectory(java.lang.String dir)
|
void |
checkSetVLeTEnvironment()
Checks startup environment and set installation parameters:
- Check java 1.5 version.
- Add all .jar files from ./lib and ${globus.install}/lib.
- Sets skeleton CLASSPATH adding: |
void |
launch(java.lang.String launchClass,
java.lang.String[] launchArgs)
|
static void |
main(java.lang.String[] args)
|
void |
rescursiveAddJars(java.lang.String libDir)
|
void |
setBaseURL(java.net.URL baseurl)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VLETRC_PROP_FILE
public static final java.lang.String VLETRC_PROP_FILE
- See Also:
- Constant Field Values
VLET_INSTALL_PROP
public static final java.lang.String VLET_INSTALL_PROP
- See Also:
- Constant Field Values
VLET_SYSCONFDIR_PROP
public static final java.lang.String VLET_SYSCONFDIR_PROP
- See Also:
- Constant Field Values
VLET_INSTALL_LIBDIR_PROP
public static final java.lang.String VLET_INSTALL_LIBDIR_PROP
- See Also:
- Constant Field Values
JAVA_LIBRARY_PATH_PROP
public static final java.lang.String JAVA_LIBRARY_PATH_PROP
- See Also:
- Constant Field Values
Bootstrapper
public Bootstrapper()
checkSetVLeTEnvironment
public void checkSetVLeTEnvironment()
throws java.lang.Exception
- Checks startup environment and set installation parameters:
- Check java 1.5 version.
- Add all .jar files from ./lib and ${globus.install}/lib.
- Sets skeleton CLASSPATH adding:
- ./ ; VLET_INSTALL ${vlet.install}
- ./etc ; VLET_SYSCONFDIR ${vlet.install.sysconfdir}
- ./lib ; ${vlet.install.libdir}
- ./lib/linux ; ${vlet.install.libdir}/linux
- ./lib/win32 ; ${vlet.install.libdir}/win32
Bootstrap configuration:
0) Assume default VLET_INSTALL using environment variable
VLET_INSTALL or (if not set) by stripping ./lib or ./bin from
startup path.
1) check property "vlet.install.sysconfdir" for configuration.
-1a) if not set, check VLET_INSTALL and specify sysconfdir
as ${VLET_INSTALL}/etc
2) load configuration file from ${vlet.install.sysconfigdir}/vletrc.prop
-2a) when not found, try to load /etc/vletrc.prop
3) (re)set installation location taken from vletrc.prop, overriding
previous settings or keep defaults (this allows to keep defaults
without setting the properties explicitly in vlerc.prop)
- Throws:
java.lang.Exception
addDirectory
public void addDirectory(java.lang.String dir)
rescursiveAddJars
public void rescursiveAddJars(java.lang.String libDir)
throws java.lang.Exception
- Throws:
java.lang.Exception
launch
public void launch(java.lang.String launchClass,
java.lang.String[] launchArgs)
throws java.lang.Exception
- Throws:
java.lang.Exception
main
public static void main(java.lang.String[] args)
setBaseURL
public void setBaseURL(java.net.URL baseurl)