public class CommandBatch extends Object implements ExecutableCliCommand
ExecutableCliCommand processing a batch file.
Usage: appng batch [options]
Options:
-d
Print the commands that would be executed after the batch file has been
parsed, but do not execute them (dry-run).
Default: false
* -f
The name of the batch file.
| Constructor and Description |
|---|
CommandBatch() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(CliEnvironment cle)
Reads each line from the provided file and performs the corresponding command.
|
protected Map<String,String> |
getVariables() |
protected org.appng.cli.commands.CommandBatch.Line |
parse(String command) |
protected String[] |
parseLine(String command) |
public void execute(CliEnvironment cle) throws BusinessException
execute in interface ExecutableCliCommandcle - the current CliEnvironmentBusinessException - if on error occurs while executing the commandprotected org.appng.cli.commands.CommandBatch.Line parse(String command)
Copyright © 2011–2020 aiticon GmbH. All rights reserved.