Package org.moxie.maxml

Examples of org.moxie.maxml.MaxmlMap.keySet()


      Map<String, String> properties = new HashMap<String, String>();
      properties.put(Key.groupId.name(), project.groupId);
      properties.put(Key.artifactId.name(), project.artifactId);
      properties.put(Key.version.name(), project.version);
      properties.put(Key.apply.name(), StringUtils.flattenStrings(apply, ", "));
      for (String key : map.keySet()) {
        Object o = map.get(key);
        if (o instanceof String) {
          String value = resolveProperties(o.toString(), properties);
          map.put(key, value);
        }
View Full Code Here


      File gitAliases = new File(root, "git.moxie");
      if (gitAliases.exists()) {
        try {
          MaxmlMap map = Maxml.parse(gitAliases);
          // look for protocol alias matches
          for (String alias : map.keySet()) {
            // ensure alias is legal
            if ("ftp".equals(alias)
                || "http".equals(alias)
                || "https".equals(alias)
                || "git".equals(alias)
View Full Code Here

    revisionPurgeAfterDays = Math.min(Toolkit.MAX_PURGE_AFTER_DAYS,
        Math.max(0, map.getInt(Key.revisionPurgeAfterDays.name(), revisionPurgeAfterDays)));

    if (map.containsKey(Key.properties.name())) {
      MaxmlMap props = map.getMap(Key.properties.name());
      for (String key : props.keySet()) {
        pom.setProperty(key, props.getString(key, null));
      }
    }

    List<String> managedDependencies = readStrings(map, Key.dependencyManagement, new ArrayList<String>());
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.