ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julien Martin" <>
Subject Basic wildcard question
Date Fri, 19 Dec 2003 21:37:36 GMT

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"/>

The directory structure is as follows:


Thanks in advance,

Julien Martin.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message