org.helma.tools.launcher
Class Main

java.lang.Object
  extended by org.helma.tools.launcher.Main

public class Main
extends java.lang.Object

Main launcher class. This figures out the Helma home directory, sets up the classpath, and launches one of the Helma tools.


Constructor Summary
Main()
           
 
Method Summary
static java.lang.ClassLoader createClassLoader(java.io.File home)
          Create a server-wide ClassLoader from our install directory.
static java.io.File getHelmaHome()
          Get the Helma install directory.
static void main(java.lang.String[] args, java.lang.String className)
          Helma boot method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Main

public Main()
Method Detail

main

public static void main(java.lang.String[] args,
                        java.lang.String className)
Helma boot method. This retrieves the Helma home directory, creates the classpath and invokes main() in one of the helma tool classes.

Parameters:
args - command line arguments

createClassLoader

public static java.lang.ClassLoader createClassLoader(java.io.File home)
                                               throws java.net.MalformedURLException
Create a server-wide ClassLoader from our install directory. This will be used as parent ClassLoader for all application ClassLoaders.

Parameters:
home - the helma install directory
Returns:
the main classloader we'll be using
Throws:
java.net.MalformedURLException

getHelmaHome

public static java.io.File getHelmaHome()
                                 throws java.io.IOException,
                                        java.net.MalformedURLException
Get the Helma install directory.

Returns:
the base install directory we're running in
Throws:
java.io.IOException
java.net.MalformedURLException