com.bluemarsh.jswat.ui
Class StartupRunner

java.lang.Object
  |
  +--com.bluemarsh.jswat.ui.StartupRunner

public class StartupRunner
extends java.lang.Object

This utility class is responsible for running the .jswatrc files.

Author:
Nathan Fiedler

Field Summary
protected static Category logCategory
          Reporting category.
 
Constructor Summary
StartupRunner()
           
 
Method Summary
protected static java.lang.String runRCFile(java.io.File script, CommandManager cmdman)
          Load and run a .jswatrc file.
static java.lang.String runRCFiles(CommandManager cmdman)
          Look for a .jswatrc file in the local directory and all of it parents and run them.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logCategory

protected static Category logCategory
Reporting category. xxx - should probably change this category
Constructor Detail

StartupRunner

public StartupRunner()
Method Detail

runRCFile

protected static java.lang.String runRCFile(java.io.File script,
                                            CommandManager cmdman)
Load and run a .jswatrc file.
Parameters:
script - The name of a .jswatrc file.
cmdman - CommandManager to process rc file.
Returns:
null if okay, error message if failure.

runRCFiles

public static java.lang.String runRCFiles(CommandManager cmdman)
Look for a .jswatrc file in the local directory and all of it parents and run them. Also run the .jswat/jswatrc file in the user's home directory if there is one.
Parameters:
cmdman - CommandManager to process rc file.
Returns:
null if okay, error message if failure.