Greets,

What it the syntax for the --exclude/-e command line option?

Let's say I would like to exclude a file at the following location:

    $TRUNK/modules/analysis/snowstem/source/runtime/api.c

These work...

    -e api.c
    -e *.c
    -e *api.c

... but these don't:

    -e modules/analysis/snowstem/source/runtime/api.c
    -e 
/Users/marvin/projects/lucy/modules/analysis/snowstem/source/runtime/api.c
    -e */*/*/*/*/api.c
    -e */*/*/*/*/*.c
    -e runtime/api.c
    -e */runtime/api.c
    -e **/runtime/api.c
    -e **/*/api.c
    -e **/*.c
    -e */*.c

For obvious reasons, it's not acceptable to exclude on filename or file
extension alone.  

Based on some examples I've found in the rat-dev archives, it seems like at
least some of those patterns should have worked.  However, the examples I've
found involved either Ant or Maven, while I'm using the command line
interface:

    http://markmail.org/message/3yuev4m7rhv55jhi
    http://markmail.org/message/dqgh27zpszhj6y2s

I'm particularly surprised that RAT seemingly can't figure out that a file
should be excluded when its full path is supplied.  It looks like the instant
a directory enters the picture, the exclude directive fails.

What have I missed?  

Best,

Marvin Humphrey

Reply via email to