Class BootCommands


  • public class BootCommands
    extends Object
    Class to hold a list of Boot Commands for execution
    Author:
    Steve Millidge
    • Constructor Detail

      • BootCommands

        public BootCommands()
    • Method Detail

      • 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 - The File to parse commands from
        expandValues - 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 - The URL to parse commands from
        expandValues - 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)