ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "JohnA" <john.mli...@arrizza.com>
Subject RE: FileSet question
Date Mon, 24 Sep 2001 21:48:11 GMT
> -----Original Message-----
> From: David Jencks [mailto:davidjencks@directvinternet.com]
> 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.

Thanks. However, I am getting the files within html and cgi-bin if I add

  <include name="." />

If I don't have include "." then I don't get any files or subdirectories of
rootdir (of which html and cgi-bin are two).

For example, if root dir is john/abc and it has the following in it:

john/abc
   a.txt
   b.txt
   html
      h1.html
      h2.html
   dir2
      d1.txt
      d2.txt
   cgi-bin
      c1.pl
      c2.pl
   c.txt

then
      <local  dir="${rootdir}">
          <include name="." />
          <include name="html/" />
          <include name="cgi-bin/" />
      </local>

will match the following files
    html/h1.html
    html/h2.html
    cgi-bin/c1.pl
    cgi-bin/c2.pl

but
      <local  dir="${rootdir}">
          <include name="html/" />
          <include name="cgi-bin/" />
      </local>

matches _nothing_, I don't get any files in the root directory nor in html
or cgi-bin.

Is this normal behaviour?

John




Mime
View raw message