Skip to content

Commit

Permalink
Remove potential trailing slash on library extraction URL
Browse files Browse the repository at this point in the history
trailing slash stopped preferred version from being linked
  • Loading branch information
pazi146 authored and oberlehner committed Jan 8, 2025
1 parent b2db333 commit 0630fe1
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,11 @@ public java.net.URI extractLibrary(final Path path, final IProject project, fina
}
checkLibChanges();

// strip potential trailing slash
if (folderName.endsWith("/")) { //$NON-NLS-1$
folderName = folderName.substring(0, folderName.length() - 1);
}

final java.net.URI importURI = URIUtil.append(workspaceLibraryURI, folderName);

if (autoImport && project != null) {
Expand Down

0 comments on commit 0630fe1

Please sign in to comment.