Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions src/org/rascalmpl/uri/file/MavenRepositoryURIResolver.java
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,14 @@ private ISourceLocation calculateChildPath(String jarPath) {
if (rootIsCaseSensitive && !reg.exists(result)) {
// since we use the authority of an URI, and it's normalized to lower case
// we can calculate the wrong-cased files path, so lets try and recover
var corrected = caseCorrectedPaths.get(jarPath, this::findDifferentCasedMatch);
if (corrected != null) {
return corrected;
ISourceLocation corrected;
while ((corrected = caseCorrectedPaths.get(jarPath, this::findDifferentCasedMatch)) != null) {
if (reg.exists(corrected)) {
return corrected;
}
// the file system changed, the file doesn't exist anymore
// so let's clear the entry and retry
caseCorrectedPaths.invalidate(jarPath);
}
}
return result;
Expand Down
Loading