Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
deleting directory by pattern?

deleting directory by pattern?

2003-03-13       - By Ken.Liu@(protected)
Reply:     1     2     3  

Hi all -

I am trying to delete a temporary directory created by weblogic.  I can't
predetermine the full directory name, but it does follow a pattern.

I tried the following, but it only deletes the files, not the directory
structure.  (the directory tree I want to delete starts with "tmp")

       <delete verbose="true">
           <fileset dir="c:/weblogicdir" includes="tmp*/**"/>
       </delete>

Thanks.

I am using Ant 1.5.1.

Ken


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.