MCPcopy Create free account
hub / github.com/diffplug/goomph / forceDelete

Method forceDelete

src/main/java/com/diffplug/gradle/FileMisc.java:102–109  ·  view source on GitHub ↗

Calls FileUtils#forceDelete(File) and throws an exception if it fails. If the file doesn't exist at all, that's fine.

(File f)

Source from the content-addressed store, hash-verified

100
101 /** Calls {@link FileUtils#forceDelete(File)} and throws an exception if it fails. If the file doesn't exist at all, that's fine. */
102 public static void forceDelete(File f) {
103 retry(f, file -> {
104 if (file.exists()) {
105 FileUtils.forceDelete(f);
106 }
107 return null;
108 });
109 }
110
111 private static final int MS_RETRY = 500;
112

Callers 12

doTestMethod · 0.95
javaExecMethod · 0.95
rmMethod · 0.95
cleanDirMethod · 0.95
flattenMethod · 0.95
execInternalMethod · 0.95
installMethod · 0.95
deleteWorkspaceMethod · 0.95
runUsingMethod · 0.95
bundleToVersionMethod · 0.95
installMethod · 0.95
deleteStragglersMethod · 0.95

Calls 1

retryMethod · 0.95

Tested by 1

doTestMethod · 0.76