Package java.util

Examples of java.util.Properties.propertyNames()


            if (null != propertyPair.getValue()) {
                env.setProperty(propertyPair.getName(), propertyPair.getValue());
            }
        }
        if (LOG.isLoggable(Level.FINE)) {
            Enumeration props = env.propertyNames();
            while (props.hasMoreElements()) {
                String name = (String)props.nextElement();
                String value = env.getProperty(name);
                LOG.log(Level.FINE, "Context property: " + name + " | " + value);
            }
View Full Code Here


      throw new ServletException(msg, e);
    } finally {
      IOUtils.closeQuietly(stream);
    }

    for (Enumeration e = temp.propertyNames(); e.hasMoreElements();) {
      String key = (String) e.nextElement();
      resources.add(directory + '/' + locale + '/' + key, temp.getProperty(key));
      if (LOG.isDebugEnabled()) {
        LOG.debug(directory + '/' + locale + '/' + key + "=" + temp.getProperty(key));
      }
View Full Code Here

    if (only) {
        Properties p = System.getProperties();
        protocol = p.getProperty(ij.PROTOCOL_PROPERTY);

          String prefix = CONNECTION_PROPERTY + ".";
        for (Enumeration e = p.propertyNames(); e.hasMoreElements(); )
        {
          String key = (String)e.nextElement();
          if (key.startsWith(prefix)) {
            String name = key.substring(prefix.length());
            installConnection(name.toUpperCase(java.util.Locale.ENGLISH),
View Full Code Here

    p.load(iStr);

    // Now, trim off any excess whitespace, if any, and then
    // add the properties from file to the received Properties
    // set.
    for (java.util.Enumeration propKeys = p.propertyNames();
      propKeys.hasMoreElements();) {
    // get the value, trim off the whitespace, then store it
    // in the received properties object.
      String tmpKey = (String)propKeys.nextElement();
      String tmpValue = p.getProperty(tmpKey);
View Full Code Here

                }


                namedProtocols = new Hashtable();
                String prefix = PROTOCOL_PROPERTY + ".";
                for (Enumeration e = p.propertyNames(); e.hasMoreElements(); )
                {
                        String key = (String)e.nextElement();
                        if (key.startsWith(prefix)) {
                                String name = key.substring(prefix.length());
                                installProtocol(name.toUpperCase(Locale.ENGLISH), p.getProperty(key));
View Full Code Here

        }
      });
    }
   
    // Set the system properties from the desired set.
    for (Enumeration e = set.propertyNames(); e.hasMoreElements();) {
      String key = (String) e.nextElement();
      BaseTestCase.setSystemProperty(key, set.getProperty(key));
    }
   
    // Check indicator for no security manager
View Full Code Here

        if ( isSed != null )
        {
            Properties sedp = new Properties();

            sedp.load(isSed);
            for (Enumeration e = sedp.propertyNames(); e.hasMoreElements(); )
            {
                String key = (String)e.nextElement();
                if (key.equals("substitute"))
                {
                    String value = sedp.getProperty(key);
View Full Code Here

        else
        {
            // merge any special properties from testSpecialProps
            if ( !srvProps.isEmpty() )
            {
                for (Enumeration e = srvProps.propertyNames(); e.hasMoreElements();)
                {
                    String key = (String)e.nextElement();
                    String value = srvProps.getProperty(key);
                    if (key.equals("derby.debug.true")) // Add to existing prop
                    {
View Full Code Here

        Xpp3Dom properties = createElement(testSuite, "properties");
       
        Properties systemProperties = System.getProperties();

        if (systemProperties != null) {
            Enumeration propertyKeys = systemProperties.propertyNames();

            while (propertyKeys.hasMoreElements()) {
                String key = (String) propertyKeys.nextElement();

                String value = systemProperties.getProperty(key);
View Full Code Here

      }
        }
    } else if (args[i].startsWith("-p")) {
        config.put("port",args[++i]);
    } else if (args[i].startsWith("-S")) {
        Enumeration enumer = config.propertyNames();
        while(enumer.hasMoreElements()) {
      String key = (String) enumer.nextElement();
      config.put(key,
        Format.subst(config, config.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.