You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Julien Martin <ju...@wanadoo.fr> on 2003/12/19 22:37:36 UTC

Basic wildcard question

Hello,

I am trying to understand the ** wildcard when used in include subtask.
Here is the line I don't understand :
<include name="**/*.txt"/>
as opposed to
<include name="*/*.txt"/>
What is the difference between those two lines? They seem to display the
same behavior.

Here is the xml in its entirety.

<?xml version="1.0"?>
<project name="monprojet" default="core" basedir=".">
<target name="core">
<copy todir="./root_one/leaf_two/">
 <fileset dir="./root_one/">
  <include name="**/*.txt"/>
 </fileset>
</copy>
</target>
</project>


The directory structure is as follows:

root_one
--leaf_one
    --toto.txt
--leaf_two

Thanks in advance,

Julien Martin.


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