String portletApplicationName)
throws PortletApplicationException, FileNotDeployableException, IOException
{
System.out.println("Deploying Web Application [" + webAppsDir + "] to Portlet Application [" + portletApplicationName + "]...");
StandardDeploymentObject deploymentObject = new StandardDeploymentObject(new File(warFile));
deployer.deploy(new PortletApplicationWar(deploymentObject.getFileObject(), portletApplicationName, "/"+portletApplicationName));
System.out.println("...PAM Deploy done");
deploymentObject.close();
}