creadur-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Erlandson (JIRA)" <>
Subject [jira] [Updated] (RAT-161) Support exclusion of paths: "path/to/file.ext"
Date Fri, 20 Jun 2014 15:34:25 GMT


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:


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:
>             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

View raw message