MCPcopy Create free account
hub / github.com/apache/ant / renameFile

Method renameFile

src/main/org/apache/tools/ant/taskdefs/Move.java:340–382  ·  view source on GitHub ↗

Attempts to rename a file from a source to a destination. If overwrite is set to true, this method overwrites existing file even if the destination file is newer. Otherwise, the source file is renamed only if the destination file is older than it. Method then checks if token filtering is used. If

(File sourceFile, File destFile, boolean filtering,
                                 boolean overwrite)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

doFileOperationsMethod · 0.95
moveFileMethod · 0.95

Calls 15

getFilterSetsMethod · 0.80
getFilterChainsMethod · 0.80
formatMethod · 0.80
tryHardToDeleteMethod · 0.80
mkdirsMethod · 0.80
getResolvedPathMethod · 0.80
normalizeMethod · 0.80
isEmptyMethod · 0.65
logMethod · 0.65
isDirectoryMethod · 0.45
isFileMethod · 0.45
getForceMethod · 0.45

Tested by

no test coverage detected