Package de.hybris.ant.taskdefs.migration
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, wrapperFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()voidsetArgCsvPath(String argCsvPath) voidsetArgNewPath(String argNewPath) voidsetArgOldPath(String argOldPath) voidsetExtName(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, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Constructor Details
-
MigrateCsvConfigurationTask
public MigrateCsvConfigurationTask()
-
-
Method Details
-
execute
public void execute() throws org.apache.tools.ant.BuildException- Overrides:
executein classorg.apache.tools.ant.Task- Throws:
org.apache.tools.ant.BuildException
-
setArgOldPath
-
setArgCsvPath
-
setArgNewPath
-
setExtName
-