So the solution is not simple and probably not clean either because the
file system does not tell you if it is case sensitive and because we have
multiple filesystems within a single scan possibilities.  The most common
change is probably running on windows and scanning an archive.  The
directory separators are different and the case sensitivity may be.

So.....  What we could do is create a static map of Filesystem class to
additional information (currently only the case sensitivity).  When we
first encounter the file system it will not be in the map and we do the
standard check to figure out if it is case sensitive and then store that in
the map.

Subsequent checks for the file system will discover the earlier test result
and not have to make the check again.

Does this make sense?

On Fri, Dec 5, 2025 at 12:54 PM Konrad Windszus (Jira) <[email protected]>
wrote:

>
>     [
> https://issues.apache.org/jira/browse/RAT-524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18043058#comment-18043058
> ]
>
> Konrad Windszus edited comment on RAT-524 at 12/5/25 12:53 PM:
> ---------------------------------------------------------------
>
> Can't you use
> https://docs.oracle.com/javase/8/docs/api/java/nio/file/spi/FileSystemProvider.html#isSameFile-java.nio.file.Path-java.nio.file.Path-
> for the case sensitivity checking? Does that require the provided paths to
> exist?
>
> Update: In most cases it does unfortunately,
> https://www.mail-archive.com/core-libs-dev%40openjdk.java.net/msg55577.html
>
>
> was (Author: kwin):
> Can't you use
> https://docs.oracle.com/javase/8/docs/api/java/nio/file/spi/FileSystemProvider.html#isSameFile-java.nio.file.Path-java.nio.file.Path-
> for the case sensitivity checking? Does that require the provided paths to
> exist?
>
> > Long processing time compared to version 0.16
> > ---------------------------------------------
> >
> >                 Key: RAT-524
> >                 URL: https://issues.apache.org/jira/browse/RAT-524
> >             Project: Apache RAT
> >          Issue Type: Bug
> >    Affects Versions: 0.17
> >            Reporter: Slawomir Jaranowski
> >            Priority: Critical
> >
> > Build hangs for a one - two minutes during:
> > {noformat}
> > [INFO] Excluding HIDDEN_DIR collection.
> > {noformat}
> > It looks like scan all project files and directories, when I clean
> project - I don't have a {{target}} directories it is a little faster but
> still very long comparing to version 0.16
> > How can I disable this standard exclusions ... documentation for Maven
> plugin is not clear
>
>
>
> --
> This message was sent by Atlassian Jira
> (v8.20.10#820010)
>


-- 
LinkedIn: http://www.linkedin.com/in/claudewarren

Reply via email to