Package fish.payara.boot.runtime
Class BootCommands
- java.lang.Object
-
- fish.payara.boot.runtime.BootCommands
-
public class BootCommands extends Object
Class to hold a list of Boot Commands for execution- Author:
- Steve Millidge
-
-
Constructor Summary
Constructors Constructor Description BootCommands()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(BootCommand command)booleanexecuteCommands(CommandRunner runner)booleanexecuteCommands(CommandRunner runner, boolean stopOnFailure)List<BootCommand>getCommands()voidparseCommandScript(File file, boolean expandValues)Parse the given pre-boot, post-boot, or post-deploy command file, optionally performing variable expansion.voidparseCommandScript(URL scriptURL, boolean expandValues)Parse the given pre-boot, post-boot, or post-deploy command file, optionally performing variable expansion.
-
-
-
Method Detail
-
add
public void add(BootCommand command)
-
getCommands
public List<BootCommand> getCommands()
-
parseCommandScript
public void parseCommandScript(File file, boolean expandValues) throws IOException
Parse the given pre-boot, post-boot, or post-deploy command file, optionally performing variable expansion.- Parameters:
file- TheFileto parse commands fromexpandValues- Whether variable expansion should be performed - cannot be done during pre-boot- Throws:
IOException
-
parseCommandScript
public void parseCommandScript(URL scriptURL, boolean expandValues) throws IOException
Parse the given pre-boot, post-boot, or post-deploy command file, optionally performing variable expansion.- Parameters:
scriptURL- TheURLto parse commands fromexpandValues- Whether variable expansion should be performed - cannot be done during pre-boot- Throws:
IOException
-
executeCommands
public boolean executeCommands(CommandRunner runner)
-
executeCommands
public boolean executeCommands(CommandRunner runner, boolean stopOnFailure)
-
-