@Test public void patternToSubtree() { assertSubtree("*", ""); assertSubtree("junit", "junit"); assertSubtree("org.mygroup", "org/mygroup"); assertSubtree("org.mygroup*", "org"); assertSubtree("org.mygroup.*", "org/mygroup"); assertSubtree("*:myartifact:1.2.3", ""); assertSubtree("org.mygroup:prefix*:1.2.3", "org/mygroup"); assertSubtree("org.mygroup:my.artifact:1.2.3", "org/mygroup/my.artifact/1.2.3"); assertSubtree("org.mygroup:my.artifact*:1.2.3", "org/mygroup"); }
static Path patternToSubtree(GavPattern gavPattern, String version) { return patternToSubtree(EMPTY_PATH, new String[] { gavPattern.groupIdPattern.getSource(), gavPattern.artifactIdPattern.getSource(), version }, 0); }
GavSetWalker { static Path patternToSubtree(GavPattern gavPattern, String version) { return patternToSubtree(EMPTY_PATH, new String[] { gavPattern.groupIdPattern.getSource(), gavPattern.artifactIdPattern.getSource(), version }, 0); } }
GavSetWalker { static Path patternToSubtree(GavPattern gavPattern, String version) { return patternToSubtree(EMPTY_PATH, new String[] { gavPattern.groupIdPattern.getSource(), gavPattern.artifactIdPattern.getSource(), version }, 0); } GavSetWalker(Path localMavenRepoRoot, GavSet gavSet, String version); }
GavSetWalker { static Path patternToSubtree(GavPattern gavPattern, String version) { return patternToSubtree(EMPTY_PATH, new String[] { gavPattern.groupIdPattern.getSource(), gavPattern.artifactIdPattern.getSource(), version }, 0); } GavSetWalker(Path localMavenRepoRoot, GavSet gavSet, String version); void walk(Consumer<GavtcPath> callback); }
GavSetWalker { static Path patternToSubtree(GavPattern gavPattern, String version) { return patternToSubtree(EMPTY_PATH, new String[] { gavPattern.groupIdPattern.getSource(), gavPattern.artifactIdPattern.getSource(), version }, 0); } GavSetWalker(Path localMavenRepoRoot, GavSet gavSet, String version); void walk(Consumer<GavtcPath> callback);  }