com.liferay.portal.tools.deploy
Class PortletDeployer

java.lang.Object
  extended by com.liferay.portal.tools.deploy.BaseDeployer
      extended by com.liferay.portal.tools.deploy.PortletDeployer
Direct Known Subclasses:
PortletAutoDeployer

public class PortletDeployer
extends BaseDeployer

View Source

Author:
Brian Wing Shun Chan, Brian Myunghun Kim

Field Summary
static java.lang.String JSF_MYFACES
           
static java.lang.String JSF_STANDARD
           
static java.lang.String JSF_SUN
           
static java.lang.String LIFERAY_RENDER_KIT_FACTORY
           
static java.lang.String MYFACES_CONTEXT_FACTORY
           
 
Fields inherited from class com.liferay.portal.tools.deploy.BaseDeployer
appServerType, baseDir, DEPLOY_TO_PREFIX, destDir, filePattern, jars, jbossPrefix, portletExtTaglibDTD, portletTaglibDTD, securityTaglibDTD, themeTaglibDTD, tomcatLibDir, uiTaglibDTD, unpackWar, utilTaglibDTD, wars
 
Constructor Summary
protected PortletDeployer()
           
protected PortletDeployer(java.util.List<java.lang.String> wars, java.util.List<java.lang.String> jars)
           
 
Method Summary
protected  void checkArguments()
           
protected  void copyXmls(java.io.File srcFile, java.lang.String displayName, com.liferay.portal.kernel.plugin.PluginPackage pluginPackage)
           
protected  java.lang.String getExtraContent(double webXmlVersion, java.io.File srcFile, java.lang.String displayName)
           
protected  java.lang.String getServletContent(java.io.File portletXML, java.io.File webXML)
           
static void main(java.lang.String[] args)
           
protected  void processPluginPackageProperties(java.io.File srcFile, java.lang.String displayName, com.liferay.portal.kernel.plugin.PluginPackage pluginPackage)
           
protected  void setupJSF(java.io.File facesXML, java.io.File portletXML)
           
protected  void updateDeployDirectory(java.io.File srcFile)
           
protected  void updatePortletXML(java.io.File portletXML)
           
 
Methods inherited from class com.liferay.portal.tools.deploy.BaseDeployer
copyDependencyXml, copyDependencyXml, copyDependencyXml, copyJars, copyPortalDependencies, copyProperties, copyTlds, deploy, deployDirectory, deployDirectory, deployFile, deployFile, downloadJar, getDeploymentHandler, getDisplayName, getPluginPackageLicensesXml, getPluginPackageLiferayVersionsXml, getPluginPackageProperties, getPluginPackageTagsXml, getSpeedFiltersContent, isJEEDeploymentEnabled, mergeDirectory, readPluginPackage, rewriteFiles, updateGeronimoWebXml, updateWebXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JSF_MYFACES

public static final java.lang.String JSF_MYFACES
See Also:
Constant Field Values

JSF_STANDARD

public static final java.lang.String JSF_STANDARD
See Also:
Constant Field Values

JSF_SUN

public static final java.lang.String JSF_SUN
See Also:
Constant Field Values

LIFERAY_RENDER_KIT_FACTORY

public static final java.lang.String LIFERAY_RENDER_KIT_FACTORY
See Also:
Constant Field Values

MYFACES_CONTEXT_FACTORY

public static final java.lang.String MYFACES_CONTEXT_FACTORY
See Also:
Constant Field Values
Constructor Detail

PortletDeployer

protected PortletDeployer()

PortletDeployer

protected PortletDeployer(java.util.List<java.lang.String> wars,
                          java.util.List<java.lang.String> jars)
Method Detail

main

public static void main(java.lang.String[] args)

checkArguments

protected void checkArguments()
Overrides:
checkArguments in class BaseDeployer

copyXmls

protected void copyXmls(java.io.File srcFile,
                        java.lang.String displayName,
                        com.liferay.portal.kernel.plugin.PluginPackage pluginPackage)
                 throws java.lang.Exception
Overrides:
copyXmls in class BaseDeployer
Throws:
java.lang.Exception

getExtraContent

protected java.lang.String getExtraContent(double webXmlVersion,
                                           java.io.File srcFile,
                                           java.lang.String displayName)
                                    throws java.lang.Exception
Overrides:
getExtraContent in class BaseDeployer
Throws:
java.lang.Exception

getServletContent

protected java.lang.String getServletContent(java.io.File portletXML,
                                             java.io.File webXML)
                                      throws java.lang.Exception
Throws:
java.lang.Exception

processPluginPackageProperties

protected void processPluginPackageProperties(java.io.File srcFile,
                                              java.lang.String displayName,
                                              com.liferay.portal.kernel.plugin.PluginPackage pluginPackage)
                                       throws java.lang.Exception
Overrides:
processPluginPackageProperties in class BaseDeployer
Throws:
java.lang.Exception

setupJSF

protected void setupJSF(java.io.File facesXML,
                        java.io.File portletXML)
                 throws java.lang.Exception
Throws:
java.lang.Exception

updateDeployDirectory

protected void updateDeployDirectory(java.io.File srcFile)
                              throws java.lang.Exception
Overrides:
updateDeployDirectory in class BaseDeployer
Throws:
java.lang.Exception

updatePortletXML

protected void updatePortletXML(java.io.File portletXML)
                         throws java.lang.Exception
Throws:
java.lang.Exception