com.liferay.portal.tools.deploy
Class BaseDeployer
java.lang.Object
com.liferay.portal.tools.deploy.BaseDeployer
- Direct Known Subclasses:
- ExtDeployer, HookDeployer, LayoutTemplateDeployer, PortletDeployer, ThemeDeployer, WebDeployer
public class BaseDeployer
- extends Object
Method Summary |
protected void |
addExtJar(List<String> jars,
String resource)
|
protected void |
addRequiredJar(List<String> jars,
String resource)
|
protected void |
checkArguments()
|
protected void |
copyDependencyXml(String fileName,
String targetDir)
|
protected void |
copyDependencyXml(String fileName,
String targetDir,
Map<String,String> filterMap)
|
protected void |
copyDependencyXml(String fileName,
String targetDir,
Map<String,String> filterMap,
boolean overwrite)
|
protected void |
copyJars(File srcFile,
PluginPackage pluginPackage)
|
protected void |
copyPortalDependencies(File srcFile)
|
protected void |
copyProperties(File srcFile,
PluginPackage pluginPackage)
|
protected void |
copyTlds(File srcFile,
PluginPackage pluginPackage)
|
protected void |
copyXmls(File srcFile,
String displayName,
PluginPackage pluginPackage)
|
protected void |
deploy()
|
protected void |
deployDirectory(File srcFile,
File mergeDir,
File deployDir,
String displayName,
boolean overwrite,
PluginPackage pluginPackage)
|
protected void |
deployDirectory(File srcFile,
String displayName,
boolean override,
PluginPackage pluginPackage)
|
protected void |
deployFile(File srcFile)
|
protected boolean |
deployFile(File srcFile,
File mergeDir,
File deployDir,
String displayName,
boolean overwrite,
PluginPackage pluginPackage)
|
protected String |
downloadJar(String jar)
|
protected DeploymentHandler |
getDeploymentHandler()
|
protected String |
getDisplayName(File srcFile)
|
protected String |
getExtraContent(double webXmlVersion,
File srcFile,
String displayName)
|
protected String |
getPluginPackageLicensesXml(List<License> licenses)
|
protected String |
getPluginPackageLiferayVersionsXml(List<String> liferayVersions)
|
protected Properties |
getPluginPackageProperties(File srcFile)
|
protected String |
getPluginPackageTagsXml(List<String> tags)
|
protected String |
getSpeedFiltersContent(File srcFile)
|
protected boolean |
isJEEDeploymentEnabled()
|
static void |
main(String[] args)
|
protected void |
mergeDirectory(File mergeDir,
File targetDir)
|
protected void |
processPluginPackageProperties(File srcFile,
String displayName,
PluginPackage pluginPackage)
|
protected PluginPackage |
readPluginPackage(File file)
|
protected void |
rewriteFiles(File srcDir)
|
protected void |
updateDeployDirectory(File srcFile)
|
protected void |
updateGeronimoWebXml(File srcFile,
String displayName,
PluginPackage pluginPackage)
|
protected void |
updateWebXml(File webXml,
File srcFile,
String displayName,
PluginPackage pluginPackage)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEPLOY_TO_PREFIX
public static final String DEPLOY_TO_PREFIX
- See Also:
- Constant Field Values
baseDir
protected String baseDir
destDir
protected String destDir
appServerType
protected String appServerType
auiTaglibDTD
protected String auiTaglibDTD
portletTaglibDTD
protected String portletTaglibDTD
portletExtTaglibDTD
protected String portletExtTaglibDTD
securityTaglibDTD
protected String securityTaglibDTD
themeTaglibDTD
protected String themeTaglibDTD
uiTaglibDTD
protected String uiTaglibDTD
utilTaglibDTD
protected String utilTaglibDTD
unpackWar
protected boolean unpackWar
filePattern
protected String filePattern
jbossPrefix
protected String jbossPrefix
tomcatLibDir
protected String tomcatLibDir
wars
protected List<String> wars
jars
protected List<String> jars
BaseDeployer
protected BaseDeployer()
BaseDeployer
protected BaseDeployer(List<String> wars,
List<String> jars)
main
public static void main(String[] args)
addExtJar
protected void addExtJar(List<String> jars,
String resource)
throws Exception
- Throws:
Exception
addRequiredJar
protected void addRequiredJar(List<String> jars,
String resource)
throws Exception
- Throws:
Exception
checkArguments
protected void checkArguments()
copyDependencyXml
protected void copyDependencyXml(String fileName,
String targetDir)
throws Exception
- Throws:
Exception
copyDependencyXml
protected void copyDependencyXml(String fileName,
String targetDir,
Map<String,String> filterMap)
throws Exception
- Throws:
Exception
copyDependencyXml
protected void copyDependencyXml(String fileName,
String targetDir,
Map<String,String> filterMap,
boolean overwrite)
throws Exception
- Throws:
Exception
copyJars
protected void copyJars(File srcFile,
PluginPackage pluginPackage)
throws Exception
- Throws:
Exception
copyPortalDependencies
protected void copyPortalDependencies(File srcFile)
throws Exception
- Throws:
Exception
copyProperties
protected void copyProperties(File srcFile,
PluginPackage pluginPackage)
throws Exception
- Throws:
Exception
copyTlds
protected void copyTlds(File srcFile,
PluginPackage pluginPackage)
throws Exception
- Throws:
Exception
copyXmls
protected void copyXmls(File srcFile,
String displayName,
PluginPackage pluginPackage)
throws Exception
- Throws:
Exception
deploy
protected void deploy()
throws Exception
- Throws:
Exception
deployDirectory
protected void deployDirectory(File srcFile,
String displayName,
boolean override,
PluginPackage pluginPackage)
throws Exception
- Throws:
Exception
deployDirectory
protected void deployDirectory(File srcFile,
File mergeDir,
File deployDir,
String displayName,
boolean overwrite,
PluginPackage pluginPackage)
throws Exception
- Throws:
Exception
deployFile
protected void deployFile(File srcFile)
throws Exception
- Throws:
Exception
deployFile
protected boolean deployFile(File srcFile,
File mergeDir,
File deployDir,
String displayName,
boolean overwrite,
PluginPackage pluginPackage)
throws Exception
- Throws:
Exception
downloadJar
protected String downloadJar(String jar)
throws Exception
- Throws:
Exception
getDisplayName
protected String getDisplayName(File srcFile)
getDeploymentHandler
protected DeploymentHandler getDeploymentHandler()
getExtraContent
protected String getExtraContent(double webXmlVersion,
File srcFile,
String displayName)
throws Exception
- Throws:
Exception
getPluginPackageLicensesXml
protected String getPluginPackageLicensesXml(List<License> licenses)
getPluginPackageLiferayVersionsXml
protected String getPluginPackageLiferayVersionsXml(List<String> liferayVersions)
getPluginPackageProperties
protected Properties getPluginPackageProperties(File srcFile)
throws Exception
- Throws:
Exception
getPluginPackageTagsXml
protected String getPluginPackageTagsXml(List<String> tags)
getSpeedFiltersContent
protected String getSpeedFiltersContent(File srcFile)
throws Exception
- Throws:
Exception
isJEEDeploymentEnabled
protected boolean isJEEDeploymentEnabled()
mergeDirectory
protected void mergeDirectory(File mergeDir,
File targetDir)
processPluginPackageProperties
protected void processPluginPackageProperties(File srcFile,
String displayName,
PluginPackage pluginPackage)
throws Exception
- Throws:
Exception
readPluginPackage
protected PluginPackage readPluginPackage(File file)
rewriteFiles
protected void rewriteFiles(File srcDir)
throws Exception
- Throws:
Exception
updateDeployDirectory
protected void updateDeployDirectory(File srcFile)
throws Exception
- Throws:
Exception
updateGeronimoWebXml
protected void updateGeronimoWebXml(File srcFile,
String displayName,
PluginPackage pluginPackage)
throws Exception
- Throws:
Exception
updateWebXml
protected void updateWebXml(File webXml,
File srcFile,
String displayName,
PluginPackage pluginPackage)
throws Exception
- Throws:
Exception