Skip to content

Commit

Permalink
Merge pull request #834 from mmusenbr/fix_lib_detection
Browse files Browse the repository at this point in the history
Fix library detection in ClasspathElementDir
  • Loading branch information
lukehutch committed Mar 8, 2024
2 parents 27fb1fe + e9f032b commit 5581f2e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ void open(final WorkQueue<ClasspathEntryWorkUnit> workQueue, final LogNode log)
// Add all jarfiles within the lib dir as child classpath entries
try (DirectoryStream<Path> stream = Files.newDirectoryStream(libDirPath)) {
for (final Path filePath : stream) {
if (Files.isRegularFile(filePath) && filePath.getFileName().endsWith(".jar")) {
if (Files.isRegularFile(filePath) && filePath.toString().toLowerCase().endsWith(".jar")) {
if (log != null) {
log(classpathElementIdx, "Found lib jar: " + filePath, log);
}
Expand Down

0 comments on commit 5581f2e

Please sign in to comment.