Repository navigation
3.6.3
·
4 commits
to plexus-utils-3.x
since this release
plexus-utils 3.6.3 brings the bug fixes of 4.2.0 to the 3.x line (#355). It requires Java 8 or later, as before.
✨ Highlights
- Deleting a tree no longer deletes outside it.
FileUtils.forceDeleteOnExitfollowed symbolic links to directories, so a link inside the tree got every file under its target deleted when the JVM exited.deleteDirectorycould empty a link's target when the link itself could not be removed. Both now remove only the link (#348, thanks @kakkar87d). translateCommandlinesplits at tabs and line breaks. Outside quotes,\t,\nand\rnow separate arguments like a space does. Input that held one of these characters unquoted now yields more arguments; quoted text is unchanged (#352).- Clearer
FileUtilsfailures.forceDeleteusesFiles.deleteIfExists, so it also removes dangling symbolic links and skips the Windows retry delay for files that are already gone (#350).copyDirectoryStructureandcleanDirectoryOnExitreport an unreadable directory as anIOExceptionnaming it, instead of aNullPointerException(#349).
🐛 Bug Fixes
- Do not follow symlinks in forceDeleteOnExit and deleteDirectory (#348) @kakkar87d
- Split translateCommandline at tabs and line breaks (#352) @slachiewicz
- Use Files.deleteIfExists in FileUtils.forceDelete (#350) @slachiewicz
- Report an unlistable directory as IOException instead of NullPointerException (#349) @slachiewicz