Class MigrateCsvConfigurationTask

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
de.hybris.ant.taskdefs.migration.MigrateCsvConfigurationTask
All Implemented Interfaces:
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
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    setArgCsvPath(String argCsvPath)
     
    void
    setArgNewPath(String argNewPath)
     
    void
    setArgOldPath(String argOldPath)
     
    void
    setExtName(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 Details

    • MigrateCsvConfigurationTask

      public MigrateCsvConfigurationTask()
  • Method Details

    • 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(String argOldPath)
    • setArgCsvPath

      public void setArgCsvPath(String argCsvPath)
    • setArgNewPath

      public void setArgNewPath(String argNewPath)
    • setExtName

      public void setExtName(String extName)