@Test public void getTarget() throws IOException{ Path modules = Paths.get("/location/modules/mymodule"); Path dir = PathUtils.get(modules, "@manydirs@/test@end@"); PathHelper vpu = new PathHelper(conf, modules); Path result = vpu.getTarget(dir); assertThat(result, is(PathUtils.get("/a/b/c/testVAL_end"))); }
public final Path getTarget(final Path path) { final Path relativized = this.module.relativize(path); final Path resolved = Paths.get("/").resolve(relativized); return replaceVars(resolved); }
PathHelper { public final Path getTarget(final Path path) { final Path relativized = this.module.relativize(path); final Path resolved = Paths.get("/").resolve(relativized); return replaceVars(resolved); } }
PathHelper { public final Path getTarget(final Path path) { final Path relativized = this.module.relativize(path); final Path resolved = Paths.get("/").resolve(relativized); return replaceVars(resolved); } PathHelper(final Configuration conf);   PathHelper(final Map<String, Object> properties, final Path module); }
PathHelper { public final Path getTarget(final Path path) { final Path relativized = this.module.relativize(path); final Path resolved = Paths.get("/").resolve(relativized); return replaceVars(resolved); } PathHelper(final Configuration conf);   PathHelper(final Map<String, Object> properties, final Path module); final Path getTargetWithoutSuffix(Path path, final String sufix); final Path getTarget(final Path path); final Path replaceVars(final Path path); String replaceVars(String srcPath); }
PathHelper { public final Path getTarget(final Path path) { final Path relativized = this.module.relativize(path); final Path resolved = Paths.get("/").resolve(relativized); return replaceVars(resolved); } PathHelper(final Configuration conf);   PathHelper(final Map<String, Object> properties, final Path module); final Path getTargetWithoutSuffix(Path path, final String sufix); final Path getTarget(final Path path); final Path replaceVars(final Path path); String replaceVars(String srcPath);  }