Package org.ini4j

Examples of org.ini4j.Ini.load()


                  f = new FileReader(RGSSProjectHelper.getGameIniFile(project));

                  // build game ini
                  Ini ini = new Ini();

                  ini.load();

                  Ini.Section section = ini.get("Game");

                  // add it
                  section.add("Title", ftf.getContentAsString());
View Full Code Here


       
   
        Ini ini = new Ini();
       
        StringReader input = new StringReader(configUnparsed);     
        ini.load(input);
       
    Set<String> sections = ini.keySet();
    for (String sectionName : sections) {
      StringBuilder strbuilder = new StringBuilder();
      Map<String, String> params = new HashMap<String, String>();     
View Full Code Here

   
    /*
     * Create collections to hold our settings, frameworks and webapps for later processing
     */
    Ini ini = new Ini();
    ini.load(new FileReader(configFile));
   
    /*
     * Get info about our webroot and sencha cmd paths
     */
    Ini.Section settingsSection = ini.get(Environment.SETTINGS);
View Full Code Here

    Environment e = this.env;
   
    File configFile = new File(configPath);
    if (!configFile.exists()) configFile.createNewFile();
    Ini ini = new Ini();
    ini.load(new FileReader(configFile));
   
    Ini.Section settingsSection = ini.get(Environment.SETTINGS);
    if (settingsSection == null) settingsSection = ini.add(Environment.SETTINGS);
    settingsSection.put(Environment.WEBROOT_PATH, e.getWebrootPath());
    settingsSection.put(Environment.SENCHA_CMD_PATH, e.getCmdPath());
View Full Code Here

     * Create collections to hold our settings, frameworks and webapps for later processing
     */
    Ini ini = new Ini();
    File appSettings = new File(fullPath + "/src/main/webapp/adaptrex/app.config");
    if (!appSettings.exists()) return null;
    ini.load(new FileReader(appSettings));
   
    /*
     * Get our app name
     */
    Ini.Section settingsSection = ini.get(SETTINGS);
View Full Code Here

      File adaptrexFolder = new File(webapp.getFullPath() + "/src/main/webapp/adaptrex");
      adaptrexFolder.mkdirs();
      configFile.createNewFile();
    }
    Ini ini = new Ini();
    ini.load(new FileReader(configFile));
   
    Ini.Section settingsSection = ini.get(SETTINGS);
    if (settingsSection == null) settingsSection = ini.add(SETTINGS);   
    settingsSection.put(NAME, webapp.getName());
    settingsSection.put(BASE_PACKAGE, webapp.getBasePackage());
View Full Code Here

      config.setEmptyOption(true);
      // This config setting makes sure we can handle pref lines with '\' in them.
      config.setEscape(false);
      Ini ini = new Ini();
      ini.setConfig(config);
      ini.load(new StringReader(Joiner.on("\n").join(filteredLines)));
      return ini;
    } catch (IOException e) {
      throw Throwables.propagate(e);
    }
  }
View Full Code Here

     * Create collections to hold our settings, frameworks and webapps for later processing
     */
    Ini ini = new Ini();
    File appSettings = new File(fullPath + "/src/main/webapp/adaptrex/app.config");
    if (!appSettings.exists()) return null;
    ini.load(new FileReader(appSettings));
   
    /*
     * Get our app name
     */
    Ini.Section settingsSection = ini.get(SETTINGS);
View Full Code Here

      File adaptrexFolder = new File(webapp.getFullPath() + "/src/main/webapp/adaptrex");
      adaptrexFolder.mkdirs();
      configFile.createNewFile();
    }
    Ini ini = new Ini();
    ini.load(new FileReader(configFile));
   
    Ini.Section settingsSection = ini.get(SETTINGS);
    if (settingsSection == null) settingsSection = ini.add(SETTINGS);   
    settingsSection.put(NAME, webapp.getName());
    settingsSection.put(BASE_PACKAGE, webapp.getBasePackage());
View Full Code Here

   
    if (cf == null)
      cf = ConfigurationFactory.newInstance();
   
    Ini ini = new Ini();
    ini.load(is);
   
    Configuration cfg = loadPipelineConfiguration(ini, context, cf);
    String pipeline_name = ini.get(SECT_GENERAL, OPT_PIPELINE_NAME);
    String module_url = ini.get(SECT_GENERAL, OPT_MODULE_NAME);
    String status_string = ini.get(SECT_GENERAL, OPT_STATUS);
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.