AW: How to delete all files in a dirset

2016-10-20 Thread Al Le
Hua, Jan, thank you for the great example! My requirement is not quite "delete recursively all directories which contain a marker file". But very similar. It is: Delete recursively all directories which only contain files with some name patterns but no other files. If there are other files in t

AW: AW: How to delete all files in a dirset

2016-10-20 Thread jhm
If I understand your requirements right, you want to delete recursively all directories which contain a marker file. So maybe you could use this (have a deeper look at the task). Jan

Aw: AW: How to delete all files in a dirset

2016-10-20 Thread Al Le
> Could you use a ? I could use a fileset with "type=dir" filter, yes. But then I'd still have a problem of how to delete all files in these dirs. For now, I just use "apply" and execute "cmd /c rmdir /s /q " on each dir (I'm on windows). AL ---

AW: How to delete all files in a dirset

2016-10-20 Thread jhm
Could you use a ? Jan > -Ursprüngliche Nachricht- > Von: Al Le [mailto:al...@gmx.de] > Gesendet: Donnerstag, 20. Oktober 2016 12:08 > An: user@ant.apache.org > Betreff: How to delete all files in a dirset > > Hello, > > I have a dirset defined in my script. How can I delete all files >