Class CopyFilesModule

  • All Implemented Interfaces:

    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:
    1. If the file existed in the base Microstrategy Web version, it will not be copied by the upgrade.
    2. If the file was processed by another module, this module defines the new target location and therefore it will be copied into that location.
    3. 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.
    4. All other files are copied to the same relative location they were found in the base version.
    MicroStrategy Web 9.0.0
    • 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: AbstractModule
        Method triggered to execute the module's upgrade tasks.
        Specified by:
        run in class AbstractModule
        info - upgrade information.
        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: UpgradeModule
        The display name of this module.
      • getDescription

        public java.lang.String getDescription()
        Description copied from interface: UpgradeModule
        A description of the task the module performs.