Class TaskFactory
Object
TaskFactory
Determines
Paths related to tasks.- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic SelectParam<Optional<Path>> pathOrTaskName(String[] args, Path tasksDirectory) Creates aSelectParamfor a path or task name.
-
Method Details
-
pathOrTaskName
Creates aSelectParamfor 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
SelectParamfor an optionalPath - Throws:
CommandLineException- if invalid arguments were passed
-