@Test public void extracts_classpath_elements_on_Windows() { assertThat(Classpath.getClasspathElements("C:\\foo.jar;C:\\bar.jar", ";"), is(asList(Paths.get("C:\\foo.jar"), Paths.get("C:\\bar.jar")))); }
public static List<Path> getClasspathElements(String classpath, String pathSeparator) { List<Path> results = new ArrayList<>(); for (String path : classpath.split(Pattern.quote(pathSeparator))) { results.add(new File(path).toPath()); } return results; }
Classpath { public static List<Path> getClasspathElements(String classpath, String pathSeparator) { List<Path> results = new ArrayList<>(); for (String path : classpath.split(Pattern.quote(pathSeparator))) { results.add(new File(path).toPath()); } return results; } }
Classpath { public static List<Path> getClasspathElements(String classpath, String pathSeparator) { List<Path> results = new ArrayList<>(); for (String path : classpath.split(Pattern.quote(pathSeparator))) { results.add(new File(path).toPath()); } return results; }  }
Classpath { public static List<Path> getClasspathElements(String classpath, String pathSeparator) { List<Path> results = new ArrayList<>(); for (String path : classpath.split(Pattern.quote(pathSeparator))) { results.add(new File(path).toPath()); } return results; }  static Path[] currentClasspath(); static List<Path> getClasspathElements(String classpath, String pathSeparator); static List<Path> excludeJdkClasses(List<Path> classpath); }
Classpath { public static List<Path> getClasspathElements(String classpath, String pathSeparator) { List<Path> results = new ArrayList<>(); for (String path : classpath.split(Pattern.quote(pathSeparator))) { results.add(new File(path).toPath()); } return results; }  static Path[] currentClasspath(); static List<Path> getClasspathElements(String classpath, String pathSeparator); static List<Path> excludeJdkClasses(List<Path> classpath);  }