If the call at DocumentName.java line 324 were to call "this(fileSystem.getClass().getSimpleName(), fileSystem)"
then the constructor at line 322, could use the name to look up any previously stored additional information. and the change would be restricted to DocumentName class. On Sat, Dec 6, 2025 at 10:36 AM Claude Warren <[email protected]> wrote: > 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 > -- LinkedIn: http://www.linkedin.com/in/claudewarren
