You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Alan Pearlman Spencer <Al...@Mobileaware.com> on 2001/11/14 14:31:07 UTC

How do I get a fileset to include only directories?

Hi I'm trying to search for a file in a dir tree.
I'm using:
    <available resource="properties.sample" type="file"
property="found">
      <classpath>
      <pathelement path="x${build.props.dir}"/>
      <fileset dir="${build.root}">
        <include name="**"/>
        <exclude name="**/*.*"/>
       </fileset>
    </classpath>
  </available>

The pathelement works, but I can't get the fileset to include all dirs
in the tree...
Any ideas?
Thanks,
Alan.
		Alan Pearlman-Spencer
		MobileAware Ltd.
		3225 Lake Drive, 
		National Digital Park, 
		CityWest Business Campus, 
		Dublin 24. 
		Ireland. 
		Phone: +353 (0)1 2410 500 
		Fax: +353 (0)1 2410 501 



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: How do I get a fileset to include only directories?

Posted by Peter Donald <do...@apache.org>.
On Thu, 15 Nov 2001 00:31, Alan Pearlman Spencer wrote:
> Hi I'm trying to search for a file in a dir tree.
> I'm using:
>     <available resource="properties.sample" type="file"
> property="found">
>       <classpath>
>       <pathelement path="x${build.props.dir}"/>
>       <fileset dir="${build.root}">
>         <include name="**"/>
>         <exclude name="**/*.*"/>
>        </fileset>
>     </classpath>
>   </available>
>
> The pathelement works, but I can't get the fileset to include all dirs
> in the tree...

Unfortunately there is no way to create a fileset of dirs atm ;(

-- 
Cheers,

Pete

*-----------------------------------------------------*
| For those who refuse to understand, no explanation  |
| will ever suffice. For those who refuse to believe, |
| no evidence will ever suffice.                      |
*-----------------------------------------------------*

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>