17
0

8 Commits

Author SHA256 Message Date
Fridrich Štrba
d812a256ae 2.21.0 2026-02-06 14:23:57 +01:00
1a5703f2c0 Accepting request 1240469 from Java:packages
Upgrade to 2.18.0

OBS-URL: https://build.opensuse.org/request/show/1240469
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/apache-commons-io?expand=0&rev=25
2025-01-28 13:58:24 +00:00
266eb0b485 Upgrade to 2.18.0
OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-commons-io?expand=0&rev=54
2025-01-24 15:22:52 +00:00
0797f7c23d Accepting request 1206090 from Java:packages
sync changes with sle12

OBS-URL: https://build.opensuse.org/request/show/1206090
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/apache-commons-io?expand=0&rev=24
2024-10-08 15:16:35 +00:00
0f71240912 OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-commons-io?expand=0&rev=52 2024-10-07 11:53:26 +00:00
34f131ff2d Accepting request 1205749 from Java:packages
2.17.0

OBS-URL: https://build.opensuse.org/request/show/1205749
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/apache-commons-io?expand=0&rev=23
2024-10-06 15:51:10 +00:00
f539c0005f OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-commons-io?expand=0&rev=50 2024-10-04 19:37:58 +00:00
16d7dc3f47 OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-commons-io?expand=0&rev=49 2024-10-04 19:34:17 +00:00
8 changed files with 10861 additions and 35 deletions

View File

