Can Delete task skip symlinks (not follow them) and remove them?


(Timur Rubeko) #1

Can Delete task skip symlinks (not follow them) and remove them?

My build dir contains few symlinks, and, when trying to delete them with Delete task, it attempts to delete the actual files the links point to. On the contrary, I would like to keep the original files, and just remove the links.

Therefore, I’m currently using ant.delete for this, as it can be configured to not follow symlinks and to remove them. It would be nice, however, if native Delete task would be able to do that (with same confiruation parameters possibly).


(Benjamin Muschko) #2

At the moment the Delete task type does not support this feature. I created GRADLE-2892 for it.