antnant

How do I use Nant/Ant naming patterns?


I have to admit that I always forgot the syntactical intracacies of the naming patterns for Nant (eg. those used in filesets). The double asterisk/single asterisk stuff seems to be very forgettable in my mind.

Can someone provide a definitive guide to the naming patterns?


Solution

  • The rules are:

    Another way to think about it is double star (**) matches slash (/) but single star (*) does not.

    Let's say you have the files:

    1. bar.txt
    2. src/bar.c
    3. src/baz.c
    4. src/test/bartest.c

    Then the patterns: