New category map: corrections
This commit is contained in:
@@ -14,6 +14,7 @@ import org.apache.log4j.Layout;
|
|||||||
import org.apache.log4j.Level;
|
import org.apache.log4j.Level;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.log4j.Logger;
|
||||||
import org.apache.log4j.PatternLayout;
|
import org.apache.log4j.PatternLayout;
|
||||||
|
import org.apache.log4j.RollingFileAppender;
|
||||||
|
|
||||||
import com.univocity.parsers.csv.CsvParser;
|
import com.univocity.parsers.csv.CsvParser;
|
||||||
import com.univocity.parsers.csv.CsvParserSettings;
|
import com.univocity.parsers.csv.CsvParserSettings;
|
||||||
@@ -28,7 +29,7 @@ import com.univocity.parsers.csv.CsvWriterSettings;
|
|||||||
public class ToolboxImportFileGenerator {
|
public class ToolboxImportFileGenerator {
|
||||||
private static Logger log = Logger.getLogger(ToolboxImportFileGenerator.class);
|
private static Logger log = Logger.getLogger(ToolboxImportFileGenerator.class);
|
||||||
|
|
||||||
private static String toolboxExportFilePath = "C:\\Temp\\Migration CS - SQL Server\\auszug.csv";
|
private static String toolboxExportFilePath = "C:\\Temp\\Migration CS - SQL Server\\export-2017-08-15.csv";
|
||||||
private static String importFilePath = "C:\\Temp\\Migration CS - SQL Server\\importFile.csv";
|
private static String importFilePath = "C:\\Temp\\Migration CS - SQL Server\\importFile.csv";
|
||||||
|
|
||||||
private static final Map<String, String> brandMap;
|
private static final Map<String, String> brandMap;
|
||||||
@@ -581,7 +582,7 @@ public class ToolboxImportFileGenerator {
|
|||||||
|
|
||||||
|
|
||||||
categoryMap = new HashMap<String, String>();
|
categoryMap = new HashMap<String, String>();
|
||||||
categoryMap.put("Bag Tags : Bag Requirements", "Seed Company Materials : Seed Bag Guidelines");
|
categoryMap.put("Bag Tags : Bag Reguirements", "Seed Company Materials : Seed Bag Guidelines");
|
||||||
categoryMap.put("Bag Tags : Bag Stencil", "Seed Company Materials : Seed Bag Stencil ");
|
categoryMap.put("Bag Tags : Bag Stencil", "Seed Company Materials : Seed Bag Stencil ");
|
||||||
categoryMap.put("Bag Tags : Bag Tag", "Seed Company Materials : Seed Bag Tag ");
|
categoryMap.put("Bag Tags : Bag Tag", "Seed Company Materials : Seed Bag Tag ");
|
||||||
categoryMap.put("Bag Tags : Bag Tag Guidelines", "Seed Company Materials : Seed Bag Guidelines");
|
categoryMap.put("Bag Tags : Bag Tag Guidelines", "Seed Company Materials : Seed Bag Guidelines");
|
||||||
@@ -596,7 +597,7 @@ public class ToolboxImportFileGenerator {
|
|||||||
categoryMap.put("Field Signs : Bag Tag", "Seed Company Materials : Seed Bag Tag");
|
categoryMap.put("Field Signs : Bag Tag", "Seed Company Materials : Seed Bag Tag");
|
||||||
categoryMap.put("Field Signs : Decal", "Field Day \\/ Tradeshow \\/ Event Materials : Decal");
|
categoryMap.put("Field Signs : Decal", "Field Day \\/ Tradeshow \\/ Event Materials : Decal");
|
||||||
categoryMap.put("Field Signs : Field Marker", "Field Day \\/ Tradeshow \\/ Event Materials : Field Marker Flag");
|
categoryMap.put("Field Signs : Field Marker", "Field Day \\/ Tradeshow \\/ Event Materials : Field Marker Flag");
|
||||||
categoryMap.put("Field Signs : Plot Sign", "Field Day \\/ Tradeshow \\/ Event Materials : Plot");
|
categoryMap.put("Field Signs : Plot sign", "Field Day \\/ Tradeshow \\/ Event Materials : Plot");
|
||||||
categoryMap.put("Field Signs : Storyboard", "Field Day \\/ Tradeshow \\/ Event Materials : Storyboard");
|
categoryMap.put("Field Signs : Storyboard", "Field Day \\/ Tradeshow \\/ Event Materials : Storyboard");
|
||||||
categoryMap.put("Literature : Application Card", "Sales Literature \\/ Collateral : Application Card");
|
categoryMap.put("Literature : Application Card", "Sales Literature \\/ Collateral : Application Card");
|
||||||
categoryMap.put("Literature : Brochure", "Sales Literature \\/ Collateral : Brochure");
|
categoryMap.put("Literature : Brochure", "Sales Literature \\/ Collateral : Brochure");
|
||||||
@@ -1210,7 +1211,7 @@ public class ToolboxImportFileGenerator {
|
|||||||
try {
|
try {
|
||||||
Layout layout = new PatternLayout("%p %m%n"); // "%d{ISO8601} - %p %m%n"
|
Layout layout = new PatternLayout("%p %m%n"); // "%d{ISO8601} - %p %m%n"
|
||||||
BasicConfigurator.configure(new ConsoleAppender(layout));
|
BasicConfigurator.configure(new ConsoleAppender(layout));
|
||||||
// BasicConfigurator.configure(new RollingFileAppender(layout, "ToolboxImportFileGenerator.log", true));
|
BasicConfigurator.configure(new RollingFileAppender(layout, "C:\\Temp\\Migration CS - SQL Server\\importFile.log", false));
|
||||||
log.setLevel(Level.INFO);
|
log.setLevel(Level.INFO);
|
||||||
|
|
||||||
new ToolboxImportFileGenerator();
|
new ToolboxImportFileGenerator();
|
||||||
|
|||||||
Reference in New Issue
Block a user