Sorry for include I use
-----Original Message-----
From: Siamack Farshi [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 11:24 AM
To: 'Ant Users List'
Subject: A simple question
<include name="**"/>
Hello everyone:
This may seem like a simple question, but I appreciate if someone
can give me a hint;
I have a directory structure:
wartemp
|_mdir
|_ydir
|_web-inf
|_lib
|_zdir
I would like to delete everyting and only leave the following
directory structure
wartemp
|_web-inf
|_lib
I used the following:
<target name="cleanwardir" depends="init,prepare">
<delete>
<fileset dir="${wardir}">
<include name="**"/>
<exclude name="WEB-INF/lib"/>
</fileset>
</delete>
</target>
however, this only removes all the files, including
those in subdirectories and leaves the subdirectories
undeleted.
I do not want to list the directory names as each time
they will have a different name. I only need to keep:
wartemp
|_web-inf
|_lib
thanks for your replies,
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>