public class CFDICTSqlCreator {
public static void main(String[] args) {
try {
Config config = new Config("config/config.properties");
System.out.println("[MODE " + config.getMode() + "]");
Download dl = new Download(config);
dl.process();
Decompress dp = new Decompress(config);
dp.process();
Parser p = new Parser(config);
Generator g;
if (config.getMode().equals("INSERT"))
g = new InsertGenerator(config, p.process());
else
g = new UpdateGenerator(config, p.process());
g.process();
System.out.println("Debut de la mise a jour du fichier de configuration");
// set the timestamp for next time update process
config.setTimestamp();
// set the mode to update
config.setModeUpdate();
// save the modification
config.updateConfigFile();
System.out.println("Fin de la mise a jour du fichier de configuration");
System.out.println("Execution terminee, vous pouvez fermer cette fenetre.");
} catch (FileNotFoundException ex) {