public class ModuleManagementTool extends java.lang.Object implements LogOutput
Manages the modules installed in a war file. Allows modules to be installed, updated, enabled, disabled and uninstalled. Information about the module installed is also available.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BACKUP_DIR
Standard directories found in the alfresco war
|
| Constructor and Description |
|---|
ModuleManagementTool()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
disableModule(java.lang.String moduleId,
java.lang.String warLocation) |
void |
enableModule(java.lang.String moduleId,
java.lang.String warLocation) |
void |
info(java.lang.Object message) |
void |
installModule(java.lang.String ampFileLocation,
java.lang.String warFileLocation)
Installs a given AMP file into a given WAR file.
|
void |
installModule(java.lang.String ampFileLocation,
java.lang.String warFileLocation,
boolean preview,
boolean forceInstall,
boolean backupWAR)
Installs a given AMP file into a given WAR file.
|
void |
installModules(java.lang.String directory,
java.lang.String warFileLocation)
Installs all modules within a folder into the given WAR file.
|
void |
installModules(java.lang.String directoryLocation,
java.lang.String warFileLocation,
boolean preview,
boolean forceInstall,
boolean backupWAR) |
boolean |
isVerbose()
Indicates whether the management tool is currently in verbose reporting mode.
|
void |
listModules(java.lang.String warLocation)
Lists all the currently installed modules in the WAR
|
static void |
main(java.lang.String[] args)
Main
|
void |
setVerbose(boolean verbose)
Sets the verbose setting for the mangement tool
|
void |
uninstallModule(java.lang.String moduleId,
java.lang.String warFileLocation,
boolean preview,
boolean purge)
Cleans the WAR file of all files relating to the currently installed version of the the Module.
|
public static final java.lang.String BACKUP_DIR
public boolean isVerbose()
public void setVerbose(boolean verbose)
verbose - true if verbose, false otherwisepublic void installModules(java.lang.String directory,
java.lang.String warFileLocation)
throws java.io.IOException
java.io.IOExceptionModuleManagementTool.installModule(String, String, boolean, boolean, boolean)public void installModules(java.lang.String directoryLocation,
java.lang.String warFileLocation,
boolean preview,
boolean forceInstall,
boolean backupWAR)
throws java.io.IOException
java.io.IOExceptionpublic void installModule(java.lang.String ampFileLocation,
java.lang.String warFileLocation)
ampFileLocation - the location of the AMP file to be installedwarFileLocation - the location of the WAR file into which the AMP file is to be installedModuleManagementTool.installModule(String, String, boolean, boolean, boolean)public void installModule(java.lang.String ampFileLocation,
java.lang.String warFileLocation,
boolean preview,
boolean forceInstall,
boolean backupWAR)
ampFileLocation - the location of the AMP file to be installedwarFileLocation - the location of the WAR file into which the AMP file is to be installed.preview - indicates whether this should be a preview install. This means that the process of
installation will be followed and reported, but the WAR file will not be modified.forceInstall - indicates whether the installed files will be replaced regardless of the currently installed
version of the AMP. Generally used during development of the AMP.backupWAR - indicates whether we should backup the war we are modifying or notpublic void uninstallModule(java.lang.String moduleId,
java.lang.String warFileLocation,
boolean preview,
boolean purge)
throws java.io.IOException
warFileLocation - the war file locationmoduleId - the module idpreview - indicates whether this is a preview installationpurge - Fully delete all files (including those marked "PRESERVED")java.io.IOExceptionpublic void disableModule(java.lang.String moduleId,
java.lang.String warLocation)
java.lang.UnsupportedOperationExceptionpublic void enableModule(java.lang.String moduleId,
java.lang.String warLocation)
java.lang.UnsupportedOperationExceptionpublic void listModules(java.lang.String warLocation)
warLocation - the war locationpublic static void main(java.lang.String[] args)
args - command line interface argumentsCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.