ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julien Martin" <julien-mar...@wanadoo.fr>
Subject Basic wildcard question
Date Fri, 19 Dec 2003 21:37:36 GMT
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


Mime
View raw message