You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@creadur.apache.org by "Claude Warren (Jira)" <ji...@apache.org> on 2024/11/16 17:09:00 UTC
[jira] [Updated] (RAT-134) RAT CLI uses different wildcard syntax for -e and -E; neither matches Ant/Maven wildcards
[ https://issues.apache.org/jira/browse/RAT-134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claude Warren updated RAT-134:
------------------------------
Fix Version/s: 0.17
> RAT CLI uses different wildcard syntax for -e and -E; neither matches Ant/Maven wildcards
> -----------------------------------------------------------------------------------------
>
> Key: RAT-134
> URL: https://issues.apache.org/jira/browse/RAT-134
> Project: Apache Rat
> Issue Type: Bug
> Affects Versions: 0.8, 0.9
> Reporter: Sebb
> Priority: Major
> Fix For: 0.17
>
>
> RAT CLI uses two different wildcard syntaxes, neither of which agree with the Ant/Maven syntax.
> For the -E option (expressions read from a file), it uses RegexFileFilter which uses java.util.regex.Pattern syntax.
> For the -e option (expression provided on command-line), it uses WildcardFileFilter, whose Javadoc says:
> "The wildcard matcher uses the characters '?' and '*' to represent a single or multiple wildcard characters. This is the same as often found on Dos/Unix command lines."
> Ant and Maven syntax is similar to the -e syntax, except that they use '**' to mean zero or more directories.
> RAT CLI should be consistent, and should use Ant/Maven style syntax.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)