[
https://issues.apache.org/jira/browse/RAT-161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Erik Erlandson updated RAT-161:
-------------------------------
Attachment: RAT-161.patch2
A variation on previous patch that requires leading '/' to signal a
path-spanning pattern match. This is a bit simpler in the code, and also makes
the semantics of patterns easier to think about.
If '--dir' argument is /path/to/repo, and contents of '-E' file includes:
/subpath/to/.*ext
then the pattern induced is:
/path/to/repo + /subpath/to/.*ex t --> /path/to/repo/subpath/to/.*ext
> Support exclusion of paths: "path/to/file.ext"
> ------------------------------------------------
>
> Key: RAT-161
> URL: https://issues.apache.org/jira/browse/RAT-161
> Project: Apache Rat
> Issue Type: New Feature
> Components: reports
> Reporter: Erik Erlandson
> Priority: Minor
> Fix For: 0.11
>
> Attachments: RAT-161.patch, RAT-161.patch2
>
>
> It would be advantageous to be able to exclude specific files, e.g.
> "path/to/file.ext"
> The current '-E' feature cannot do this, as the filter patterns are only
> applied to individual files as directory tree is traversed, so a filter will
> never see "path/to/file.ext", only "path", "to" and "file.ext"
> See for example: SPARK-1493
--
This message was sent by Atlassian JIRA
(v6.2#6252)