Package fr.eolya.utils

Examples of fr.eolya.utils.XMLConfig.loadFile()


      File configFile =new File(propFileName);
      if (!configFile.exists()) {
        System.out.println("Error configuration file not found [" + propFileName + "]");
        System.exit(-1);
      }
      config.loadFile(propFileName);
    }
    catch(IOException e) {
      System.out.println("Error while reading properties file");
      e.printStackTrace();
      System.exit(-1);     
View Full Code Here


    File xmlConfigFile = new File(xmlConfigPath);
    XMLConfig xmlConfig = null;
    if (xmlConfigFile!=null && xmlConfigFile.exists()) {
      xmlConfig = new XMLConfig();
      try {
        xmlConfig.loadFile(xmlConfigPath);
      } catch (IOException e) {
        e.printStackTrace();
        return null;
      }
      return xmlConfig;
View Full Code Here

            File configFile =new File(propFileName);
            if (!configFile.exists()) {
                System.out.println("Error configuration file not found [" + propFileName + "]");
                System.exit(-1);
            }
            config.loadFile(propFileName);
        }
        catch(IOException e) {
            System.out.println("Error while reading properties file");
            e.printStackTrace();
            System.exit(-1);     
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.