Package org.locationtech.geogig.storage.fs

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


        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

        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

TOP

Related Classes of org.locationtech.geogig.storage.fs.INIFile

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.