Claudenw commented on PR #789:
URL: https://github.com/apache/creadur-rat/pull/789#issuecomment-7065217055

   This is a bad idea.  
   
   The local version have a couple of items that the standard utils do not 
have.  For example:
   
   for MatchPattern:
   
   1. the `matchPath(final String str, final char[][] strDirs, final boolean 
isCaseSensitive)` method in our code base has a debug statement that indicates 
when the match is successful.  This has been critical in debugging issues.
   2. We override `toString()` to return the tokenized list that is used for 
matching.  This helps in debugging.
   3. our implementation of `source()` predates theirs and returns `null` for a 
regex expression.  
   
   for MatchPatterns:
   
   1. We override toString() to return the list of `toString()` calls from the 
enclosed MatchPattern objects.
   2. We have a `source()` method that returns the String representation of the 
list of `MatchPattern.source()` calls for the enclosed MatchPattern objects
   3. we have a `from(final String separator, final String... sources)` based 
on their `from(final String... sources)`  
   4. we have a `getMatchPatterns(final String separator, final 
Iterable<String> items)` based on their `getMatchPatterns(final 
Iterable<String> items)`
   
   for SelectorUtils:
   
   1. returns our implementation of MatchPattern and MatchPatterns
   
   
   We need the ability to pass in the separator so that we can do a couple of 
things:
   
   1. correctly parse compressed files on all platforms.  In some cases the 
separator in the compressed file is different from the operating system.
   2. consistently display the paths in our reports.  One of the goals is that 
a RAT report generated on a windows system will look the same as a RAT report 
generated on a linux system, assuming the same files are present.  This means 
that a simple diff between a windows generated report and a linux generated 
report is possible and can help our users determine where there is a difference 
between systems.
   
   We could submit PRs upstream and use the upstream if/when they are merged.  
This was done for one method in the SelectorUtils, where they added the 
requested `extractPattern` method. 
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to