Bug 500306 - Read-only files, and projects containing them, cannot be deleted

If the LocalFile.delete() fails with AccessDeniedException, retry the operation via old API which doesn't care about read-only flags. This makes the LocalFile.delete() behavior more predictable across different platforms.

Change-Id: I33b010469c4e3d6906d1aa2a66e51bf4e53f9f30
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
(cherry picked from commit e56853d1b0dc0cf6cfa0d4c6cef552ab46093b2a)
3 files changed
tree: 6fd3a6a9712f88fe6de22b29000c4ae5806fb522
  1. bundles/
  2. tests/
  3. .gitignore
  4. CONTRIBUTING.md
  5. pom.xml