void createProdReportFile() {
try {
prodFilePath = prodFilePath.toString();
File reportFile =new File(prodFilePath);
if(!reportFile.exists())
reportFile.createNewFile();
FileWriter fw = new FileWriter(reportFile);
PrintWriter out = new PrintWriter(fw);
out.println("Filter 1 report - Products");
out.println();
out.println("Date: "+DATEYMD);
out.println();
out.println("Number of Aggregated Products scraped----------------------------- "+num_Prod_TotalRecords);
out.println();
out.println("Number of records failed automated checking, possible vendor errors");
out.println();
out.println("- Products have no supplier----------------------------------------- " + num_Prod_NoSupp);
out.println("- Products have no image--------------------------------------------- "+ num_Image_Null);
out.println("- Products have no short production description----------------------- "+ num_Desc_Null);
out.println();
out.close();
fw.close();
} catch (IOException e) {
log.error("Failed at creating product report file.... ", e);
}
}
try {
prodFilePath = prodFilePath.toString();
File reportFile =new File(prodFilePath);
if(!reportFile.exists())
reportFile.createNewFile();
FileWriter fw = new FileWriter(reportFile);
PrintWriter out = new PrintWriter(fw);
out.println("Filter 1 report - Products");
out.println();
out.println("Date: "+DATEYMD);
out.println();
out.println("Number of Aggregated Products scraped----------------------------- "+num_Prod_TotalRecords);
out.println();
out.println("Number of records failed automated checking, possible vendor errors");
out.println();
out.println("- Products have no supplier----------------------------------------- " + num_Prod_NoSupp);
out.println("- Products have no image--------------------------------------------- "+ num_Image_Null);
out.println("- Products have no short production description----------------------- "+ num_Desc_Null);
out.println();
out.close();
fw.close();
} catch (IOException e) {
log.error("Failed at creating product report file.... ", e);
}
}