org.apache.oodt.cas.workflow.util
Class ScriptFile

java.lang.Object
  extended by org.apache.oodt.cas.workflow.util.ScriptFile

public class ScriptFile
extends Object

Version:
$Revision$

A script file represents a set of commands (which are just Strings) to be run through a command shell.

Author:
mattmann

Constructor Summary
ScriptFile()
           
ScriptFile(String shell)
           
ScriptFile(String shell, List cmds)
           
 
Method Summary
 List getCommands()
           
 String getCommandShell()
           
 void setCommands(List commands)
           
 void setCommandShell(String commandShell)
           
 String toString()
           
 void writeScriptFile(String filePath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScriptFile

public ScriptFile()

ScriptFile

public ScriptFile(String shell)

ScriptFile

public ScriptFile(String shell,
                  List cmds)
Method Detail

getCommands

public List getCommands()
Returns:
Returns the commands.

setCommands

public void setCommands(List commands)
Parameters:
commands - The commands to set.

getCommandShell

public String getCommandShell()
Returns:
Returns the commandShell.

setCommandShell

public void setCommandShell(String commandShell)
Parameters:
commandShell - The commandShell to set.

toString

public String toString()
Overrides:
toString in class Object

writeScriptFile

public void writeScriptFile(String filePath)
                     throws Exception
Throws:
Exception


Copyright © 1999-2011 Apache OODT. All Rights Reserved.