Skip to content

Fix library detection in ClasspathElementDir#834

Merged
lukehutch merged 1 commit into
classgraph:latestfrom
mmusenbr:fix_lib_detection
Mar 8, 2024
Merged

Fix library detection in ClasspathElementDir#834
lukehutch merged 1 commit into
classgraph:latestfrom
mmusenbr:fix_lib_detection

Conversation

@mmusenbr

@mmusenbr mmusenbr commented Mar 7, 2024

Copy link
Copy Markdown
Contributor

Change Path#endsWith to Path#toString#endsWith. As Path#endsWith only matches full path segments. And therefore no library inside the AUTOMATIC_LIB_DIR_PREFIXES is detected.

Fixes #701

Signed-off-by: Michael Musenbrock <michael.musenbrock@gmail.com>
@lukehutch

Copy link
Copy Markdown
Member

Good catch -- thanks for finding and fixing this!

@lukehutch lukehutch merged commit 5581f2e into classgraph:latest Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When using wildfly 21, the jar under WEB-INF/lib will not be displayed.

2 participants