public class BatchInfoParameter extends Object
| Modifier and Type | Field and Description | 
|---|---|
ApplicationBaseDirectoryParameter | 
batchappsParameter
The batch application base directory. 
 | 
String | 
location
The information file location - must be one of batch ID, batch directory, or information file path. 
 | 
| Constructor and Description | 
|---|
BatchInfoParameter()  | 
| Modifier and Type | Method and Description | 
|---|---|
static Optional<Path> | 
findInfo(Path applicationBaseDir,
        String location)
Returns the DSL information file path. 
 | 
Path | 
getPath()
Returns the information file path. 
 | 
BatchInfo | 
load()
Loads the given information file. 
 | 
static BatchInfo | 
load(Path path)
Loads the given information file. 
 | 
public final ApplicationBaseDirectoryParameter batchappsParameter
public String location
public Path getPath()
CommandConfigurationException - if it is not foundpublic BatchInfo load()
CommandConfigurationException - if error occurred while loading the information filepublic static Optional<Path> findInfo(Path applicationBaseDir, String location)
applicationBaseDir - the batch application base directory (nullable)location - the file location - must be one of batch ID, batch directory, or information file pathempty if it is not foundpublic static BatchInfo load(Path path)
path - the target information file pathCommandConfigurationException - if error occurred while loading the information fileCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.