Examples of stringPropertyNames()


Examples of java.util.Properties.stringPropertyNames()

                    Properties props = new Properties();
                    props.load(is);
                    is.close();

                    // Parse the properties
                    Set<String> keys = props.stringPropertyNames();
                    Iterator<String> iter = keys.iterator();
                    while (iter.hasNext()) {
                        String key = iter.next();
                        processMimeType(key, props.getProperty(key));
                    }
View Full Code Here

Examples of java.util.Properties.stringPropertyNames()

            }
          }
        }
        argMap.put(arg, argValues.toArray(new String[argValues.size()]));
      }
      for (String key : mainProps.stringPropertyNames()) {
        String[] argNamePair = key.split("\\|");
        String shortArg = '-' + argNamePair[0].trim();
        String longArg = argNamePair.length < 2 ? null : "--" + argNamePair[1].trim();
        if(!argMap.containsKey(shortArg) && (longArg == null || !argMap.containsKey(longArg))) {
          argMap.put(longArg, new String[] { mainProps.getProperty(key) } );
View Full Code Here

Examples of java.util.Properties.stringPropertyNames()

  public Map<String, String> getAmbariProperties() {
   
    Properties properties = readConfigFile();
    Map<String, String> ambariPropertiesMap = new HashMap<String, String>();
   
    for(String key : properties.stringPropertyNames()) {
      ambariPropertiesMap.put(key, properties.getProperty(key));
    }
    return ambariPropertiesMap;
  }
View Full Code Here

Examples of java.util.Properties.stringPropertyNames()

         File interceptorPropertyFile = new File(interceptorPropertyFileName);
         if (interceptorPropertyFile.exists())
         {
            Properties properties = new Properties();
            properties.load(new FileInputStream(interceptorPropertyFile));
            for (String propName : properties.stringPropertyNames())
            {
               outProperties.put(propName, properties.get(propName));
            }
         }
         else
View Full Code Here

Examples of java.util.Properties.stringPropertyNames()

        AS_ROOT_LOGGER.serverStarting(prettyVersion);
        if (CONFIG_LOGGER.isDebugEnabled()) {
            final Properties properties = System.getProperties();
            final StringBuilder b = new StringBuilder(8192);
            b.append("Configured system properties:");
            for (String property : new TreeSet<String>(properties.stringPropertyNames())) {
                b.append("\n\t").append(property).append(" = ").append(properties.getProperty(property, "<undefined>"));
            }
            CONFIG_LOGGER.debug(b);
            CONFIG_LOGGER.debugf("VM Arguments: %s", getVMArguments());
            if (CONFIG_LOGGER.isTraceEnabled()) {
View Full Code Here

Examples of java.util.Properties.stringPropertyNames()

        final String mavenClasspath = calcWikiFormatClasspath();
        setSystemProperty("maven.classpath", mavenClasspath);

        // If a System property already exists, it has priority;
        // That way we can override with a -D on the command line
        for(String key : projectProperties.stringPropertyNames()) {
            final String value = this.session.getSystemProperties()
                .getProperty(key, projectProperties.getProperty(key));
            setSystemProperty(key, value);
        }
        setSystemProperty("artifact", this.project.getArtifactId());
View Full Code Here

Examples of java.util.Properties.stringPropertyNames()

    transferSetting( Environment.USER, configurationValues, connectionSettings );
    transferSetting( Environment.PASS, configurationValues, connectionSettings );
    transferSetting( Environment.ISOLATION, configurationValues, connectionSettings );
    Properties passThroughSettings = ConnectionProviderInitiator.getConnectionProperties( configurationValues );
    if ( passThroughSettings != null ) {
      for ( String setting : passThroughSettings.stringPropertyNames() ) {
        transferSetting( Environment.CONNECTION_PREFIX + '.' + setting, configurationValues, connectionSettings );
      }
    }
    connectionSettings.setProperty( Environment.AUTOCOMMIT, "false" );
View Full Code Here

Examples of java.util.Properties.stringPropertyNames()

            File file = new File(frameworkProperties);
            try {
                FileInputStream input = new FileInputStream(file);
                Properties props = new Properties();
                props.load(input);
                for (String key : props.stringPropertyNames()) {
                    frameworkConfiguration.put(key, props.getProperty(key));
                }
            } catch (IOException ex) {
                throw new ConfigurationException("Cannot read: " + file.getAbsolutePath());
            }
View Full Code Here

Examples of java.util.Properties.stringPropertyNames()

    }

    private Map<String, Object> findMemberAttributes(MemberAttributeConfig attributeConfig) {
        Map<String, Object> attributes = new HashMap<String, Object>(attributeConfig.getAttributes());
        Properties properties = System.getProperties();
        for (String key : properties.stringPropertyNames()) {
            if (key.startsWith("hazelcast.member.attribute.")) {
                String shortKey = key.substring("hazelcast.member.attribute.".length());
                String value = properties.getProperty(key);
                attributes.put(shortKey, value);
            }
View Full Code Here

Examples of java.util.Properties.stringPropertyNames()

        AS_ROOT_LOGGER.serverStarting(Version.AS_VERSION, Version.AS_RELEASE_CODENAME);
        if (CONFIG_LOGGER.isDebugEnabled()) {
            final Properties properties = System.getProperties();
            final StringBuilder b = new StringBuilder(8192);
            b.append("Configured system properties:");
            for (String property : new TreeSet<String>(properties.stringPropertyNames())) {
                b.append("\n\t").append(property).append(" = ").append(properties.getProperty(property, "<undefined>"));
            }
            CONFIG_LOGGER.debug(b);
            CONFIG_LOGGER.debugf("VM Arguments: %s", getVMArguments());
            if (CONFIG_LOGGER.isTraceEnabled()) {
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.