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
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
> 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
---
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.
Hello,
I have a dirset defined in my script. How can I delete all files contained in
that dirset?
Actually, my goal is to delete the dirs from the dirset, including all the
files contained in them. But since the delete task does not delete non empty
dirs, I'd first delete all the files and, in