Class MigrateCsvConfigurationTask

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class MigrateCsvConfigurationTask
    extends org.apache.tools.ant.Task
    Called as ant task, performs data migration from old import configuration to the new folders structure. Old import configuration is stored in CSV files, separate for two data groups: Media and CockpitUIComponentConfiguration, joined by code column. File is read, data is parsed and put into MigrateCsvRowData objects. Using data from those objects, new folder structure is created in specified location. Xml configuration files are copied from old location to the new one, with new names - according to the naming convention.
    • Field Summary

      • Fields inherited from class org.apache.tools.ant.Task

        target, taskName, taskType, wrapper
      • Fields inherited from class org.apache.tools.ant.ProjectComponent

        description, location, project
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()  
      void setArgCsvPath​(java.lang.String argCsvPath)  
      void setArgNewPath​(java.lang.String argNewPath)  
      void setArgOldPath​(java.lang.String argOldPath)  
      void setExtName​(java.lang.String extName)  
      • Methods inherited from class org.apache.tools.ant.Task

        bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
      • Methods inherited from class org.apache.tools.ant.ProjectComponent

        clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MigrateCsvConfigurationTask

        public MigrateCsvConfigurationTask()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.tools.ant.BuildException
        Overrides:
        execute in class org.apache.tools.ant.Task
        Throws:
        org.apache.tools.ant.BuildException
      • setArgOldPath

        public void setArgOldPath​(java.lang.String argOldPath)
      • setArgCsvPath

        public void setArgCsvPath​(java.lang.String argCsvPath)
      • setArgNewPath

        public void setArgNewPath​(java.lang.String argNewPath)
      • setExtName

        public void setExtName​(java.lang.String extName)