List of usage examples for com.liferay.portal.deploy DeployUtil undeploy
public static void undeploy(String appServerType, File deployDir) throws Exception
From source file:com.liferay.portlet.plugininstaller.action.InstallPluginAction.java
License:Open Source License
protected void uninstall(ActionRequest actionRequest) throws Exception { String appServerType = ServerDetector.getServerId(); String deploymentContext = ParamUtil.getString(actionRequest, "deploymentContext"); if (appServerType.startsWith(ServerDetector.JBOSS_ID)) { deploymentContext += ".war"; }//from ww w . jav a2 s. c o m File deployDir = new File(DeployUtil.getAutoDeployDestDir() + "/" + deploymentContext); DeployUtil.undeploy(appServerType, deployDir); SessionMessages.add(actionRequest, "triggeredPortletUndeploy"); }