Class LibertyInstall
- java.lang.Object
- 
- org.codehaus.cargo.container.liberty.internal.LibertyInstall
 
- 
 public class LibertyInstall extends Object This class encapsulate information about a WebSphere Liberty install
- 
- 
Constructor SummaryConstructors Constructor Description LibertyInstall(InstalledLocalContainer container)Create the LibertyInstall for this local container
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description FilegetInstallDir()FilegetServerDir(String server)Locates theserver.config.dirfor the specified Liberty serverProcessrunCommand(String command)Run the specified server command.ProcessrunCommand(String command, Map<String,String> inEnv)Run the specified server command.
 
- 
- 
- 
Constructor Detail- 
LibertyInstallpublic LibertyInstall(InstalledLocalContainer container) Create the LibertyInstall for this local container- Parameters:
- container- the container to create it for
 
 
- 
 - 
Method Detail- 
getInstallDirpublic File getInstallDir() - Returns:
- The wlp.install.dir
 
 - 
getServerDirpublic File getServerDir(String server) Locates theserver.config.dirfor the specified Liberty server- Parameters:
- server- the name of the server. If null 'defaultServer' is used
- Returns:
- The server.config.dir
 
 - 
runCommandpublic 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.
 
 - 
runCommandpublic 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.
 
 
- 
 
-