You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Alec Fernandez <Al...@sas.com> on 2009/08/27 13:35:19 UTC

Ant Manual question

Hello,

I found this example in the selectors section of the ant manual but I was unable to get it to work.  If I change <fileset> to <dirset> then it returns the the matching directories as expected so I don't think my use is incorrect or that I have any typos.

Am I missing something or is this example simply a bit outdated?

-Alec

Here is an example of how to use the Type Selector to select only directories in ${src}
<fileset dir="${src}">
  <type type="dir"/>
</fileset>



_____________________________________________________________________
Just what makes that little old ant think he'll move that rubber tree plant?
Everyone knows an ant can't move a rubber tree plant.  -Sammy Cahn




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


Re: Ant Manual question

Posted by Stefan Bodewig <bo...@apache.org>.
On 2009-08-27, Alec Fernandez <Al...@sas.com> wrote:

> I found this example in the selectors section of the ant manual

[re-flown]

> <fileset dir="${src}">
>   <type type="dir"/>
> </fileset>

> but I was unable to get it to work.  If I change <fileset> to <dirset>
> then it returns the the matching directories as expected

It depends on the task.  Some tasks will use fileset as a container for
files only (what you have seen when you said "unable to get ot to work"
while other tasks will also consider the directories matched by the
fileset.

Stefan


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