fipaos.tool.configurator
Class ScriptEditor

java.lang.Object
  |
  +--fipaos.tool.configurator.ScriptEditor
All Implemented Interfaces:
ScriptVars

public class ScriptEditor
extends java.lang.Object
implements ScriptVars


Field Summary
static java.lang.String SETUP_UNIX
           
static java.lang.String SETUP_WINDOWS
           
 
Fields inherited from interface fipaos.tool.configurator.ScriptVars
SETUPFIPAOS_DBG_LVL_FILE, SETUPFIPAOS_DBG_LVL_MEM, SETUPFIPAOS_DEBUGVER, SETUPFIPAOS_FIPAOS, SETUPFIPAOS_FIPAOS_VER, SETUPFIPAOS_JDK, SETUPFIPAOS_LOADER_GUI, SETUPFIPAOS_NOJIT, SETUPFIPAOS_PLATFORM, SETUPFIPAOS_VARS, STARTFIPAOS_IIOPNSPORT, STARTFIPAOS_RMINSPORT, STARTFIPAOS_SSLRMINSPORT, STARTFIPAOS_STARTACC, STARTFIPAOS_STARTIIOPNS, STARTFIPAOS_STARTRMINS, STARTFIPAOS_STARTSSLRMINS, STARTFIPAOS_VARS
 
Constructor Summary
ScriptEditor()
          Constructor
ScriptEditor(java.io.File batch_file, java.util.List variables)
          Generic constructor to load given bat/script file
 
Method Summary
 java.util.Map getScriptVariables()
          getScriptVariables()
 boolean isWindowsOS()
          isWindowsOS()
 boolean populate(java.lang.String fipaos_location)
          populate()
 void saveNewConfiguration()
          saveNewConfiguration() Save the updated information to the configuration files
 void setScriptVariables(java.util.Map variables)
          setScriptVariables()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SETUP_WINDOWS

public static final java.lang.String SETUP_WINDOWS

SETUP_UNIX

public static final java.lang.String SETUP_UNIX
Constructor Detail

ScriptEditor

public ScriptEditor()
Constructor

ScriptEditor

public ScriptEditor(java.io.File batch_file,
                    java.util.List variables)
             throws java.io.IOException
Generic constructor to load given bat/script file
Method Detail

isWindowsOS

public boolean isWindowsOS()
isWindowsOS()
Returns:
boolean. True if this is a windows OS. False if not.

populate

public boolean populate(java.lang.String fipaos_location)
populate()
Parameters:
location. - A string containing the location to attempt to load the setup script from.

getScriptVariables

public java.util.Map getScriptVariables()
getScriptVariables()
Returns:
Map. The variables parsed from the setup script as key-value pairs

setScriptVariables

public void setScriptVariables(java.util.Map variables)
setScriptVariables()
Parameters:
variables. - The values to write back to the script file

saveNewConfiguration

public void saveNewConfiguration()
saveNewConfiguration() Save the updated information to the configuration files