Class TaskFactory
Object
TaskFactory
Determines
Path
s related to tasks.- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic SelectParam
<Optional<Path>> pathOrTaskName
(String[] args, Path tasksDirectory) Creates aSelectParam
for a path or task name.
-
Method Details
-
pathOrTaskName
Creates aSelectParam
for a path or task name.If the argument is a name (no extension, no root, no special-chars apart from forward-slashes), then construct an automatic path to the tasks in the configuration directory. Otherwise treat as path to BeanXML.
- Parameters:
args
- the command-line argumentstasksDirectory
- the directory containing task configurations- Returns:
- a
SelectParam
for an optionalPath
- Throws:
CommandLineException
- if invalid arguments were passed
-