Package org.jetbrains.osgi.jps.util

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

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

public class OrderedPropertiesTest {
  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

Copyright © 2018 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