Repairing build on Linux... reverting old behavior.
MODIFY
src/main/java/org/apache/commons/io/FileUtils.java
src/main/java/org/apache/commons/io/FileUtils.java
@@ -1440,7 +1440,7 @@ private static void setLastModified(final File sourceFile, final File targetFile
public static void forceDelete(final File file) throws IOException {
final Counters.PathCounters deleteCounters;
try {
- deleteCounters = PathUtils.delete(file.toPath(), StandardDeleteOption.OVERRIDE_READ_ONLY);
+ deleteCounters = PathUtils.delete(file.toPath());
} catch (IOException e) {
throw new IOException("Unable to delete file: " + file, e);
}

MODIFY
src/main/java/org/apache/commons/io/file/PathUtils.java
src/main/java/org/apache/commons/io/file/PathUtils.java
@@ -360,7 +360,7 @@ public static PathCounters deleteFile(final Path file, final DeleteOption... opt
final boolean exists = Files.exists(file, LinkOption.NOFOLLOW_LINKS);
final long size = exists ? Files.size(file) : 0;
if (overrideReadOnly(options) && exists) {
- setReadOnly(file, false/*, LinkOption.NOFOLLOW_LINKS*/);
+ setReadOnly(file, false, LinkOption.NOFOLLOW_LINKS);
}
if (Files.deleteIfExists(file)) {
pathCounts.getFileCounter().increment();

Repairing build on Linux... reverting old behavior.