Class CopyFilesModule
- java.lang.Object
-
- com.microstrategy.web.app.utils.upgrade.AbstractModule
-
- com.microstrategy.web.app.utils.upgrade.CopyFilesModule
-
- All Implemented Interfaces:
UpgradeModule
public class CopyFilesModule extends AbstractModule
This module copies new files from the old customization to the new target plugin. The target folder is calculated as follows:- If the file existed in the base Microstrategy Web version, it will not be copied by the upgrade.
- If the file was processed by another module, this module defines the new target location and therefore it will be copied into that location.
- If the file ends with a certain file extension that Microstrategy customization best-practices recommends to locate in a particular folder, the file will be copied to that folder, for example, all files with ".css" extension are copied to the "/styles/" folder.
- All other files are copied to the same relative location they were found in the base version.
- Since:
- MicroStrategy Web 9.0.0
-
-
Constructor Summary
Constructors Constructor Description CopyFilesModule(UpgradeManager manager)Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription()A description of the task the module performs.java.lang.StringgetName()The display name of this module.voidrun(UpgradeInfo info)Method triggered to execute the module's upgrade tasks.-
Methods inherited from class com.microstrategy.web.app.utils.upgrade.AbstractModule
canChangeEnabled, getRelativePath, getUpgradeManager, isEnabled, setEnabled
-
-
-
-
Constructor Detail
-
CopyFilesModule
public CopyFilesModule(UpgradeManager manager)
Default constructor. Receives the UpgradeManager instantiating this AbstractModule.
-
-
Method Detail
-
run
public void run(UpgradeInfo info) throws UpgradeException
Description copied from class:AbstractModuleMethod triggered to execute the module's upgrade tasks.- Specified by:
runin classAbstractModule- Parameters:
info- upgrade information.- Throws:
UpgradeException- when an unexpected error that prevents the module to cotinue occurs. Other errors should simply be logged.
-
getName
public java.lang.String getName()
Description copied from interface:UpgradeModuleThe display name of this module.
-
getDescription
public java.lang.String getDescription()
Description copied from interface:UpgradeModuleA description of the task the module performs.
-
-