Skip to content

Commit

Permalink
Using File.separator instead of "\" to make glob expansion OS agnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
akshatb1 committed Oct 16, 2021
1 parent 263e4b5 commit 8521737
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ static URL[] constructUrlsFromClasspath(String classpath)
throws MalformedURLException {
List<URL> urls = new ArrayList<URL>();
for (String element : classpath.split(File.pathSeparator)) {
if (element.endsWith("/*")) {
if (element.endsWith(File.separator + "*")) {
List<Path> jars = FileUtil.getJarsInDirectory(element);
if (!jars.isEmpty()) {
for (Path jar: jars) {
Expand Down

0 comments on commit 8521737

Please sign in to comment.