Patterns **/mem/**/** and **/mem/** are they not same

View: New views
3 Messages — Rating Filter:   Alert me  

Patterns **/mem/**/** and **/mem/** are they not same

by Raja Nagendra Kumar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I am trying to use Restrict with fileset and trying to have excludes and includes on name.

However, when I give the pattern **/mem/**/**, it does not select if any files which may exist in dir mem (i.e file such as mem/nag.gif). But it selects files which are one level below mem directory say mem/abc/nag.gif etc.

When we give the second pattern i.e **/mem/** it selects the files under mem directory.

is **/*.*  not mean zero or more directories

it seems to behave like one or more directories.


Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.com

Re: Patterns **/mem/**/** and **/mem/** are they not same

by Stefan Bodewig :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 2009-10-06, Raja Nagendra Kumar <Nagendra.Raja@...> wrote:

> is **/*.*  not mean zero or more directories

** means zero or more directories

**/ is the same as **/** which means one or more directories

**/*.* means one or more directories and then a filename that contains a
  dot

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


Re: Patterns **/mem/**/** and **/mem/** are they not same

by Raja Nagendra Kumar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Stefan,

O.k, may be there is a issue with restrict when the include pattern **/*.* it selects files which are at least one directory below.

We shall try to provide you a test case.

Regards,
Nagendra
Stefan Bodewig wrote:
On 2009-10-06, Raja Nagendra Kumar <Nagendra.Raja@tejasoft.com> wrote:

> is **/*.*  not mean zero or more directories

** means zero or more directories

**/ is the same as **/** which means one or more directories

**/*.* means one or more directories and then a filename that contains a
  dot

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org