|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.exoftware.exactor.Runner
Class to run scripts from a file or directory.
Script files are plain text files with the extension .act
.
The format of the script files is as follows;
# a comment line
CommandName [param 1] [param 2] ... [param n]
AnotherCommand
Command names are mapped to instances of the Command
class by looking for a class with the
same name on the classpath.
Constructor Summary | |
Runner(java.lang.String fileName)
Create a new Runner. |
Method Summary | |
void |
addListener(ExecutionSetListener listener)
Add a listener for execution events. |
java.lang.String |
getBaseDir()
Returns the base directory of the runner. |
static void |
main(java.lang.String[] args)
Main entry point. |
void |
run()
Run the script, or all the scripts if the runner was created with a directory name. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Runner(java.lang.String fileName) throws java.io.FileNotFoundException
fileName
- the name of the file or directory to run.
java.io.FileNotFoundException
- if the specified filename is not a file or directory name.Method Detail |
public static void main(java.lang.String[] args)
args
- the command line arguments.public void addListener(ExecutionSetListener listener)
listener
- the listener to add.public void run()
public java.lang.String getBaseDir()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |