org.apache.pluto.util.install.file
Class FileSystemInstaller
java.lang.Object
org.apache.pluto.util.install.file.FileSystemInstaller
- All Implemented Interfaces:
- PortalInstaller
- Direct Known Subclasses:
- Jetty5FileSystemInstaller, Tomcat5FileSystemInstaller
public abstract class FileSystemInstaller
- extends Object
- implements PortalInstaller
File System based installer. Copies files to the appropriate
locations.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileSystemInstaller
public FileSystemInstaller()
copyFilesToDirectory
protected void copyFilesToDirectory(Collection dependencies,
File destination)
throws IOException
- Throws:
IOException
removeFilesFromDirectory
protected void removeFilesFromDirectory(Collection dependencies,
File destination)
throws IOException
- Throws:
IOException
copyFileToDirectory
protected void copyFileToDirectory(File file,
File destination)
throws IOException
- Throws:
IOException
install
public void install(InstallationConfig config)
throws UtilityException
- NOTE: Order is important. If the server is running, we want to
make sure that the correct order is preserved
1) Install endorsed dependencies
2) Install shared dependencies
4) Prep Time
-- Create a domain directory for the portal
-- Init the configs holder
5) Install the Portlet Applications
6) Install the Portal Application
7) Finally, install the configs
- Specified by:
install
in interface PortalInstaller
- Parameters:
config
-
- Throws:
UtilityException
writeConfiguration
public abstract void writeConfiguration(InstallationConfig config)
throws IOException
- Throws:
IOException
getEndorsedDir
protected abstract File getEndorsedDir(InstallationConfig config)
getSharedDir
protected abstract File getSharedDir(InstallationConfig config)
getWebAppDir
protected abstract File getWebAppDir(InstallationConfig config)
uninstall
public void uninstall(InstallationConfig config)
throws UtilityException
- Specified by:
uninstall
in interface PortalInstaller
- Throws:
UtilityException
isValidInstallationDirectory
public abstract boolean isValidInstallationDirectory(File installDir)
- Specified by:
isValidInstallationDirectory
in interface PortalInstaller
Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.