Package cfdict.config

Examples of cfdict.config.Config


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) {
View Full Code Here

TOP

Related Classes of cfdict.config.Config

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.