You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by To...@expeditors.com on 2006/06/02 01:17:39 UTC
Cannot delete directories using wildcards
I'm probably missing something obvious, but I've been unable to figure out
how to delete directories using a wildcard.
So instead of this (test1/2/3 are directories):
<delete failonerror="false" includeEmptyDirs="true">
<fileset dir="${basedir}/test1"/>
<fileset dir="${basedir}/test2"/>
<fileset dir="${basedir}/test3"/>
</delete>
I want to do this (which currently does nothing by design):
<delete failonerror="false" includeEmptyDirs="true">
<fileset dir="${basedir}/test*"/>
</delete>
So how can I implement something like the above?
-Tom
Re: Cannot delete directories using wildcards
Posted by "Alexey N. Solofnenko" <A....@mdl.com>.
It should be:
<delete failonerror="false" includeEmptyDirs="true">
<fileset dir="${basedir}" includes="test*/"/>
</delete>
- Alexey.
Tom.Morin@expeditors.com wrote:
> I'm probably missing something obvious, but I've been unable to figure
> out
> how to delete directories using a wildcard.
>
> So instead of this (test1/2/3 are directories):
>
> <delete failonerror="false" includeEmptyDirs="true">
> <fileset dir="${basedir}/test1"/>
> <fileset dir="${basedir}/test2"/>
> <fileset dir="${basedir}/test3"/>
> </delete>
>
> I want to do this (which currently does nothing by design):
>
> <delete failonerror="false" includeEmptyDirs="true">
> <fileset dir="${basedir}/test*"/>
> </delete>
>
> So how can I implement something like the above?
>
> -Tom
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org