ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Kajsa (TLR Corp)" <Kajsa.Ander...@thomson.com>
Subject RE: proper use of filesets...
Date Tue, 22 Jun 2004 16:15:53 GMT
In the second example, dir1 and dir2 must share a common parent; the first example does not
have this requirment (as I understand it).

HTH

-----Original Message-----
From: EJ Ciramella [mailto:eciramella@upromise.com]
Sent: Tuesday, June 22, 2004 10:16 AM
To: Ant Users List
Subject: proper use of filesets...


What's the best way to use filesets (in tasks that support them)?

Delete, for example, you can use filesets two ways:

  <delete includeEmptyDirs="true">
    <fileset dir="dir1"/>
    <fileset dir="dir2"/>
  </delete>

or 

  <delete includeEmptyDirs="true">
    <fileset dir="${parent.dir}">
     <include name="dir1"/>
     <include name="dir2"/>
    </fileset>
  </delete>

I prefer the second example, but is there any benefit of one over the other?

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


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


Mime
View raw message