@Test public void replacePathVars() throws IOException{ PathHelper vpu = new PathHelper(conf, null); assertThat(vpu.replaceVars("/opt/jboss/@all@"), is("/opt/jboss/VAL_all")); assertThat(vpu.replaceVars("/opt/jboss/@all@/test"), is("/opt/jboss/VAL_all/test")); assertThat(vpu.replaceVars("/opt/jboss/@begin@test"), is("/opt/jboss/VAL_begintest")); assertThat(vpu.replaceVars("/opt/jboss/test@end@"), is("/opt/jboss/testVAL_end")); assertThat(vpu.replaceVars("/opt/@manydirs@/test"), is("/opt/a/b/c/test")); assertThat(vpu.replaceVars(" assertThat(vpu.replaceVars("/opt/@manydirsFromRoot@/test"), is("/opt/a/b/c/test")); assertThat(vpu.replaceVars("/opt/not/4/replace/test"), is("/opt/not/4/replace/test")); }
public final Path replaceVars(final Path path) { String resolvedPath = replaceVars(path.toString()); return Paths.get(resolvedPath); }
PathHelper { public final Path replaceVars(final Path path) { String resolvedPath = replaceVars(path.toString()); return Paths.get(resolvedPath); } }
PathHelper { public final Path replaceVars(final Path path) { String resolvedPath = replaceVars(path.toString()); return Paths.get(resolvedPath); } PathHelper(final Configuration conf);   PathHelper(final Map<String, Object> properties, final Path module); }
PathHelper { public final Path replaceVars(final Path path) { String resolvedPath = replaceVars(path.toString()); return Paths.get(resolvedPath); } 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 replaceVars(final Path path) { String resolvedPath = replaceVars(path.toString()); return Paths.get(resolvedPath); } 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);  }