@@ -10,16 +10,20 @@
<property name="project.groupId" value="commons-io"/>
<property name="project.artifactId" value="commons-io"/>
<property name="project.version" value="2.16.1"/>
<property name="project.version" value="2.21.0"/>
<property name="project.name" value="Apache Commons IO"/>
<property name="project.description" value="The Apache Commons IO library
contains utility classes, stream implementations, file filters,
<property name="project.description" value="The Apache Commons IO library
contains utility classes, stream implementations, file filters,
file comparators, endian transformation classes, and much more."/>
<property name="project.organization.name" value="The Apache Software Foundation"/>
<property name="bundle.symbolicName" value="org.apache.commons.io"/>
<property name="bundle.symbolicName" value="org.apache.commons.commons-io"/>
<property name="bundle.version" value="${project.version}"/>
<property name="module.name" value="org.apache.commons.io"/>
<property name="spec.version" value="2.21"/>
<property name="compiler.release" value="8"/>
<property name="compiler.source" value="1.${compiler.release}"/>
<property name="compiler.target" value="${compiler.source}"/>
@@ -32,13 +36,6 @@ file comparators, endian transformation classes, and much more."/>
<property name="build.resourceDir.1" value="."/>
<property name="reporting.outputDirectory" value="${build.dir}/site"/>
<!-- ====================================================================== -->
<!-- Defining classpaths -->
<!-- ====================================================================== -->
<path id="build.classpath"/>
<path id="build.test.classpath"/>
<!-- ====================================================================== -->
<!-- Cleaning up target -->
<!-- ====================================================================== -->
@@ -67,7 +64,6 @@ file comparators, endian transformation classes, and much more."/>
<src>
<pathelement location="${build.srcDir}"/>
</src>
<classpath refid="build.classpath"/>
</javac>
<mkdir dir="${build.outputDir}/META-INF"/>
<copy todir="${build.outputDir}/META-INF">
@@ -117,7 +113,7 @@ file comparators, endian transformation classes, and much more."/>
basedir="${build.outputDir}"
excludes="**/package.html">
<manifest>
<attribute name="Automatic-Module-Name" value="${bundle.symbolicName}"/>
<attribute name="Automatic-Module-Name" value="${module.name}"/>
<attribute name="Bundle-Description" value="${project.description}"/>
<attribute name="Bundle-DocURL" value="http://commons.apache.org/proper/commons-io/"/>
<attribute name="Bundle-License" value="https://www.apache.org/licenses/LICENSE-2.0.txt"/>
@@ -126,12 +122,19 @@ file comparators, endian transformation classes, and much more."/>
<attribute name="Bundle-SymbolicName" value="${bundle.symbolicName}"/>
<attribute name="Bundle-Vendor" value="${project.organization.name}"/>
<attribute name="Bundle-Version" value="${bundle.version}"/>
<attribute name="Export-Package" value="org.apache.commons.io;version=&quot;1.4.9999&quot;,org.apache.commons.io.comparator;version=&quot;1.4.9999&quot;,org.apache.commons.io.filefilter;version=&quot;1.4.9999&quot;,org.apache.commons.io.input;version=&quot;1.4.9999&quot;,org.apache.commons.io.output;version=&quot;1.4.9999&quot;,org.apache.commons.io.monitor;version=&quot;${project.version}&quot;,org.apache.commons.io.serialization;version=&quot;${project.version}&quot;,org.apache.commons.io;version=&quot;${project.version}&quot;,org.apache.commons.io.comparator;version=&quot;${project.version}&quot;,org.apache.commons.io.filefilter;version=&quot;${project.version}&quot;,org.apache.commons.io.input;version=&quot;${project.version}&quot;,org.apache.commons.io.output;version=&quot;${project.version}&quot;"/>
<attribute name="Include-Resource" value="META-INF/NOTICE.txt=NOTICE.txt,META-INF/LICENSE.txt=LICENSE.txt"/>
<attribute name="Export-Package" value="org.apache.commons.io.build;version=&quot;${project.version}&quot;;uses:=&quot;org.apache.commons.io,org.apache.commons.io.function&quot;,org.apache.commons.io.channels;version=&quot;${project.version}&quot;,org.apache.commons.io.charset;version=&quot;${project.version}&quot;,org.apache.commons.io.comparator;version=&quot;1.4.9999&quot;;uses:=&quot;org.apache.commons.io&quot;,org.apache.commons.io.comparator;version=&quot;${project.version}&quot;,org.apache.commons.io.file.attribute;version=&quot;${project.version}&quot;,org.apache.commons.io.file.spi;version=&quot;${project.version}&quot;,org.apache.commons.io.file;version=&quot;${project.version}&quot;;uses:=&quot;org.apache.commons.io.build,org.apache.commons.io.function&quot;,org.apache.commons.io.filefilter;version=&quot;1.4.9999&quot;;uses:=&quot;org.apache.commons.io,org.apache.commons.io.build,org.apache.commons.io.file&quot;,org.apache.commons.io.filefilter;version=&quot;${project.version}&quot;,org.apache.commons.io.function;version=&quot;${project.version}&quot;;uses:=&quot;org.apache.commons.io&quot;,org.apache.commons.io.input.buffer;version=&quot;${project.version}&quot;,org.apache.commons.io.input;version=&quot;1.4.9999&quot;;uses:=&quot;org.apache.commons.io,org.apache.commons.io.build,org.apache.commons.io.function,org.apache.commons.io.output&quot;,org.apache.commons.io.input;version=&quot;${project.version}&quot;,org.apache.commons.io.monitor;version=&quot;${project.version}&quot;;uses:=&quot;org.apache.commons.io,org.apache.commons.io.build&quot;,org.apache.commons.io.output;version=&quot;1.4.9999&quot;;uses:=&quot;org.apache.commons.io.build,org.apache.commons.io.function,org.apache.commons.io.input&quot;,org.apache.commons.io.output;version=&quot;${project.version}&quot;,org.apache.commons.io.serialization;version=&quot;${project.version}&quot;;uses:=&quot;org.apache.commons.io.build&quot;,org.apache.commons.io;version=&quot;1.4.9999&quot;;uses:=&quot;org.apache.commons.io.filefilter,org.apache.commons.io.function,org.apache.commons.io.input&quot;,org.apache.commons.io;version=&quot;${project.version}&quot;"/>
<attribute name="Implementation-Title" value="${project.name}"/>
<attribute name="Implementation-Vendor" value="${project.organization.name}"/>
<attribute name="Implementation-Version" value="2.21.0"/>
<attribute name="Import-Package" value="java.io,java.lang,java.lang.invoke,java.lang.ref,java.lang.reflect,java.math,java.net,java.nio,java.nio.channels,java.nio.charset,java.nio.file,java.nio.file.attribute,java.nio.file.spi,java.security,java.text,java.time,java.time.chrono,java.time.temporal,java.util,java.util.concurrent,java.util.concurrent.atomic,java.util.concurrent.locks,java.util.function,java.util.regex,java.util.stream,java.util.zip,sun.misc;resolution:=optional,sun.nio.ch;resolution:=optional"/>
<attribute name="Include-Resource" value="META-INF/LICENSE.txt=LICENSE.txt,META-INF/NOTICE.txt=NOTICE.txt"/>
<attribute name="JavaPackages-ArtifactId" value="${project.artifactId}"/>
<attribute name="JavaPackages-GroupId" value="${project.groupId}"/>
<attribute name="JavaPackages-Version" value="${project.version}"/>
<attribute name="Require-Capability" value="osgi.ee;filter:=&quot;(&amp;(osgi.ee=JavaSE)(version=${compiler.target}))&quot;"/>
<attribute name="Specification-Title" value="${project.name}"/>
<attribute name="Specification-Vendor" value="${project.organization.name}"/>
<attribute name="Specification-Version" value="${spec.version}"/>
</manifest>
</jar>
</target>

