You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@creadur.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2013/04/08 01:27:16 UTC

[jira] [Created] (RAT-134) RAT CLI uses different wildcard syntax for -e and -E; neither matches Ant/Maven wildcards

Sebb created RAT-134:
------------------------

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


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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira