/*
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Project/Maven2/JavaApp/src/main/java/${packagePath}/${mainClassName}.java to edit this template
|
*/
|
package com.megatim.generatetxt;
|
|
import com.megatim.generatetxt.generate.ParseData;
|
import java.io.File;
|
import com.megatim.generatetxt.pojo.FileToValidateDescription;
|
import java.util.HashSet;
|
|
/**
|
*
|
* @author ASUS
|
*/
|
public class App {
|
|
public static void main(String[] args) throws Exception {
|
File dataFile = new File("C:\\Users\\ASUS\\Documents\\minfopra\\E20.M102025.csv");
|
String validatorPath = "C:\\Users\\ASUS\\Downloads\\REF000027-20251112-171437\\validateurs\\000026\\FPR\\Fdx-ValidatorFPRE20-20251104-094833.xml";
|
String outputDir = "C:\\Users\\ASUS\\Documents\\ERROR";
|
FileToValidateDescription fileDesc = new FileToValidateDescription(dataFile, "\n", ";", "FPRE20", validatorPath, outputDir);
|
File file = new ParseData().validateCsvFile(fileDesc, true, new HashSet<>(), 2);
|
System.out.println("--------- file = " + file.getAbsolutePath());
|
}
|
}
|