You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Raja Nagendra Kumar <Na...@tejasoft.com> on 2009/10/06 21:04:45 UTC

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

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
-- 
View this message in context: http://www.nabble.com/Patterns-**-mem-**-**-and-**-mem-**-are-they-not-same-tp25774766p25774766.html
Sent from the Ant - Users mailing list archive at Nabble.com.


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


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

Posted by Raja Nagendra Kumar <Na...@tejasoft.com>.
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 <Na...@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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Patterns-**-mem-**-**-and-**-mem-**-are-they-not-same-tp25774766p25780228.html
Sent from the Ant - Users mailing list archive at Nabble.com.


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


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

Posted by Stefan Bodewig <bo...@apache.org>.
On 2009-10-06, Raja Nagendra Kumar <Na...@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