diff --git a/Toolbox Migration/src/com/bayer/edam/excelimport/ToolboxImportFileGenerator.java b/Toolbox Migration/src/com/bayer/edam/excelimport/ToolboxImportFileGenerator.java index bd3791e..325abbe 100644 --- a/Toolbox Migration/src/com/bayer/edam/excelimport/ToolboxImportFileGenerator.java +++ b/Toolbox Migration/src/com/bayer/edam/excelimport/ToolboxImportFileGenerator.java @@ -14,6 +14,7 @@ import org.apache.log4j.Layout; import org.apache.log4j.Level; import org.apache.log4j.Logger; import org.apache.log4j.PatternLayout; +import org.apache.log4j.RollingFileAppender; import com.univocity.parsers.csv.CsvParser; import com.univocity.parsers.csv.CsvParserSettings; @@ -28,7 +29,7 @@ import com.univocity.parsers.csv.CsvWriterSettings; public class ToolboxImportFileGenerator { 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 final Map brandMap; @@ -581,7 +582,7 @@ public class ToolboxImportFileGenerator { categoryMap = new HashMap(); - 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 Tag", "Seed Company Materials : Seed Bag Tag "); 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 : 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 : 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("Literature : Application Card", "Sales Literature \\/ Collateral : Application Card"); categoryMap.put("Literature : Brochure", "Sales Literature \\/ Collateral : Brochure"); @@ -616,7 +617,7 @@ public class ToolboxImportFileGenerator { categoryMap.put("LocalCampaignTools : Local Print Ad", "Advertising - Print : Print ad - local rep use"); categoryMap.put("LocalTradeshowsEventTools : Agenda template", "Field Day \\/ Tradeshow \\/ Event Materials : Agenda"); categoryMap.put("LocalTradeshowsEventTools : Banner - 3'X4'", "Field Day \\/ Tradeshow \\/ Event Materials : Banner"); - categoryMap.put("LocalTradeshowsEventTools : Banner - 3'X8'", "Field Day \\/ Tradeshow \\/ Event Materials : Banner"); + categoryMap.put("LocalTradeshowsEventTools : Banner - 3'X8' ", "Field Day \\/ Tradeshow \\/ Event Materials : Banner"); categoryMap.put("LocalTradeshowsEventTools : Bannerup", "Field Day \\/ Tradeshow \\/ Event Materials : Banner Up"); categoryMap.put("LocalTradeshowsEventTools : BannerUp Base (for dual-sided graphics)", "Field Day \\/ Tradeshow \\/ Event Materials : Banner Up"); categoryMap.put("LocalTradeshowsEventTools : BannerUp Base (for single-sided graphics)", "Field Day \\/ Tradeshow \\/ Event Materials : Banner Up"); @@ -673,9 +674,9 @@ public class ToolboxImportFileGenerator { categoryMap.put("SalesTools : Presentation template", "Custom Templates : Presentation Template"); categoryMap.put("SalesTools : Talking Points", "Advertising - PR, Product Publicity : Talking Points"); categoryMap.put("SalesTools : Training Module", "Advertising - Digital : Web Content - Tool-Training Module"); - categoryMap.put("AgIssues Forum : NTS - Booth Graphics", "Field Day \\/ Tradeshow \\/ Event Materials : Popup Graphic"); - categoryMap.put("AgIssues Forum : NTS - Summary/Review", "Advertising - PR, Product Publicity : Presentation"); - categoryMap.put("AgIssues Forum : NTS - Talking Points", "Advertising - PR, Product Publicity : Talking Points"); + categoryMap.put("AgIssuesForum : NTS - Booth Graphics", "Field Day \\/ Tradeshow \\/ Event Materials : Popup Graphic"); + categoryMap.put("AgIssuesForum : NTS - Summary/Review", "Advertising - PR, Product Publicity : Presentation"); + categoryMap.put("AgIssuesForum : NTS - Talking Points", "Advertising - PR, Product Publicity : Talking Points"); categoryMap.put("AgRetailersAssociation : NTS - Talking Points", "Advertising - PR, Product Publicity : Talking Points"); categoryMap.put("ASFMRA : NTS - Talking Points", "Advertising - PR, Product Publicity : Talking Points"); categoryMap.put("ASTA : NTS - Booth Graphics", "Field Day \\/ Tradeshow \\/ Event Materials : Popup Graphic"); @@ -1210,7 +1211,7 @@ public class ToolboxImportFileGenerator { try { Layout layout = new PatternLayout("%p %m%n"); // "%d{ISO8601} - %p %m%n" 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); new ToolboxImportFileGenerator();