You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Myriam Delperier <my...@ajlsm.com> on 2003/12/01 10:50:11 UTC
deleting problems
hello I've got problems to delete some dirs with ant.
I've got a root directory :
${dossier.installation.up}/production
in which i want to delete all the 'prod' and 'upcat' subdirectories
I tried this :
<delete>
<fileset dir="${dossier.installation.up}/production">
<include name="**/prod/**"/>
<include name="**/upcast/**"/>
</fileset>
</delete>
but it only deletes the contents of those...
and i tried this :
<delete>
<fileset dir="${dossier.installation.up}/production">
<include name="**/prod"/>
<include name="**/upcast"/>
</fileset>
</delete>
but it doesn't work
does anybody have an idea of how i can do this?
thanks for your help
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: deleting problems
Posted by Myriam Delperier <my...@ajlsm.com>.
Peter Reilly wrote:
|| You need to add the attribute "includeemptydirs" to the
|| delete task:
|| <delete includeemptydirs="yes">
|| <fileset dir="production">
|| <include name="**/prod/**"/>
|| <include name="**/upcast/**"/>
|| </fileset>
|| </delete>
it works very well thank you
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: deleting problems
Posted by Peter Reilly <pe...@corvil.com>.
You need to add the attribute "includeemptydirs" to the
delete task:
<delete includeemptydirs="yes">
<fileset dir="production">
<include name="**/prod/**"/>
<include name="**/upcast/**"/>
</fileset>
</delete>
Peter
Myriam Delperier wrote:
>hello I've got problems to delete some dirs with ant.
>I've got a root directory :
>${dossier.installation.up}/production
>
>in which i want to delete all the 'prod' and 'upcat' subdirectories
>
>I tried this :
>
><delete>
>
><fileset dir="${dossier.installation.up}/production">
>
><include name="**/prod/**"/>
>
><include name="**/upcast/**"/>
>
></fileset>
>
></delete>
>
>but it only deletes the contents of those...
>
>and i tried this :
>
>
>
><delete>
>
><fileset dir="${dossier.installation.up}/production">
>
><include name="**/prod"/>
>
><include name="**/upcast"/>
>
></fileset>
>
></delete>
>
>but it doesn't work
>
>
>
>does anybody have an idea of how i can do this?
>
>thanks for your help
>
>
>
>
>
>
>
>---------------------------------------------------------------------
>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