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 Summary
Constructors Constructor Description LibertyInstall(InstalledLocalContainer container)Create the LibertyInstall for this local container
-
Method Summary
All 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
-
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 theserver.config.dirfor 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 runinEnv- the envrionment to use- Returns:
- The process object wrapping the invoked process
- Throws:
Exception- if something goes wrong.
-
-