/** * Returns the platform path for the given repository one. * @param repoPath the repository path * @return the platform path */ public static String getPlatformPath(String repoPath) { String[] elems = Text.explode(repoPath, '/', true); for (int i=0; i<elems.length; i++) { if (elems[i].length() > 0) { elems[i] = getPlatformName(elems[i]); } } return Text.implode(elems, "/"); }
String[] p = Text.explode(aggName, '/'); for (int i=0; i<p.length-1; i++) { parent = parent.getOrAddChild(PlatformNameFormat.getPlatformName(p[i]));