org.browsecode.helpers.installer.applications
Class InstallWebapp
java.lang.Object
org.browsecode.helpers.installer.applications.ApplicationToInstallStub
org.browsecode.helpers.installer.applications.InstallWebapp
- All Implemented Interfaces:
- ApplicationToInstall
- Direct Known Subclasses:
- InstallSurveyManager
public abstract class InstallWebapp
- extends ApplicationToInstallStub
Constructor Summary |
InstallWebapp(java.lang.String webappName,
java.lang.String webappZip,
java.lang.String webappWar,
java.lang.String webappUnzippedFolder)
|
Methods inherited from class org.browsecode.helpers.installer.applications.ApplicationToInstallStub |
getAskToFindPreviousInstalls, getDescription, getInstalledFileMatches, getInstalledInDirectory, getInstallers, getInstallerURL, getName, getSearcher, getTryToFindPreviousInstalls, setAskUserIfInstalledBefore, setDescription, setInstalledInDirectory, setInstallerURL, setName, setTryToFindPreviousInstalls |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
webappUnzippedFolder
protected java.lang.String webappUnzippedFolder
webappZip
protected java.lang.String webappZip
webappWar
protected java.lang.String webappWar
InstallWebapp
public InstallWebapp(java.lang.String webappName,
java.lang.String webappZip,
java.lang.String webappWar,
java.lang.String webappUnzippedFolder)
setInstallers
public void setInstallers(java.net.URL[] installerFile)
- Description copied from class:
ApplicationToInstallStub
- Set these in order of preference -- i.e. executables first, zip files (assumed to be platform independent) last.
- Overrides:
setInstallers
in class ApplicationToInstallStub
setInstallersPath
public void setInstallersPath(java.lang.String installersPath)
- This must be called before adding this to an ApplicationSet!
- Parameters:
installersPath
-
getInstalledFileName
public java.lang.String[] getInstalledFileName(int operatingSystem)
- Description copied from class:
ApplicationToInstallStub
- A path and file that is installed when this program has been installed. Return any possibilites that indicate that this program is installed.
You may use RegExp.
Some examples:
Apache Tomcat would return ".*jakarta.* /webapps/" (note that space is put in because java docs won't let you put in a * immediately followed by /)
MySQL would return "mysqldump.exe" and "mysqldump"
The path that these files are in will be searched for in the installation process and possibly used later (in tomcat's example, or in mysql's example)
If the path isn't found, the user will be prompted with installation instructions.
Paths that are directories should end in a '/' and files should not end in a slash.
- Specified by:
getInstalledFileName
in class ApplicationToInstallStub
- Parameters:
operatingSystem
- The OS that the target platform is running on. This will be gathered from org.browsecode.helpers.controlcomputer.ControlComputerInterface.
- Returns:
getInstallerDirections
public java.lang.String getInstallerDirections(ControlComputerInterface machineToInstallOn)
- Description copied from interface:
ApplicationToInstall
- Directions for installing the application by hand.
- Returns:
addedToApplicationSet
public void addedToApplicationSet(ApplicationSet applicationSet)
- Description copied from interface:
ApplicationToInstall
- Called by ApplicationSet after the application has been added to the ApplicationSet.
This method should check the ApplicationSet to make sure that all needed applications are already in ApplicationSet, and if not, it should add them to the ApplicationSet (by calling ApplicationSet.addApplicationBefore(neededApplication,this))
- Specified by:
addedToApplicationSet
in interface ApplicationToInstall
- Overrides:
addedToApplicationSet
in class ApplicationToInstallStub
getInstaller
public ApplicationToInstall.Installer getInstaller(ControlComputerInterface machineToInstallOn,
ApplicationSet applicationSet)
- Description copied from interface:
ApplicationToInstall
- An installer or a zip of the application. This file may be either an executable file or a zip. May also be null. This should be the only file required for installation.
Pass in a ControlComputerInterface so it can check the OS information.
- Specified by:
getInstaller
in interface ApplicationToInstall
- Overrides:
getInstaller
in class ApplicationToInstallStub
- Returns: