creadur-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Erlandson (JIRA)" <>
Subject [jira] [Commented] (RAT-161) Support exclusion of paths: "path/to/file.ext"
Date Wed, 11 Jun 2014 21:31:03 GMT


Erik Erlandson commented on RAT-161:

to put it another way, as I understand from the doc (and the code), you can either:

a) specify path names, in maven config, via <exclude>...</exclude>, but not regular
b) specify a list of regex via '-E', one per line, which cannot currently span paths, that
is match across directory '/'
c) specify regex on the CL via -'e'

The purpose of this RFE is to allow regular expressions, which *can* span paths, so one can
include patterns like 'path/to/file.ext' and '*.pom' in the same configuration.  This might
either be done by extending (a) to include regex that can match across '/', or enhancing (b)
to include such regular expressions as well.  Those are not mutually exclusive.

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