org.fao.gast.boot
Class Util

java.lang.Object
  extended by org.fao.gast.boot.Util

public class Util
extends java.lang.Object


Constructor Summary
Util()
           
 
Method Summary
static void boot(java.lang.String appPath, java.net.URL[] jarFiles, java.lang.String className, java.lang.String[] args)
           
static java.lang.String getJarFile(java.lang.String classPath)
          Returns the full path of the jar file that contains the running class
static java.net.URL[] getJarUrls(java.lang.String dir)
           
static void showError(java.lang.String message)
           
static void showError(java.lang.Throwable t)
           
static void showInfo(java.lang.String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

getJarFile

public static java.lang.String getJarFile(java.lang.String classPath)
Returns the full path of the jar file that contains the running class


getJarUrls

public static java.net.URL[] getJarUrls(java.lang.String dir)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

boot

public static void boot(java.lang.String appPath,
                        java.net.URL[] jarFiles,
                        java.lang.String className,
                        java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

showError

public static void showError(java.lang.Throwable t)

showError

public static void showError(java.lang.String message)

showInfo

public static void showInfo(java.lang.String message)