Greetings,

I am using modified MatchPattern, MatchPatterns and SelectorUtils in the
new Apache Rat 0.17.  I had to modify them because I needed visibility to
the matching patterns, and because package private made some extensions
impossible.

The MatchPatter and MatchPatterns classes are final so I can not extend
them to add the functionality I need.  I think that keeping them final
makes sense.

So I would like to add

   - A public String source() method to MatchPattern to return the
   "source"  instance value.
   - A public List<String> sources() method to MatchPatterns that would
   return a list of MatchPattern.source() called on each enclosed pattern.
   - Expose MatchPattern method static String[] tokenizePathToString(String
   path, String separator)
   - Expose SelectorUtils.isAntPrefixedPattern

With these changes I can create a decorated version that will do what we
need to do in Rat.

Are there any comments, suggestions or issues with this idea?  If now I'll
submit a pull request.

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

Reply via email to