Skip to content

Commit

Permalink
YARN-10978. Fix ApplicationClassLoader to Correctly Expand Glob for W…
Browse files Browse the repository at this point in the history
…indows Path (apache#3558)
  • Loading branch information
akshatb1 authored and slfan1989 committed Dec 20, 2022
1 parent 94db31c commit a9376d9
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 a9376d9

Please sign in to comment.