Skip to content

Commit

Permalink
GH-559 source root can be file link
Browse files Browse the repository at this point in the history
  • Loading branch information
thurka committed Mar 6, 2024
1 parent 8614fe4 commit 4a81933
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -75,8 +75,8 @@ private SourcePathHandle getSourceHandle(String resourcePath) {
Path root = Paths.get(rootPath);

try {
if (Files.isDirectory(root, LinkOption.NOFOLLOW_LINKS)) return getHandleInDirectory(root, resourcePath, subPaths, encoding);
else if (Files.isRegularFile(root, LinkOption.NOFOLLOW_LINKS)) return getHandleInArchive(root, resourcePath, subPaths, encoding);
if (Files.isDirectory(root)) return getHandleInDirectory(root, resourcePath, subPaths, encoding);
else if (Files.isRegularFile(root)) return getHandleInArchive(root, resourcePath, subPaths, encoding);
} catch (Throwable t) {
LOGGER.log(Level.INFO, "Failed resolving source file " + resourcePath + " in " + root, t); // NOI18N
}
Expand Down

0 comments on commit 4a81933

Please sign in to comment.