View File

@@ -1,3 +1,419 @@
-------------------------------------------------------------------
Fri Feb 6 12:48:41 UTC 2026 - Fridrich Strba <fstrba@suse.com>
- Upgrade to 2.21.0
* New features
+ FileUtils#byteCountToDisplaySize() supports Zettabyte,
Yottabyte, Ronnabyte and Quettabyte
+ Add org.apache.commons.io.FileUtils.ONE_RB
+ Add org.apache.commons.io.FileUtils.ONE_QB
+ Add org.apache.commons.io.output.ProxyOutputStream
.writeRepeat(byte[], int, int, long)
+ Add org.apache.commons.io.output.ProxyOutputStream
.writeRepeat(byte[], long)
+ Add org.apache.commons.io.output.ProxyOutputStream
.writeRepeat(int, long)
+ Add length unit support in FileSystem limits
+ Add IOUtils.toByteArray(InputStream, int, int) for safer
chunked reading with size validation
+ Add org.apache.commons.io.file.PathUtils.getPath(String,
String)
+ Add org.apache.commons.io.channels
.ByteArraySeekableByteChannel
+ Add IOIterable.asIterable()
+ Add NIO channel support to 'AbstractStreamBuilder'
+ Add CloseShieldChannel to close-shielded NIO Channels
+ Added IOUtils.checkFromIndexSize as a Java 8 backport of
Objects.checkFromIndexSize
* Fixed Bugs
+ When testing on Java 21 and up, enable
-XX:+EnableDynamicAgentLoading
+ When testing on Java 24 and up, don't fail
FileUtilsListFilesTest for a different behavior in the JRE
+ ValidatingObjectInputStream does not validate dynamic proxy
interfaces
+ BoundedInputStream.getRemaining() now reports Long.MAX_VALUE
instead of 0 when no limit is set
+ BoundedInputStream.available() correctly accounts for the
maximum read limit
+ Deprecate IOUtils.readFully(InputStream, int) in favor of
toByteArray(InputStream, int)
+ IOUtils.toByteArray(InputStream) now throws IOException on
byte array overflow
+ Javadoc general improvements
+ IOUtils.toByteArray() now throws EOFException when not enough
data is available
+ Fix IOUtils.skip() usage in concurrent scenarios
+ [javadoc] Fix XmlStreamReader Javadoc to indicate the correct
class that is built
* Changes
+ Bump org.apache.commons:commons-parent from 85 to 91
+ [test] Bump commons-codec:commons-codec from 1.18.0 to 1.19.0
+ [test] Bump commons.bytebuddy.version from 1.17.6 to 1.17.8
+ [test] Bump org.apache.commons:commons-lang3 from 3.18.0 to
3.19.0
* Removed
+ Inline private constant field
ProxyInputStream.exceptionHandler
-------------------------------------------------------------------
Fri Feb 6 12:48:07 UTC 2026 - Fridrich Strba <fstrba@suse.com>
- Upgrade to 2.20.0
* New features
+ Add org.apache.commons.io.file.CountingPathVisitor
.accept(Path, BasicFileAttributes)
+ Add org.apache.commons.io.Charsets.isAlias(Charset, String)
+ Add org.apache.commons.io.Charsets.isUTF8(Charset)
+ Add org.apache.commons.io.Charsets.toCharsetDefault(String,
Charset)
+ Add Tailer ignoreTouch option
* Fixed Bugs
+ [javadoc] Rename parameter of ProxyOutputStream.write(int)
+ CopyDirectoryVisitor ignores fileFilter
+ org.apache.commons.io.build.AbstractOrigin.getReader(Charset)
now maps a null Charset to the default Charset
+ org.apache.commons.io.build.AbstractOrigin
.AbstractRandomAccessFileOrigin.getReader(Charset) now maps a
null Charset to the default Charset
+ org.apache.commons.io.build.AbstractOrigin.ByeArrayOrigin
.getReader(Charset) now maps a null Charset to the default
Charset
+ org.apache.commons.io.build.AbstractOrigin.InputStreamOrigin
.getReader(Charset) now maps a null Charset to the default
Charset
+ org.apache.commons.io.build.AbstractOrigin.getWriter(Charset)
now maps a null Charset to the default Charset
+ org.apache.commons.io.build.AbstractOrigin
.AbstractRandomAccessFileOrigin.getWriter(Charset) now maps a
null Charset to the default Charset
+ org.apache.commons.io.build.AbstractOrigin.OutputStreamOrigin
.getWriter(Charset) now maps a null Charset to the default
Charset
+ FileUtils.readLines(File, Charset) now maps a null Charset to
the default Charset
+ Fix SpotBugs [ERROR] Medium: Shared primitive variable
"atSlashCr" in one thread may not yield the value of the most
recent write from another thread
[org.apache.commons.io.input.WindowsLineEndingInputStream,
org.apache.commons.io.input.WindowsLineEndingInputStream] At
WindowsLineEndingInputStream.java:[line 77] Another occurrence
at WindowsLineEndingInputStream.java:[line 81]
AT_STALE_THREAD_WRITE_OF_PRIMITIVE
+ Fix SpotBugs [ERROR] Medium: Shared primitive variable
"atSlashCr" in one thread may not yield the value of the most
recent write from another thread
[org.apache.commons.io.input.WindowsLineEndingInputStream] At
WindowsLineEndingInputStream.java:[line 112]
AT_STALE_THREAD_WRITE_OF_PRIMITIVE
+ Fix SpotBugs [ERROR] Medium: Shared primitive variable
"atSlashLf" in one thread may not yield the value of the most
recent write from another thread
[org.apache.commons.io.input.WindowsLineEndingInputStream] At
WindowsLineEndingInputStream.java:[line 113]
AT_STALE_THREAD_WRITE_OF_PRIMITIVE
+ Fix SpotBugs [ERROR] Medium: Shared primitive variable
"atSlashLf" in one thread may not yield the value of the most
recent write from another thread
[org.apache.commons.io.input.UnixLineEndingInputStream] At
UnixLineEndingInputStream.java:[line 75]
AT_STALE_THREAD_WRITE_OF_PRIMITIVE
+ Fix SpotBugs [ERROR] Medium: Shared primitive variable
"atEos" in one thread may not yield the value of the most
recent write from another thread
[org.apache.commons.io.input.UnixLineEndingInputStream] At
UnixLineEndingInputStream.java:[line 120]
AT_STALE_THREAD_WRITE_OF_PRIMITIVE
+ Fix SpotBugs [ERROR] Medium: Shared primitive variable
"atSlashCr" in one thread may not yield the value of the most
recent write from another thread
[org.apache.commons.io.input.UnixLineEndingInputStream] At
UnixLineEndingInputStream.java:[line 124]
AT_STALE_THREAD_WRITE_OF_PRIMITIVE
+ Fix SpotBugs [ERROR] Medium: Shared primitive variable
"atSlashLf" in one thread may not yield the value of the most
recent write from another thread
[org.apache.commons.io.input.UnixLineEndingInputStream] At
UnixLineEndingInputStream.java:[line 125]
AT_STALE_THREAD_WRITE_OF_PRIMITIVE
+ Fix SpotBugs [ERROR] Medium: Shared primitive variable
"closed" in one thread may not yield the value of the most
recent write from another thread
[org.apache.commons.io.input.ProxyInputStream] At
ProxyInputStream.java:[line 233]
AT_STALE_THREAD_WRITE_OF_PRIMITIVE
+ Fix SpotBugs [ERROR] Medium: Shared primitive variable
"propagateClose" in one thread may not yield the value of the
most recent write from another thread
[org.apache.commons.io.input.BoundedInputStream] At
BoundedInputStream.java:[line 555]
AT_STALE_THREAD_WRITE_OF_PRIMITIVE
+ QueueInputStream reads all but the first byte without waiting
+ Javadoc fixes and improvements
+ Avoid NPE in org.apache.commons.io.filefilter.WildcardFilter
.accept(File)
+ FileUtils.forceDelete can delete a broken symlink again
+ Fix infinite loop in AbstractByteArrayOutputStream
* Changes
+ Bump commons.bytebuddy.version from 1.17.5 to 1.17.6
+ Bump org.apache.commons:commons-parent from 81 to 85
+ Bump org.apache.commons:commons-lang3 from 3.17.0 to 3.18.0
-------------------------------------------------------------------
Fri Feb 6 12:46:24 UTC 2026 - Fridrich Strba <fstrba@suse.com>
- Upgrade to 2.19.0
* New features
+ Add ThrottledInputStream.Builder.setMaxBytes(long,
ChronoUnit)
+ Add IOIterable
+ ReversedLinesFileReader implements IOIterable<String>
+ Add AbstractByteArrayOutputStream.write(CharSequence,
Charset)
+ Add AbstractByteArrayOutputStream.write(byte[])
+ Add RandomAccessFileOutputStream.getRandomAccessFile()
+ Add ProxyInputStream.setReference(InputStream), was
package-private setIn(InputStream)
+ Add ProxyOutputStream.setReference(OutputStream)
+ Add RandomAccessFileInputStream.copy(long, long,
OutputStream)
+ Add ProxyOutputStream.Builder
+ Add ByteOrderMark.matches(int[])
+ Add BrokenOutputStream.BrokenOutputStream(Function<String>,
Throwable>) and deprecate Supplier<String> constructor
+ Add IOBooleanSupplier
+ Add Uncheck.getAsBoolean(IOBooleanSupplier)
+ Add FileChannels.contentEquals(SeekableByteChannel,
SeekableByteChannel, int)
+ Add FileChannels.contentEquals(ReadableByteChannel,
ReadableByteChannel, int)
+ Add SimplePathVisitor.AbstractBuilder
+ Add CountingPathVisitor.AbstractBuilder and
CountingPathVisitor.Builder
+ Add AccumulatorPathVisitor.Builder and builder()
+ Add PathUtils.contentEquals(FileSystem, FileSystem)
* Fixed Bugs
+ Deprecate constructor Counters.Counters() to be private in
4.0
+ Deprecate constructor Charsets.Charsets() to be private in
4.0
+ Pick up maven-antrun-plugin version from parent POM
org.apache:apache
+ Javadoc is missing its Overview page
+ Remove -nouses directive from maven-bundle-plugin. OSGi
package imports now state 'uses' definitions for package
imports, this doesn't affect JPMS (from
org.apache.commons:commons-parent:80)
+ Deprecate DeferredFileOutputStream.getStream() in favor of
getOutputStream()
+ Improve Javadoc for a BoundedInputStream builder() throwing
IOException
+ Improve Javadoc for all implementations of
AbstractOriginSupplier#get()
+ The Consumer to IOUtils.closeQuietly(Closeable, Consumer) now
accepts Exception, not just IOException
+ The Consumer to IOUtils.close(Closeable, IOConsumer) now
accepts wrapped Exception, not just IOException
+ Use Uncheck.getAsBoolean(IOBooleanSupplier) to avoid boxing
and unboxing of boolean values
+ Avoid unnecessary boxing and unboxing of long values in
FileUtils.sizeOf(File)
+ Avoid unnecessary boxing and unboxing of int values in
UncheckedBufferedReader.read()
+ Avoid unnecessary boxing and unboxing of int values in
UncheckedFilterInputStream.available() and read()
+ Avoid unnecessary boxing and unboxing of int values in
UncheckedFilterReader.read()
+ FileChannels.contentEquals(FileChannel, FileChannel, int) can
return false when comparing a non-blocking channel
+ Deprecate FileChannels.contentEquals(FileChannel, FileChannel,
int) in favor of FileChannels
.contentEquals(SeekableByteChannel, SeekableByteChannel, int)
+ Improve performance of IOUtils.contentEquals(InputStream,
InputStream) by about 13%
+ PathUtils.copyFileToDirectory() across file systems
+ IOUtils.contentEquals is incorrect when InputStream.available
under-reports
+ java.lang.ArithmeticException: long overflow java.lang.Math
.addExact(Math.java:932) at org.apache.commons.io.file
.attribute.FileTimes.ntfsTimeToFileTime(FileTimes.java:164).
See also https://issues.apache.org/jira/browse/MDEP-978
+ java.lang.ArithmeticException: long overflow java.lang.Math
.addExact(Math.java:932) at org.apache.commons.io.file
.attribute.FileTimes.ntfsTimeToDate(long)
+ FileTimes.toNtfsTime(*) methods can overflow result values
+ Fix Javadoc for ChunkedOutputStream.Builder
+ General Javadoc improvements
+ Calling QueueInputStream.QueueInputStream(null) maps to the
same kind of default blocking queue as
QueueInputStream.Builder.setBlockingQueue(null)
+ CopyDirectoryVisitor creates incorrect file names when
copying between different file systems that use different file
system separators ("/" versus "\"); fixes
PathUtils.copyDirectory(Path, Path, CopyOption...)
+ ThreadUtils.sleep(Duration) should handle the underlying OS
time changing
* Changes
+ Bump commons.bytebuddy.version from 1.15.10 to 1.17.5
+ Bump commons-codec:commons-codec from 1.17.1 to 1.18.0
+ Bump org.apache.commons:commons-parent from 78 to 81
-------------------------------------------------------------------
Fri Jan 24 15:08:26 UTC 2025 - Gus Kenion <gus.kenion@suse.com>
- Upgrade to 2.18.0
* New features
+ Add @FunctionalInterface to ClassNameMatcher.
+ Add ValidatingObjectInputStream.Builder and
ValidatingObjectInputStream.builder().
+ Add a "Safe Deserialization" section to the User Guide for
the site.
+ Add IORandomAccessFile.
+ Add RandomAccessFileMode.io(String).
+ Add FileAlterationObserver.Builder() and deprecate most
constructors.
+ Add IOUtils.readLines(CharSequence).
+ Add ValidatingObjectInputStream.ObjectStreamClassPredicate to
allow configuration reuse.
+ Add RandomAccessFileMode.accept(Path,
IOConsumer<RandomAccessFile>).
+ Add RandomAccessFileMode.apply(Path,
IOFunction<RandomAccessFile>, T).
+ Add IOIntConsumer.
+ Add ProxyInputStream.AbstractBuilder. Supports setting a
consumer for ProxyInputStream.afterRead(int).
+ Add support to AutoCloseInputStream for setting a consumer
for ProxyInputStream.afterRead(int).
+ Add support to BOMInputStream for setting a consumer for
ProxyInputStream.afterRead(int).
+ Add support to BoundedInputStream for setting a consumer for
ProxyInputStream.afterRead(int).
+ Add support to BoundedInputStream for setting a consumer for
BoundedInputStream.onMaxLength(long, long).
+ Add support to ChecksumInputStream for setting a consumer for
ProxyInputStream.afterRead(int).
+ Add support to ThrottledInputStream for setting a consumer
for ProxyInputStream.afterRead(int).
+ Add support to ObservableInputStream for setting a consumer
for ProxyInputStream.afterRead(int).
+ Add support to MessageDigestCalculatingInputStream for
setting a consumer for ProxyInputStream.afterRead(int).
+ Add support to MessageDigestInputStream for setting a
consumer for ProxyInputStream.afterRead(int).
* Fixed Bugs
+ Clean ups in unit tests.
+ Fix some Javadoc issues.
+ RandomAccessFileMode.toString() is more helpful for debugging
when it inherits from Enum.
+ Fix implicit narrowing conversion in compound assignment in
UnsynchronizedBufferedReader.skip(long).
+ IO-860: Missing reserved file names in FileSystem.WINDOWS
(superscript digits for COM and LPT).
+ IO-856: FileUtils.listFiles(final File, String[], boolean)
can throw NoSuchFileException #697, #699.
+ IO-859: FileUtils.forceDelete on non-existent file on Windows
throws IOException rather than FileNotFoundException.
+ Use Unicode escapes for superscript characters. #701.
+ IO-863: Recent incompatible change to FileUtils.listFiles re
extensions, see also IO-856.
+ IO-857: Javadoc: Update details for PathUtils "clean"
behavior.
* Changes
+ Bump org.apache.commons:commons-parent from 74 to 78 #670,
#676, #679, #688.
+ Bump commons.bytebuddy.version from 1.15.1 to 1.15.10 #672,
#673, #685, #686, #694, #696, #698.
+ Update AbstractStreamBuilder getters from protected to
public.
-------------------------------------------------------------------
Fri Oct 4 19:23:58 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Upgrade to 2.17.0
* New features:
+ Add IOIterator.adapt(Iterable)
+ Add getInputStream() for 'https' and 'http' in URIOrigin
#630. Fixes IO-831
+ Add IOSupplier.getUnchecked()
+ Add CloseShieldInputStream.systemIn(InputStream)
+ Add NullInputStream.init()
+ Add AbstractInputStream and refactor duplicate code
+ Add UnsynchronizedReader
+ Add UnsynchronizedBufferedReader
* Fixes:
+ FileUtilsWaitForTest does not test anything useful.
Fixes IO-858.
+ Add missing unit tests
+ FileUtils.lastModifiedFileTime(File) calls
Objects.requireNonNull() on the wrong object
+ PathUtils.deleteOnExit(Path) calls Objects.requireNonNull()
on the wrong object
+ Deprecate LineIterator.nextLine() in favor of next()
+ Fix PMD UnnecessaryFullyQualifiedName
+ Add test for CircularByteBuffer clear() #620
+ PathUtils.isPosix(Path, LinkOption...) should return false on
null input
+ AutoCloseInputStream(InputStream) uses
ClosedInputStream.INSTANCE when its input is null
+ Avoid NullPointerException in ProxyInputStream.available()
when the underlying input stream is null
+ Avoid NullPointerException in ProxyInputStream.markSupported()
when the underlying input stream is null
+ Avoid NullPointerException in ProxyInputStream.mark(int) when
the underlying input stream is null
+ BufferedFileChannelInputStream.available() returns 0 before
any reads
+ BufferedFileChannelInputStream.available() should return 0
instead of -1 at the end of the stream
+ BufferedFileChannelInputStream.available() should return 0
when the stream is closed instead of throwing an exception
+ CharSequenceInputStream.available() should return 0 after the
stream is closed
+ BoundedInputStream.available() should return 0 when the
stream is closed
+ CircularInputStream.available() should return 0 when the
stream is closed
+ InfiniteCircularInputStream.available() should return 0 when
the stream is closed
+ ChecksumInputStream(InputStream, Checksum, long, long) should
fail-fast on null Checksum input
+ Deprecate NullInputStream.INSTANCE in favor of constructors
+ NullInputStream.available() should return 0 after the stream
is closed
+ MemoryMappedFileInputStream.available() should return 0 after
the stream is closed
+ RandomAccessFileInputStream.available() should return 0 after
the stream is closed
+ ReaderInputStream.available() should return 0 after the
stream is closed
+ AutoCloseInputStream does not call handleIOException() on
close() when the proxied stream throws an IOException
+ BoundedInputStream does not call handleIOException() on
close() when the proxied stream throws an IOException
+ NullInputStream.read(*) should throw IOException when it is
closed
+ NullInputStream.read(byte[]) should return 0 when the input
byte array in length 0
+ NullInputStream.read(byte[], int, int) should return 0 when
the input byte array in length 0 or requested length is 0
+ MarkShieldInputStream.read(*) should throw IOException when
it is closed
+ Replace deprecated constant FileFileFilter.FILE in Javadoc
#657
+ Pick up exec-maven-plugin version from parent POM
* Updates:
+ Bump tests commons.bytebuddy.version from 1.14.13 to 1.15.1
#615, #621, #631, #635, #642, #658, #663, #665
+ Bump tests commons-codec:commons-codec from 1.16.1 to 1.17.1
#644
+ Bump org.codehaus.mojo:exec-maven-plugin from 3.2.0 to 3.4.1
#632, #652, #659
+ Bump org.apache.commons:commons-parent from 69 to 74 #628,
#637, #649, #661, #664
+ Bump org.apache.commons:commons-lang3 from 3.14.0 to 3.17.0
#645, #653, #666
-------------------------------------------------------------------
Mon Apr 29 13:12:59 UTC 2024 - Gus Kenion <gus.kenion@suse.com>
@@ -328,6 +744,8 @@ Wed Oct 18 12:52:58 UTC 2023 - David Anes <david.anes@suse.com>
- Update to 2.14.0:
* Lots of new features, fixes and updates.
* https://commons.apache.org/proper/commons-io/changes-report.html#a2.14.0
* Fixes bsc#1231298, CVE-2024-47554: untrusted input to XmlStreamReader
can lead to uncontrolled resource consumption
-------------------------------------------------------------------
Tue Apr 19 15:34:30 UTC 2022 - David Anes <david.anes@suse.com>

10406
apache-commons-io.keyring Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
#
# spec file for package apache-commons-io
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
%define base_name io
%define short_name commons-%{base_name}
Name: apache-%{short_name}
Version: 2.16.1
Version: 2.21.0
Release: 0
Summary: Utilities to assist with developing IO functionality
License: Apache-2.0
@@ -28,6 +28,7 @@ URL: https://commons.apache.org/%{base_name}
Source0: https://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
Source1: https://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz.asc
Source2: %{name}-build.xml
Source100: https://downloads.apache.org/commons/KEYS#/%{name}.keyring
BuildRequires: ant >= 1.6
BuildRequires: fdupes
BuildRequires: java-devel >= 1.8
@@ -54,9 +55,7 @@ This package provides %{summary}.
cp %{SOURCE2} build.xml
%build
%{ant} \
-Dcompiler.source=1.8 \
jar javadoc
ant jar javadoc
%install
# jars

Binary file not shown.

View File

@@ -1,11 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iQEzBAABCgAdFiEELbTx7w+nYezE6pNchv3H4qESYssFAmYPUwsACgkQhv3H4qES
Ysv5oQf/YZinFfV1MVn3FYenDNLq49p88JWf596c+oCHRTKxvj94F6hW+Ol9p2P/
lSbRGtyNE+kHZYXIk0U8/AtMjDpKwcKJrLdKg4jcK30QvFmidLgad45jDoyDcvsK
rIsReOVPAou253eIJILgKLiOvMPtwC9/0tfYmApX11Xp0OyJCO9MqI8aFkXwMQzN
xLwJ0ZthmM5oA524UR8rs0E03e/HWmeWMDwwDlnztjifqKG6ap8oe8MicDvY4FVR
p75IxT85rg0jv9MTkb1VPE4WA+WRc7PWxUVuinfTxXCTlkUumQmMqxxOE6nVPPSd
C+Qb4bNTVQgA9n6qCahFia292rjCSQ==
=z2kg
-----END PGP SIGNATURE-----

BIN
commons-io-2.21.0-src.tar.gz LFS Normal file

Binary file not shown.

View File

@@ -0,0 +1,11 @@
-----BEGIN PGP SIGNATURE-----
iQEzBAABCgAdFiEELbTx7w+nYezE6pNchv3H4qESYssFAmkKYa0ACgkQhv3H4qES
YsvkdAf+PLhq9xoLyKDxMVYZf+mZg+4cdD0+iJm74CdhGPm6SYJytQ7UYEn8FXYN
VEbWddB9O6y3Vh4Zal4IQKAmztCwNiMzrtvENaGozyRN3H8ENEMMu6NU1LxxJTTE
IKPQfCushQxvmmSBdb5TVp58LyER587Batad8QR2DZIxAqnDyRYqzuPD7LpK4qDW
tBkLBYiyo8MtvIO3oTml7QnJc1qpP/ft1VpDC19BLT1GcCnB84PkdgokocgQwbsJ
EJq8URYI+wiSaD64aYH5KTRXZzYdS4GjqM/pd15DKEwl9GFzl03e7huCjRB3r8Qi
YGsOPWv/5Ow0wnlWgWxkzdHGuhWi3w==
=OFkH
-----END PGP SIGNATURE-----