Examples of stringPropertyNames()


Examples of java.util.Properties.stringPropertyNames()

            + entry.getKey(), entry.getValue().toString());
      }

      Properties extraProperties = getExtraProperties(options);
      if (extraProperties != null) {
        for (String key : extraProperties.stringPropertyNames()) {
          appProperties.setProperty("spring.yarn.internal.ContainerClusterApplication.extraProperties."
              + key, extraProperties.getProperty(key));
        }
      }
View Full Code Here

Examples of java.util.Properties.stringPropertyNames()

            } else {
              LOGGER.debug("Unable to load a mapping file: {} not found", path);
            }
          }
         
          for (String key : props.stringPropertyNames()) {
            mapping.put(props.getProperty(key), key);
          }
        }
      }
     
View Full Code Here

Examples of java.util.Properties.stringPropertyNames()

          inputStream = new FileInputStream(file);
          properties.load(inputStream);

          // Parse file contents
          // Format is [SqlResource,*].[requestType,*]=[*,role]
          for (final String name : properties.stringPropertyNames()) {
            // Parse name/value pair contents
            final String definition = name + "=" + properties.getProperty(name);
            final StringTokenizer nameTokenizer = new StringTokenizer(name, ".");
            if (nameTokenizer.hasMoreTokens()) {
              final String sqlResource = nameTokenizer.nextToken();
View Full Code Here

Examples of java.util.Properties.stringPropertyNames()

    String taskName = GUIDGenerator.nextGUID();
    builder.append(taskName);
    builder.append(TASK_NAME_DELIMITTER);
    Properties taskProps = task.toProperties();
    if (!taskProps.isEmpty()) {
      for (String propName : taskProps.stringPropertyNames()) {
        String value = taskProps.getProperty(propName);
        builder.append(propName).append(KEY_VALUE_SEPERATOR).append(value);
        builder.append(PROPERTY_SEPERATOR);
      }
      builder.setLength(builder.length() - PROPERTY_SEPERATOR.length());
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()

            productInfo.setSupportedAgentBuilds(props.getProperty("supportedAgentBuilds"));
            productInfo.setVersionUpdate("");

            HashMap<String, String> helpViewContent = new HashMap<String, String>();

            for (String propertyName : props.stringPropertyNames()) {
                if (propertyName.startsWith("view_help_section")) {
                    helpViewContent.put(propertyName, props.getProperty(propertyName));
                }
            }
View Full Code Here

Examples of java.util.Properties.stringPropertyNames()

    public Properties getPropertiesStartWith(final Locale locale,
            final String charSequence) {
        final Properties result = new Properties();
        final Properties properties = this.getPropertiesFromCache(locale);
        if (null != properties && properties.size() > 0) {
            final Set<String> names = properties.stringPropertyNames();
            for (final String name : names) {
                if (StringUtils.startsWithIgnoreCase(name, charSequence)) {
                    result.setProperty(name, properties.getProperty(name));
                }
            }
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()

                                    try {
                                        while ((line = reader.readLine()) != null) {
                                            oldText.append(line).append("\n");
                                        }
                                        String newText = oldText.toString();
                                        for (String key : properties.stringPropertyNames()) {
                                            String value = properties.getProperty(key)
                                                    .replace(TENANT_ID_KEY,
                                                            Integer.toString(tenantId))
                                                    .replace(TENANT_DOMAIN_KEY, tenantDomain)
                                                    .replace(USER_NAME, username);
View Full Code Here

Examples of java.util.Properties.stringPropertyNames()

      }
      argMap.put(arg, argValues.toArray(new String[argValues.size()]));
    }

    // Add properties from the .props file that are not overridden on the command line
    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
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.