Examples of ConfigurationLocation


Examples of org.infernus.idea.checkstyle.model.ConfigurationLocation

            if (!storage.containsKey(ACTIVE_CONFIG)) {
                return null;
            }

            ConfigurationLocation activeLocation = null;
            try {
                activeLocation = configurationLocationFactory().create(project, storage.get(ACTIVE_CONFIG));
            } catch (IllegalArgumentException e) {
                LOG.warn("Could not load active configuration", e);
            }
View Full Code Here

Examples of org.infernus.idea.checkstyle.model.ConfigurationLocation

                    continue;
                }

                final String value = entry.getValue();
                try {
                    final ConfigurationLocation location = configurationLocationFactory().create(
                            project, value);

                    final Map<String, String> properties = new HashMap<String, String>();

                    final int index = Integer.parseInt(entry.getKey().substring(LOCATION_PREFIX.length()));
                    final String propertyPrefix = PROPERTIES_PREFIX + index + ".";

                    // loop again over all settings to find the properties belonging to this configuration
                    // not the best solution, but since there are only few items it doesn't hurt too much...
                    for (Map.Entry<String, String> innerEntry : storage.entrySet()) {
                        if (innerEntry.getKey().startsWith(propertyPrefix)) {
                            final String propertyName = innerEntry.getKey().substring(propertyPrefix.length());
                            properties.put(propertyName, innerEntry.getValue());
                        }
                    }

                    location.setProperties(properties);
                    locations.add(location);

                } catch (IllegalArgumentException e) {
                    LOG.error("Could not parse location: " + value, 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.