|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.chaosserver.bilbo.task.BaseTask | +--com.chaosserver.bilbo.task.generate.GenerateTask
Generates mappings files.
Field Summary | |
protected int |
errorLevel
Holds the error response if an error is encountered. |
protected Collection |
mappings
Holds the mapping names to generate for each file. |
Fields inherited from class com.chaosserver.bilbo.task.BaseTask |
DEFAULT_HELP, settings |
Constructor Summary | |
GenerateTask()
Default constructor. |
Method Summary | |
void |
execute(File currentDirectory)
Iterators through each file in the directory and generates a mapping for each mapping passed in through the arguments. |
protected int |
getErrorLevel()
Getter for the error level |
protected void |
parseFlags(String flags)
Parses the flag portion of the task arguments. |
protected void |
parseMappingString(String mappingsString)
Parses the mapping portion of the task arguments. |
void |
parseTaskArguments(String argumentString)
Parses the task specific argument string. |
protected void |
setErrorLevel(int errorLevel)
Setter for the error level |
Methods inherited from class com.chaosserver.bilbo.task.BaseTask |
execute, executeRecursive, getHelpResource, getSettings, printHelp, setSettings |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int errorLevel
protected Collection mappings
Constructor Detail |
public GenerateTask()
Method Detail |
protected void setErrorLevel(int errorLevel)
errorLevel
- the error levelprotected int getErrorLevel()
public void parseTaskArguments(String argumentString) throws BadTaskCommandArgumentsException
Task
argumentString
- the task specific argument string
BadTaskCommandArgumentsException
- if the argument string is invalidprotected void parseFlags(String flags)
flags
- the flag portion of the task argumentsprotected void parseMappingString(String mappingsString) throws BadTaskCommandArgumentsException
mappingsString
- the mapping portion of the task arguments
BadTaskCommandArgumentsException
- if there is an error with the arguments providedpublic void execute(File currentDirectory) throws GenerateException
execute
in class BaseTask
currentDirectory
- the directory to process
GenerateException
- if there is an error generating
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |