Package org.jetbrains.osgi.jps.util

Examples of org.jetbrains.osgi.jps.util.OrderedProperties.load()


   */
  @NotNull
  public Map<String, String> getAdditionalPropertiesAsMap() {
    try {
      OrderedProperties p = new OrderedProperties();
      p.load(new StringReader(getAdditionalProperties()));
      return p.toMap();
    }
    catch (IOException e) {
      LOG.warn(e);
      return Collections.emptyMap();
View Full Code Here


*/
public class OrderedPropertiesTest {
  @Test
  public void testRead() throws IOException {
    OrderedProperties props = new OrderedProperties();
    props.load(new StringReader("Foo: Bar,\\\nnaf\nBar: naf\nBaz=naf\n"));

    Enumeration<Object> keys = props.keys();
    assertThat((String)keys.nextElement(), equalTo("Foo"));
    assertThat((String)keys.nextElement(), equalTo("Bar"));
    assertThat((String)keys.nextElement(), equalTo("Baz"));
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.