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 void
add(BootCommand command)
boolean
executeCommands(CommandRunner runner)
boolean
executeCommands(CommandRunner runner, boolean stopOnFailure)
List<BootCommand>
getCommands()
void
parseCommandScript(File file, boolean expandValues)
Parse the given pre-boot, post-boot, or post-deploy command file, optionally performing variable expansion.void
parseCommandScript(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
- TheFile
to 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
- TheURL
to 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)
-
-