all files and subdirectories under the 'build' directory are deleted but in the 'src' directory files are deleted but subdirectories structure remains the same without any files...I did not be allowed to add topic with normal code segmet that's why I written as above sorry...
Its not a bug, filesets are behaving as documented. Just specify the directory in your fileset if you want to delete the directory, not the file pattern. e.g.:
I wanna delete all files and subdirectories under the src and build directories.
In build directory it works(all files and subdirectories are deleted) but in src directory just files are deleted under the subdirectories. Subdirectory structure are not deleted.
My question is that why delete task works for build not the src directory?