Package org.appng.cli.commands
Class CommandBatch
- java.lang.Object
-
- org.appng.cli.commands.CommandBatch
-
- All Implemented Interfaces:
ExecutableCliCommand
public class CommandBatch extends Object implements ExecutableCliCommand
AnExecutableCliCommand
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.
- Author:
- Matthias Müller, Matthias Herlitzius
-
-
Constructor Summary
Constructors Constructor Description CommandBatch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
execute
public void execute(CliEnvironment cle) throws BusinessException
Reads each line from the provided file and performs the corresponding command.- Specified by:
execute
in interfaceExecutableCliCommand
- Parameters:
cle
- the currentCliEnvironment
- Throws:
BusinessException
- if on error occurs while executing the command
-
parse
protected org.appng.cli.commands.CommandBatch.Line parse(String command)
-
-