@Test public void idAsPathValid() { Assert.assertEquals(Paths.get("simple"), ScmRepository.getIdAsPath("simple")); Assert.assertEquals(Paths.get("one", "two", "three"), ScmRepository.getIdAsPath("one.two.three")); }
public static Path getIdAsPath(String id) { List<String> pathElements = new ArrayList<>(); StringTokenizer st = new StringTokenizer(id, String.valueOf(ID_DELIMITER)); String first = st.nextToken(); while (st.hasMoreTokens()) { pathElements.add(st.nextToken()); } return Paths.get(first, pathElements.toArray(new String[0])); }
ScmRepository { public static Path getIdAsPath(String id) { List<String> pathElements = new ArrayList<>(); StringTokenizer st = new StringTokenizer(id, String.valueOf(ID_DELIMITER)); String first = st.nextToken(); while (st.hasMoreTokens()) { pathElements.add(st.nextToken()); } return Paths.get(first, pathElements.toArray(new String[0])); } }
ScmRepository { public static Path getIdAsPath(String id) { List<String> pathElements = new ArrayList<>(); StringTokenizer st = new StringTokenizer(id, String.valueOf(ID_DELIMITER)); String first = st.nextToken(); while (st.hasMoreTokens()) { pathElements.add(st.nextToken()); } return Paths.get(first, pathElements.toArray(new String[0])); } private  ScmRepository(String id, Charset encoding, List<String> includes, List<String> excludes, List<String> urls,
            List<String> buildArgs, boolean skipTests, boolean addDefaultBuildArguments, ScmRepositoryMaven maven,
            ScmRepositoryGradle gradle, Duration buildTimeout, boolean logToFile, boolean logToConsole,
            Verbosity verbosity, SrcVersion buildRef, Pattern buildVersionPattern); }
ScmRepository { public static Path getIdAsPath(String id) { List<String> pathElements = new ArrayList<>(); StringTokenizer st = new StringTokenizer(id, String.valueOf(ID_DELIMITER)); String first = st.nextToken(); while (st.hasMoreTokens()) { pathElements.add(st.nextToken()); } return Paths.get(first, pathElements.toArray(new String[0])); } private  ScmRepository(String id, Charset encoding, List<String> includes, List<String> excludes, List<String> urls,
            List<String> buildArgs, boolean skipTests, boolean addDefaultBuildArguments, ScmRepositoryMaven maven,
            ScmRepositoryGradle gradle, Duration buildTimeout, boolean logToFile, boolean logToConsole,
            Verbosity verbosity, SrcVersion buildRef, Pattern buildVersionPattern); static String assertValidId(String id); static Builder builder(); static Path getIdAsPath(String id); static char getIdDelimiter(); @Override boolean equals(Object obj); List<String> getBuildArguments(); SrcVersion getBuildRef(); Duration getBuildTimeout(); Pattern getBuildVersionPattern(); Charset getEncoding(); List<String> getExcludes(); GavSet getGavSet(); ScmRepositoryGradle getGradle(); String getId(); Path getIdAsPath(); List<String> getIncludes(); ScmRepositoryMaven getMaven(); List<String> getUrls(); Verbosity getVerbosity(); @Override int hashCode(); boolean isAddDefaultBuildArguments(); boolean isLogToConsole(); boolean isLogToFile(); boolean isSkipTests(); @Override String toString(); }
ScmRepository { public static Path getIdAsPath(String id) { List<String> pathElements = new ArrayList<>(); StringTokenizer st = new StringTokenizer(id, String.valueOf(ID_DELIMITER)); String first = st.nextToken(); while (st.hasMoreTokens()) { pathElements.add(st.nextToken()); } return Paths.get(first, pathElements.toArray(new String[0])); } private  ScmRepository(String id, Charset encoding, List<String> includes, List<String> excludes, List<String> urls,
            List<String> buildArgs, boolean skipTests, boolean addDefaultBuildArguments, ScmRepositoryMaven maven,
            ScmRepositoryGradle gradle, Duration buildTimeout, boolean logToFile, boolean logToConsole,
            Verbosity verbosity, SrcVersion buildRef, Pattern buildVersionPattern); static String assertValidId(String id); static Builder builder(); static Path getIdAsPath(String id); static char getIdDelimiter(); @Override boolean equals(Object obj); List<String> getBuildArguments(); SrcVersion getBuildRef(); Duration getBuildTimeout(); Pattern getBuildVersionPattern(); Charset getEncoding(); List<String> getExcludes(); GavSet getGavSet(); ScmRepositoryGradle getGradle(); String getId(); Path getIdAsPath(); List<String> getIncludes(); ScmRepositoryMaven getMaven(); List<String> getUrls(); Verbosity getVerbosity(); @Override int hashCode(); boolean isAddDefaultBuildArguments(); boolean isLogToConsole(); boolean isLogToFile(); boolean isSkipTests(); @Override String toString();  }