ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <peter.rei...@corvil.com>
Subject Re: deleting problems
Date Mon, 01 Dec 2003 09:59:56 GMT
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


Mime
View raw message