that's not the way it works, because after deleting all files in "build" this dir is
empty and will be deletet too, the correct (tested) way is:
<delete includeEmptyDirs="false">
<fileset dir="build" excludes="."/>
</delete>
-----Urspr�ngliche Nachricht-----
Von: Lopez, William [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 11. Juni 2003 16:41
An: Ant Users List
Betreff: RE: Ant newbie - simple question
I'm no Ant guru and you will probably get a better answer to your question
but I believe it has to do with the way your delete task is set up...you
specified the top-level directory...I think the below task would work...
<target name="clean">
<delete includeEmptyDirs="true">
<fileset dir="${dir_classes}">
<include name="**/*.*/>
</fileset>
</delete>
</target>
-----Original Message-----
From: Avery Marvin R [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 9:30 AM
To: 'Ant Users List'
Subject: Ant newbie - simple question
First my complaint: this is trivial using make!
Now the question: Why does the following seemingly
simple and straight-forward ant xml
script _not_ remove the subdirs under the
classes dir (Windows NT OS)? Thanks in advance.
<target name="clean">
<delete dir="${dir_classes}/*"/>
</target>
NOTE: ** after the / doesn't work either!
Marvin Avery
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]