Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

Commit

Permalink
Allow JSR223 scripts with same name in different directories (#3855)
Browse files Browse the repository at this point in the history
Fixes #3801

Signed-off-by: Stefan Triller <stefan.triller@telekom.de>
  • Loading branch information
triller-telekom authored and kaikreuzer committed Jul 24, 2017
1 parent 29dcb2d commit af2344e
Showing 1 changed file with 1 addition and 4 deletions.
Expand Up @@ -233,11 +233,8 @@ private void checkFiles() {
@Override
public int compare(URL o1, URL o2) {
String f1 = o1.getPath();
String s1 = f1.substring(f1.lastIndexOf("/") + 1);
String f2 = o2.getPath();
String s2 = f2.substring(f2.lastIndexOf("/") + 1);

return String.CASE_INSENSITIVE_ORDER.compare(s1, s2);
return String.CASE_INSENSITIVE_ORDER.compare(f1, f2);
}
});

Expand Down

0 comments on commit af2344e

Please sign in to comment.