Examples of IniFile


Examples of convwatch.IniFile

            }
            else
            {
                sOfficePath += fs + "versionrc";
            }
            IniFile aIniFile = new IniFile(sOfficePath);
            if (aIniFile.is())
            {
                sBuildID = aIniFile.getValue("Version", "buildid");
            }
            else
            {
                GlobalLogWriter.get().println("Property Build, can't open file '" + sOfficePath + "', please check.");
            }
View Full Code Here

Examples of convwatch.IniFile

            }
            else
            {
                sOfficePath += fs + "bootstraprc";
            }
            IniFile aIniFile = new IniFile(sOfficePath);
            if (aIniFile.is())
            {
                sBuildID = aIniFile.getValue("Bootstrap", "buildid");
            }
            else
            {
                GlobalLogWriter.get().println("Property Build, can't open file '" + sOfficePath + "', please check.");
            }
View Full Code Here

Examples of convwatch.IniFile

            }
            else
            {
                sOfficePath += fs + "versionrc";
            }
            IniFile aIniFile = new IniFile(sOfficePath);
            if (aIniFile.is())
            {
                sBuildID = aIniFile.getValue("Version", "buildid");
            }
            else
            {
                GlobalLogWriter.get().println("Property Build, can't open file '" + sOfficePath + "', please check.");
            }
View Full Code Here

Examples of jConfigLib.files.IniFile

    for(String connectionFile : connectionFiles)
    {
      if(entries == null)
        entries = new ArrayList<ConnectionEntry>();
     
      IniFile file = new IniFile(connectionFile);
     
      HashMap<String, String> excludes = file.getSection("excludes");
      List<String> excludeList = null;
     
      if(excludes != null)
      {
        for(String exclude : excludes.values())
        {
          if(excludeList == null)
            excludeList = new ArrayList<String>();
         
          if(excludeList.contains(exclude) == false)
            excludeList.add(exclude);
        }
      }
     
      HashMap<String, String> connections = file.getSection("connections");
          Set<Entry<String, String> > connectionSet = connections.entrySet();
          Iterator<Map.Entry<String, String>> connectionIterator = connectionSet.iterator();
         
          while(connectionIterator.hasNext())
          {
            Map.Entry<String, String> sectionEntry = (Map.Entry<String, String>)connectionIterator.next();
              String source = (String)sectionEntry.getKey();
              String target = (String)sectionEntry.getValue();
             
              String srcValue = file.getValue("sources", source);
             
              if(srcValue == null)
                srcValue = source;
             
              List<String> targetList = ConfigHelper.getListFromLine(target);
             
              for(String t : targetList)
              {
                String targetValue = file.getValue("targets", t);
               
                if(targetValue == null)
                  targetValue = target;
               
                entries.add(new ConnectionEntry(srcValue, targetValue, excludeList));
View Full Code Here

Examples of jConfigLib.files.IniFile

   * Sets the new Connections from Connection File
   * @param file Connection File
   */
  public static void setConnections(String file)
  {   
    IniFile connectionFile = new IniFile(file);
   
    HashMap<String, String> newSources = connectionFile.getSection("sources");
    HashMap<String, String> newTargets = connectionFile.getSection("targets");
    HashMap<String, String> newConnections = connectionFile.getSection("connections");
    HashMap<String, String> newExcludes = connectionFile.getSection("excludes");
   
    HashMap<String, HashMap<String, String> > sections = mainConfig.getSections();
   
    if(newSources == null)
    {
View Full Code Here

Examples of net.sf.jpluck.plucker.IniFile

    }

    JXL jxl = new JXL();
    File file = new File(args[0]);
    System.out.println("Reading Plucker INI: " + file.getAbsolutePath());
    IniFile ini = new IniFile(file);
    Document[] documents = ini.getDocuments();
    for (int i = 0; i < documents.length; i++) {
      if (documents[i].getURL().startsWith("http://")) {
        // Only imports HTTP URLs for now
        Element site = jxl.createSiteElement();
        documents[i].toJXLFormat(site);
View Full Code Here

Examples of org.locationtech.geogig.storage.fs.INIFile

     */
    public IniRepositoryFilter(final String filterFile) throws FileNotFoundException {
        final File f = new File(filterFile);
        if (f.exists()) {
            try {
                final INIFile ini = new INIFile() {
                    @Override
                    public File iniFile() {
                        return f;
                    }
                };

                final Map<String, String> pairs = ini.getAll();

                Set<String> seen = new HashSet<String>();
                for (Entry<String, String> pair : pairs.entrySet()) {
                    String qualifiedName = pair.getKey();
                    String[] split = qualifiedName.split("\\.");
View Full Code Here

Examples of org.locationtech.geogig.storage.fs.INIFile

        File configFile = config();

        final SectionOptionPair pair = new SectionOptionPair(key);
        try {
            final INIFile ini = INIFile.forFile(configFile);
            Optional<String> val = ini.get(pair.section, pair.option);

            if (!val.isPresent())
                return Optional.absent();
            String value = val.get();
            if (Strings.isNullOrEmpty(value))
View Full Code Here

Examples of org.locationtech.geogig.storage.fs.INIFile

        final SectionOptionPair pair = new SectionOptionPair(key);

        File configFile = config();

        try {
            final INIFile ini = INIFile.forFile(configFile);
            ini.set(pair.section, pair.option, value);
        } catch (Exception e) {
            throw new RuntimeException("Config location invalid.");
        }
    }
View Full Code Here

Examples of railo.commons.io.ini.IniFile

  public static String call(PageContext pc , String fileName, String section, String key) throws PageException {
        try {
          Resource res = ResourceUtil.toResourceNotExisting(pc,fileName);
            if(!res.isFile()) return "";
             
          IniFile ini = new IniFile(res);
            String str=ini.getKeyValueEL(section, key);
            if(str==null) return "";
            return str;
        }
        catch (IOException e) {
            throw Caster.toPageException(e);
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.