Skip to content

Commit

Permalink
Disable nested jar scanning in dependenciesFromClasspath()
Browse files Browse the repository at this point in the history
Nested jar scanning is currently not supported and is thus explicitly disabled in `JavaParser#dependenciesFromClasspath()` so that it doesn't end up causing exceptions (due to missing `FileSystems#newFileSystem()` call).
  • Loading branch information
knutwannheden committed Oct 11, 2023
1 parent 9a5b79d commit 6fbb85d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ static List<Path> runtimeClasspath() {
* matching jars can be found.
*/
static List<Path> dependenciesFromClasspath(String... artifactNames) {
List<URI> runtimeClasspath = new ClassGraph().getClasspathURIs();
List<URI> runtimeClasspath = new ClassGraph().disableNestedJarScanning().getClasspathURIs();
List<Path> artifacts = new ArrayList<>(artifactNames.length);
List<String> missingArtifactNames = new ArrayList<>(artifactNames.length);
for (String artifactName : artifactNames) {
Expand Down

0 comments on commit 6fbb85d

Please sign in to comment.