Package java.util

Examples of java.util.Properties.list()


                   "</plugin>\n";
      PluginConfig config = factory.readObject(xml);
      Properties prop = config.getPluginInfo().getParameters();
      String txt = prop.getProperty("qosTest", null);
      if (txt == null) {
         prop.list(System.err);
         assertTrue("the qosTest is null when it should not", false);
      }
      MsgQosSaxFactory msgFactory = new MsgQosSaxFactory(this.glob);
      return msgFactory.readObject(txt);
   }
View Full Code Here


        Category cat = getCategory(category);
        Properties props = new Properties();
        if ( cat != null ) {           
            props = (Properties)cat.getProperties().clone();
            println("+-+ " + cat.getCategoryName());
            if ( debug) props.list(System.err);
            println("+-+ " + cat.getCategoryName());
        }
        if ( baseConfigName != null && includeParent ) {      
            Configuration cfg = ConfigurationManager.getConfiguration(baseConfigName);
            Properties parentProps = cfg.getProperties(category);
View Full Code Here

        }
        if ( baseConfigName != null && includeParent ) {      
            Configuration cfg = ConfigurationManager.getConfiguration(baseConfigName);
            Properties parentProps = cfg.getProperties(category);
            println("!!!!!");
            if ( debug ) parentProps.list(System.err);
            println("!!!!!");
            Enumeration num = parentProps.keys();
            while ( num.hasMoreElements() ) {
                String name = (String)num.nextElement();
                println("lookin for " + name);
View Full Code Here

    sysinfo.append("\n");
    // add property information
    Properties p = getPropertyValues();
    ByteArrayOutputStream bos = new ByteArrayOutputStream();
    PrintStream ps =  new PrintStream(bos);
    p.list(ps);
    sysinfo.append(bos.toString());
    return sysinfo.toString();
  }

  /**
 
View Full Code Here

    sysinfo.append("\n");
    // add property information
    Properties p = getPropertyValues();
    ByteArrayOutputStream bos = new ByteArrayOutputStream();
    PrintStream ps =  new PrintStream(bos);
    p.list(ps);
    sysinfo.append(bos.toString());
    return sysinfo.toString();
  }

  /**
 
View Full Code Here

        Properties expectedFilteredResult = PropertyUtils.loadPropertyFile( new File( getBasedir()
            + "/src/test/units-files/MSHARED-81", "expected-filtered.properties" ), null );

        System.out.println( "Expected:\n" );
        expectedFilteredResult.list( System.out );
        System.out.println( "\n\n\nGot:\n" );
        filteredResult.list( System.out );

        assertEquals( expectedFilteredResult, filteredResult );
View Full Code Here

  private void writeResult(double result, String file)
      throws FileNotFoundException {
    Properties timeProp = new Properties();
    timeProp.setProperty("YVALUE", ""+result);
    PrintStream os = new PrintStream(new File(reportDir, file));
    timeProp.list(os);
    os.close();
  }

  private long usedMemory() {
    return runtime.totalMemory() - runtime.freeMemory();
View Full Code Here

public class TestProperties {
 
  public static void main(String[] args) {
    Properties sp = System.getProperties();
    Properties myTable = new Properties(sp);
    myTable.list(System.out);
   
  }
}
View Full Code Here

   
    FileInputStream fis = new FileInputStream(projectFile);
    Properties projectProperties = new Properties();
    projectProperties.load(fis);
    fis.close();
    projectProperties.list(System.out);
   
  }
}
View Full Code Here

    // Subfolder resource mut be in classpath
    Properties projectProperties = new Properties();
    InputStream is  = this.getClass().getResourceAsStream("/project.properties");
    projectProperties.load(is);
    is.close();
    projectProperties.list(System.out);
   
  }
}
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.