Class LibertyInstall


  • public class LibertyInstall
    extends Object
    This class encapsulate information about a WebSphere Liberty install
    • Constructor Detail

      • LibertyInstall

        public LibertyInstall​(InstalledLocalContainer container)
        Create the LibertyInstall for this local container
        Parameters:
        container - the container to create it for
    • Method Detail

      • getInstallDir

        public File getInstallDir()
        Returns:
        The wlp.install.dir
      • getServerDir

        public File getServerDir​(String server)
        Locates the server.config.dir for the specified Liberty server
        Parameters:
        server - the name of the server. If null 'defaultServer' is used
        Returns:
        The server.config.dir
      • runCommand

        public Process runCommand​(String command)
                           throws Exception
        Run the specified server command.
        Parameters:
        command - The command to run
        Returns:
        The process object wrapping the invoked process
        Throws:
        Exception - if something goes wrong.
      • runCommand

        public Process runCommand​(String command,
                                  Map<String,​String> inEnv)
                           throws Exception
        Run the specified server command.
        Parameters:
        command - The command to run
        inEnv - the envrionment to use
        Returns:
        The process object wrapping the invoked process
        Throws:
        Exception - if something goes wrong.