ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Azariah Jeyakumar" <azariah.jeyaku...@tumbleweed.com>
Subject RE: FileSet question
Date Mon, 24 Sep 2001 20:06:38 GMT
Hi,

According to ant documentation,

<include name="html/"/>

is the same as

<include name="html/**"/>

Quoting: There is one "shorthand" - if a pattern ends with / or \, then **
is appended. For example, mypackage/test/ is interpreted as if it were
mypackage/test/**.

Azariah

> -----Original Message-----
> From: David Jencks [mailto:davidjencks@directvinternet.com]
> Sent: Monday, September 24, 2001 1:10 PM
> To: ant-user@jakarta.apache.org
> Subject: Re: FileSet question
> 
> 
> Maybe add
> >       <local  dir="${rootdir}">
> >          <include name="html/**"/>
> >          <include name="cgi-bin/**"/>
> >       </local>
> so you get files in the directories and not just the directories
> themselves.
> 
> david jencks
> 
> On 2001.09.24 13:56:01 -0400 JohnA wrote:
> > I have a fileset that looks like this:
> > 
> >       <local  dir="${rootdir}">
> >          <include name="."/>
> >          <include name="html/"/>
> >          <include name="cgi-bin/"/>
> >       </local>
> > 
> > What this is trying to do is include _only_ the two 
> directories html and
> > cgi-bin in rootdir, i.e. exclude everything else. If I don't add the
> > include
> > for "." it excludes everything in rootdir (I guess since "." is not
> > included).
> > 
> > Is this normal behaviour for Filesets or is this a bug in 
> my taskdef? :)
> > 
> > John
> > 
> > 
> > 
> 


Mime
View raw message