This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-io.git
The following commit(s) were added to refs/heads/master by this push: new 414e597 Prepare for 2.10.0 release candidate 1. 414e597 is described below commit 414e597e01e02ef1714fc0f8524eea8c836f315f Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Thu Jun 10 08:30:00 2021 -0400 Prepare for 2.10.0 release candidate 1. --- README.md | 4 +- RELEASE-NOTES.txt | 97 ++++++------------------------------------- src/changes/changes.xml | 2 +- src/site/xdoc/download_io.xml | 26 ++++++------ src/site/xdoc/index.xml | 15 ++++++- 5 files changed, 42 insertions(+), 102 deletions(-) diff --git a/README.md b/README.md index 60388fb..897d05e 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ Apache Commons IO [![GitHub Actions Status](https://github.com/apache/commons-io/workflows/Java%20CI/badge.svg)](https://github.com/apache/commons-io/actions) [![Coverage Status](https://coveralls.io/repos/apache/commons-io/badge.svg)](https://coveralls.io/r/apache/commons-io) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/commons-io/commons-io/badge.svg)](https://maven-badges.herokuapp.com/maven-central/commons-io/commons-io/) -[![Javadocs](https://javadoc.io/badge/commons-io/commons-io/2.9.0.svg)](https://javadoc.io/doc/commons-io/commons-io/2.9.0) +[![Javadocs](https://javadoc.io/badge/commons-io/commons-io/2.10.0.svg)](https://javadoc.io/doc/commons-io/commons-io/2.10.0) The Apache Commons IO library contains utility classes, stream implementations, file filters, file comparators, endian transformation classes, and much more. @@ -69,7 +69,7 @@ Alternatively you can pull it from the central Maven repositories: <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> - <version>2.9.0</version> + <version>2.10.0</version> </dependency> ``` diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt index 677f76c..b20257a 100644 --- a/RELEASE-NOTES.txt +++ b/RELEASE-NOTES.txt @@ -1,6 +1,6 @@ Apache Commons IO -Version 2.9.0 +Version 2.10.0 Release Notes INTRODUCTION: @@ -13,100 +13,27 @@ The Apache Commons IO library contains utility classes, stream implementations, file comparators, endian transformation classes, and much more. ============================================================================== -Apache Commons IO Version 2.9.0 +Apache Commons IO Version 2.10.0 ============================================================================== Java 8 required. Changes in this version include: New features: -o Add FileSystemProviders class. Thanks to Gary Gregory. -o Let org.apache.commons.io.filefilter classes work with java.nio.file.Files.walk* APIs. Thanks to Gary Gregory. -o Let org.apache.commons.io.filefilter classes work with java.nio.file.Files#newDirectoryStream(Path, DirectoryStream.Filter). Thanks to Gary Gregory. -o IO-510: Add and adapt ReadAheadInputStream and BufferedFileChannelInputStream from Apache Spark. Thanks to Gary Gregory, Apache Spark, David Mollitor. -o Add PathUtils.createParentDirectories(Path, FileAttribute...). Thanks to Gary Gregory. -o Add factory methods to CloseShieldInputStream, CloseShieldReader, CloseShieldOutputStream, CloseShieldWriter, #173. Thanks to Rob Spoor, Gary Gregory. -o Add QueueInputStream and QueueOutputStream as simpler alternatives to PipedInputStream and PipedOutputStream #171. Thanks to Rob Spoor, Gary Gregory. -o Add StandardLineSeparator. Thanks to Gary Gregory. -o Replace magic numbers with constants with the new IOUtils.CR and LF. Thanks to Gary Gregory. -o Add FileSystem#supportsDriveLetter(). Thanks to Gary Gregory. -o Add FileUtils.delete(File). Thanks to Gary Gregory. -o IO-700: Add FileUtils.moveFile(File, File, CopyOption...) #185. Thanks to Gary Gregory. -o IO-700: Add FileUtils.isEmptyDirectory(File). Thanks to Gary Gregory. -o Add FileUtils.lastModified[Unchecked](File) to workaround https://bugs.openjdk.java.net/browse/JDK-8177809. Thanks to Gary Gregory. -o IO-709: Add null safe variants of isDirectory and isRegularFile. Thanks to Boris Unckel, Gary Gregory. -o Add and use IOExceptionList(String, List). Thanks to Gary Gregory. -o Add and use ObservableInputStream.ObservableInputStream(InputStream, Observer...). Thanks to Gary Gregory. -o Make ObservableInputStream.getObservers() public. Thanks to Gary Gregory. -o IO-706: Add TimestampedObserver. Thanks to Gary Gregory. -o Add and use IOUtils.byteArray(*). Thanks to Gary Gregory. -o Make public and reuse IOUtils.EMPTY_BYTE_ARRAY. Thanks to Gary Gregory. -o Add IOUtils.copy(URL, File). Thanks to Gary Gregory. -o Add copy(URL, OutputStream). Thanks to Gary Gregory. -o IO-651: Add DeferredFileOutputStream.toInputStream() #206. Thanks to jmark109, Gary Gregory. -o Add CharacterSetFilterReader.CharacterSetFilterReader(Reader, Integer...). Thanks to Gary Gregory. -o Add AbstractCharacterFilterReader(Reader, IntPredicate), #227. - Add CharacterFilterReader(Reader, IntPredicate), #227. - Add CharacterFilterReaderIntPredicateTest, #227. Thanks to Rob Spoor, Gary Gregory. -o Add IOConsumer.noop(). Thanks to Gary Gregory. -o Add constructor ThresholdingOutputStream(int, IOConsumer, IOFunction) and make the class concrete. Thanks to Gary Gregory. -o Add constructor accepting collection of file alteration observers #236. Thanks to nstdspace, Gary Gregory. +o Add and use RegexFileFilter.toString(). Thanks to Gary Gregory. +o Add and use RegexFileFilter.RegexFileFilter(Pattern, Function<Path>, String>) Thanks to Gary Gregory. +o Add and use IOCase.isCaseSensitive(IOCase). Thanks to Gary Gregory. Fixed Bugs: -o IO-686: IOUtils.toByteArray(InputStream) Javadoc does not match code. Thanks to Alan Moffat, Gary Gregory. -o IO-689: FileUtils: Remove Instant->ZonedDateTime->Instant round-trip. Thanks to Uwe Schindler. -o Make FilenameUtils.equals() not throw an exception #154. Thanks to Michael Ernst, Gary Gregory. -o Un-deprecate IOUtils.closeQuietly() methods. Thanks to Jan Peter Stotz, Bernd Eckenfels, Gary Gregory. -o FileUtils#copyDirectory(File, File, FileFilter, preserveFileDate) clean up #163. Thanks to Michiel Kalkman. -o AccumulatorPathVisitor does not track directories properly. Thanks to Gary Gregory. -o IO-597: FileUtils.iterateFiles runs out of memory when executed for a directory with large number of files. - Re-implement FileUtils' iterateFiles(), iterateFilesAndDirs(), listFiles(), listFilesAndDirs() to use NIO - file tree walking instead of IO file listings to avoid memory consumption issues on large file trees. Thanks to Gary Gregory, Arvind, Rob Spoor. -o FileUtils.forceDelete(File) actually forces deletion of read-only files as it did in version 2.6. Thanks to Gary Gregory. -o IO-692: PathUtils.deleteFile() no longer throws a NoSuchFileException when applied on a symbolic link pointing - to a file that doesn't exist. Thanks to Matthew Rooney, Emmanuel Bourg. -o IO-694: Behavior change in FileUtils.copyDirectory() file last modified timestamp preservation. Match Javadoc to code. Thanks to Tan Yee Fan, Gary Gregory. -o IO-600: Fix getPrefixLength method for Linux filename #179. Thanks to Abhyankar Chaubey, Gary Gregory. -o IO-699: Wrong logging in FileUtils.setLastModified. Thanks to tza, Gary Gregory. -o IO-686: IOUtils.toByteArray(InputStream) Javadoc does not match code. Thanks to Alan Moffat, Sebb, Gary Gregory. -o IO-688: CopyUtils deprecation message gives wrong version. Thanks to Michael Ernst, Gary Gregory. -o IO-701: Make PathUtils.setReadOnly deal with LinuxDosFileAttributeView #186. Thanks to Gary Gregory. -o IO-702: FileUtils.forceDelete does not delete invalid links. #187. Thanks to Boris Unckel, Gary Gregory. -o IO-690: IOUtils.toByteArray(null) no longer throws a NullPointerException. Thanks to Chris Heisterkamp, Gary Gregory. -o IO-705: MarkShieldInputStream#reset should throw UnsupportedOperationException. Thanks to Hao Zhong, Gary Gregory. -o IO-705: LockableFileWriter.close() should fail when the lock file cannot be deleted. Thanks to Hao Zhong, Gary Gregory. -o IO-705: Fix infinite loops in ObservableInputStream read(*) when an exception is caught but not re-thrown. Thanks to Hao Zhong, Gary Gregory. -o IO-719: Fixed error of copying directories between different file systems #203. Thanks to Andrew Shcheglov, Gary Gregory. -o Fix Typos in JavaDoc, Comments and Tests #201. Thanks to Felix Rilling. -o IO-718: FileUtils.checksumCRC32 and FileUtils.checksum are not thread safe. Thanks to Robert Cooper, Gary Gregory. -o IO-720: Fix error about usage of DirectBuffer in JRE 16/17 #205. Thanks to XenoAmess. -o Prevent infinite loop with AbstractCharacterFilterReader if EOF is filtered out #226. Thanks to Rob Spoor, Gary Gregory. -o IO-429: Check for long streams in IOUtils.toByteArray #175. Thanks to Rob Spoor, Ivan Leskin. +o IO-733: RegexFileFilter uses the path and file name instead of just the file name. Thanks to Jim Sellers, Gary Gregory. +o IO-734: The OSGi manifest now contains sun.* import packages #239. Thanks to Eric Norman. +o IO-585: Sanitize double slash after prefix #79. Thanks to Adam McClenaghan. Changes: -o Update junit-jupiter from 5.6.2 to 5.7.0 #153. Thanks to Dependabot. -o Update mockito-core from 3.5.9 to 3.10.0, #152, #155, #157, #166, #167, #169, #182. Thanks to Dependabot. -o Bump mockito-inline from 3.7.0 to 3.10.0 #188, #207, #230. Thanks to Dependabot. -o Update commons.jacoco.version 0.8.5 to 0.8.7, fixes Java 15 builds and up. Thanks to Gary Gregory. -o Update spotbugs from 4.1.2 to 4.2.2, 4.2.3, #158, #164, #165, #180, #199, #213, #224. Thanks to Dependabot. -o Bump spotbugs-maven-plugin from 4.0.4 to 4.2.3, #161, #172, #223. Thanks to Dependabot. -o Update org.junit-pioneer:junit-pioneer 0.9.0 -> 1.4,1, #159, #162, #170, #189, #191, #210, #229. Thanks to Gary Gregory, Dependabot. -o Update actions/checkout from v2.3.2 to v2.3.4, #156, #168. Thanks to Dependabot. -o Bump actions/setup-java from v1.4.2 to v2 #160. Thanks to Dependabot, Gary Gregory. -o Update maven-surefire-plugin from 2.22.2 to 3.0.0-M5. Thanks to Gary Gregory. -o Minor improvements, #176, 177, #190. Thanks to Arturo Bernal. -o Update commons.japicmp.version 0.14.4 -> 0.15.3. Thanks to Gary Gregory. -o Tiny performance improvement in FileUtils#moveDirectoryToDirectory() #174. Thanks to Michiel Kalkman. -o Bump checkstyle from 8.38 to 8.42 #689, #209, #225. Thanks to Dependabot. -o Bump maven-checkstyle-plugin from 3.1.1 to 3.1.2 #198. Thanks to Dependabot. -o Bump jimfs from 1.1 to 1.2 #183. Thanks to Dependabot. -o Improve performance of IOUtils.contentEquals(InputStream, InputStream). Thanks to XenoAmess, Gary Gregory. -o Improve performance of IOUtils.contentEquals(Reader, Reader). Thanks to XenoAmess, Gary Gregory. -o Bump actions/cache from v2 to v2.1.5 #202, #228. Thanks to Dependabot. -o Bump junit-bom from 5.7.0 to 5.7.2 #200, #232. Thanks to Dependabot. -o Update from Apache Commons Lang 3.11 to 3.12.0. Thanks to Gary Gregory. -o Minor improvements #233. Thanks to Arturo Bernal. -o Simplify Assertions in tests #234. Thanks to Arturo Bernal. +o Bump actions/cache from 2.1.5 to 2.1.6 #238. Thanks to Dependabot. +o Bump junit-pioneer from 1.4.1 to 1.4.2 #240. Thanks to Dependabot. +o Bump checkstyle from 8.42 to 8.43 #241. Thanks to Dependabot. +o Bump mockito-inline from 3.10.0 to 3.11.0 #242. Thanks to Dependabot. Compatibility with 2.6: Binary compatible: Yes. diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 085b9ad..90d82fd 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -46,7 +46,7 @@ The <action> type attribute can be add,update,fix,remove. <body> <!-- The release date is the date RC is cut --> - <release version="2.10.0" date="2021-MM-DD" description="Java 8 required."> + <release version="2.10.0" date="2021-06-10" description="Java 8 required."> <!-- FIX --> <action issue="IO-733" dev="ggregory" type="fix" due-to="Jim Sellers, Gary Gregory"> RegexFileFilter uses the path and file name instead of just the file name. diff --git a/src/site/xdoc/download_io.xml b/src/site/xdoc/download_io.xml index bb6c693..65a4439 100644 --- a/src/site/xdoc/download_io.xml +++ b/src/site/xdoc/download_io.xml @@ -113,32 +113,32 @@ limitations under the License. </p> </subsection> </section> - <section name="Apache Commons IO 2.9.0 (requires Java 8)"> + <section name="Apache Commons IO 2.10.0 (requires Java 8)"> <subsection name="Binaries"> <table> <tr> - <td><a href="[preferred]/commons/io/binaries/commons-io-2.9.0-bin.tar.gz">commons-io-2.9.0-bin.tar.gz</a></td> - <td><a href="https://www.apache.org/dist/commons/io/binaries/commons-io-2.9.0-bin.tar.gz.sha512">sha512</a></td> - <td><a href="https://www.apache.org/dist/commons/io/binaries/commons-io-2.9.0-bin.tar.gz.asc">pgp</a></td> + <td><a href="[preferred]/commons/io/binaries/commons-io-2.10.0-bin.tar.gz">commons-io-2.10.0-bin.tar.gz</a></td> + <td><a href="https://www.apache.org/dist/commons/io/binaries/commons-io-2.10.0-bin.tar.gz.sha512">sha512</a></td> + <td><a href="https://www.apache.org/dist/commons/io/binaries/commons-io-2.10.0-bin.tar.gz.asc">pgp</a></td> </tr> <tr> - <td><a href="[preferred]/commons/io/binaries/commons-io-2.9.0-bin.zip">commons-io-2.9.0-bin.zip</a></td> - <td><a href="https://www.apache.org/dist/commons/io/binaries/commons-io-2.9.0-bin.zip.sha512">sha512</a></td> - <td><a href="https://www.apache.org/dist/commons/io/binaries/commons-io-2.9.0-bin.zip.asc">pgp</a></td> + <td><a href="[preferred]/commons/io/binaries/commons-io-2.10.0-bin.zip">commons-io-2.10.0-bin.zip</a></td> + <td><a href="https://www.apache.org/dist/commons/io/binaries/commons-io-2.10.0-bin.zip.sha512">sha512</a></td> + <td><a href="https://www.apache.org/dist/commons/io/binaries/commons-io-2.10.0-bin.zip.asc">pgp</a></td> </tr> </table> </subsection> <subsection name="Source"> <table> <tr> - <td><a href="[preferred]/commons/io/source/commons-io-2.9.0-src.tar.gz">commons-io-2.9.0-src.tar.gz</a></td> - <td><a href="https://www.apache.org/dist/commons/io/source/commons-io-2.9.0-src.tar.gz.sha512">sha512</a></td> - <td><a href="https://www.apache.org/dist/commons/io/source/commons-io-2.9.0-src.tar.gz.asc">pgp</a></td> + <td><a href="[preferred]/commons/io/source/commons-io-2.10.0-src.tar.gz">commons-io-2.10.0-src.tar.gz</a></td> + <td><a href="https://www.apache.org/dist/commons/io/source/commons-io-2.10.0-src.tar.gz.sha512">sha512</a></td> + <td><a href="https://www.apache.org/dist/commons/io/source/commons-io-2.10.0-src.tar.gz.asc">pgp</a></td> </tr> <tr> - <td><a href="[preferred]/commons/io/source/commons-io-2.9.0-src.zip">commons-io-2.9.0-src.zip</a></td> - <td><a href="https://www.apache.org/dist/commons/io/source/commons-io-2.9.0-src.zip.sha512">sha512</a></td> - <td><a href="https://www.apache.org/dist/commons/io/source/commons-io-2.9.0-src.zip.asc">pgp</a></td> + <td><a href="[preferred]/commons/io/source/commons-io-2.10.0-src.zip">commons-io-2.10.0-src.zip</a></td> + <td><a href="https://www.apache.org/dist/commons/io/source/commons-io-2.10.0-src.zip.sha512">sha512</a></td> + <td><a href="https://www.apache.org/dist/commons/io/source/commons-io-2.10.0-src.zip.asc">pgp</a></td> </tr> </table> </subsection> diff --git a/src/site/xdoc/index.xml b/src/site/xdoc/index.xml index 028c2bf..aef8fdb 100644 --- a/src/site/xdoc/index.xml +++ b/src/site/xdoc/index.xml @@ -85,6 +85,19 @@ There are six main areas included: <!-- ================================================== --> <section name="Releases"> + <subsection name="Commons IO 2.10.0 (requires Java 8)"> + <p> + Commons IO 2.10.0 requires a minimum of Java 8 - + <a href="https://commons.apache.org/io/download_io.cgi">Download now!</a> + </p> + <p> + View the + <a href="changes-report.html">Release Notes</a> + and + <a href="apidocs/index.html">Javadoc API documents</a> + </p> + </subsection> + <subsection name="Commons IO 2.9.0 (requires Java 8)"> <p> Commons IO 2.9.0 requires a minimum of Java 8 - @@ -94,7 +107,7 @@ There are six main areas included: View the <a href="changes-report.html">Release Notes</a> and - <a href="apidocs/index.html">Javadoc API documents</a> + <a href="https://javadoc.io/doc/commons-io/commons-io/2.9.0/index.html">Javadoc API documents</a> </p> </subsection>