Skip to content

Commit 6323681

Browse files
author
Niall Pemberton
committed
Update docs and release notes for IO 1.4
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@611375 13f79535-47bb-0310-9956-ffa450edef68
1 parent 660b89f commit 6323681

4 files changed

Lines changed: 123 additions & 23 deletions

File tree

RELEASE-NOTES.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Classes in this package are considered to be so standard and of such high
1212
reuse as to justify existence in java.io.
1313

1414
Commons IO contains utility classes, stream implementations, file filters,
15-
and endian transformation classes.
15+
file comparators and endian transformation classes.
1616

1717

1818
Compatibility with 1.3.2
@@ -30,6 +30,11 @@ It has been built with the JDK source and target options set to JDK 1.3 and, exc
3030
those implementations, can be used with JDK 1.3 (see IO IO-127).
3131

3232

33+
Deprecations from 1.3.2
34+
-----------------------
35+
- FileCleaner deprecated in favour of FileCleaningTracker [see IO-116]
36+
37+
3338
Bug fixes from 1.3.2
3439
--------------------
3540
- FileUtils
@@ -42,6 +47,7 @@ Bug fixes from 1.3.2
4247
- HexDump
4348
- HexDump's use of static StringBuffers isn't thread-safe [IO-136]
4449

50+
4551
Enhancements from 1.3.2
4652
-----------------------
4753
- FileUtils
@@ -82,10 +88,10 @@ Enhancements from 1.3.2
8288
- Add Singleton Constants to several stream classes [IO-143]
8389

8490
- PrefixFileFilter [IO-126]
85-
- Add faciltiy to specify case sensitivty on prefix matching
91+
- Add faciltiy to specify case sensitivity on prefix matching
8692

8793
- SuffixFileFilter [IO-126]
88-
- Add faciltiy to specify case sensitivty on suffix matching
94+
- Add faciltiy to specify case sensitivity on suffix matching
8995

9096
- RegexFileFilter [IO-74]
9197
- Add new regular expression file filter implementation

xdocs/building.xml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,35 @@ limitations under the License.
2424
<!-- ================================================== -->
2525
<section name="Overview">
2626
<p>
27-
Commons IO uses <a href="http://maven.apache.org">Maven</a> or
27+
Commons IO uses <a href="http://maven.apache.org/maven-1.x/">Maven 1</a>,
28+
<a href="http://maven.apache.org">Maven 2</a> or
2829
<a href="http://ant.apache.org">Ant</a> as a build system.
2930
</p>
3031
<p>
3132
You may also be interested in the upgrade notes:<br />
33+
Upgrade <a href="upgradeto1_4.html">from 1.3.2 to 1.4</a><br />
3234
Upgrade <a href="upgradeto1_3_2.html">from 1.3, or 1.3.1 to 1.3.2</a><br />
3335
Upgrade <a href="upgradeto1_3_1.html">from 1.3 to 1.3.1</a><br />
3436
Upgrade <a href="upgradeto1_3.html">from 1.2 to 1.3</a><br />
3537
Upgrade <a href="upgradeto1_2.html">from 1.1 to 1.2</a><br />
3638
Upgrade <a href="upgradeto1_1.html">from 1.0 to 1.1</a><br />
3739
</p>
3840
</section>
41+
<section name="Maven 2 Goals">
42+
<p>
43+
The following <strong><i>Maven 2</i></strong> commands can be used to build validator:
44+
</p>
45+
<ul>
46+
<li><code>mvn clean</code> - clean up</li>
47+
<li><code>mvn test</code> - compile and run the unit tests</li>
48+
<li><code>mvn site</code> - create io documentation</li>
49+
<li><code>mvn package</code> - build the jar</li>
50+
<li><code>mvn install</code> - build the jar and install in local maven repository</li>
51+
<li><code>mvn site assembly:assembly</code> - Create the source and binary distributions</li>
52+
</ul>
53+
</section>
3954
<!-- ================================================== -->
40-
<section name="Maven Goals">
55+
<section name="Maven 1 Goals">
4156
<p>
4257
To build a jar file, change into IO's root directory and run "maven jar".
4358
The result will be in the "target" subdirectory.

xdocs/index.xml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ limitations under the License.
2727
Commons IO is a library of utilities to assist with developing IO functionality.
2828
</p>
2929
<p>
30-
There are three main areas included:
30+
There are four main areas included:
3131
<ul>
3232
<li>Utility classes - with static methods to perform common tasks</li>
3333
<li>Filters - various implementations of file filters</li>
34+
<li>Comparators - various implementations of <code>java.util.Comparator</code> for files</li>
3435
<li>Streams - useful stream, reader and writer implementations</li>
3536
</ul>
3637
</p>
@@ -46,7 +47,8 @@ and various <a href="project-reports.html">project reports</a>.
4647
The JavaDoc API documents are available online:
4748
</p>
4849
<ul>
49-
<li>The <a href="api-release/index.html">current release 1.3.2</a></li>
50+
<li>The <a href="api-release/index.html">current release 1.4</a></li>
51+
<li>The <a href="api-1.3.2/index.html">previous version 1.3.2</a></li>
5052
<li>The <a href="api-1.3.1/index.html">previous version 1.3.1</a></li>
5153
<li>The <a href="api-1.3/index.html">previous version 1.3</a></li>
5254
<li>The <a href="api-1.2/index.html">previous version 1.2</a></li>
@@ -61,9 +63,9 @@ The <a href="cvs-usage.html">subversion repository</a> can be
6163
<!-- ================================================== -->
6264
<section name="Releases">
6365
<p>
64-
The latest version is v1.3.2. -
66+
The latest version is v1.4. -
6567
<a href="http://commons.apache.org/downloads/download_io.cgi">Download now!</a><br />
66-
The <a href="upgradeto1_3_2.html">upgrade notes</a> are also available.
68+
The <a href="upgradeto1_4.html">upgrade notes</a> are also available.
6769

6870
</p>
6971
<p>

xdocs/upgradeto1_4.xml

Lines changed: 91 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,46 +17,123 @@ limitations under the License.
1717
-->
1818
<document>
1919
<properties>
20-
<title>Upgrade from 1.3 to 1.4</title>
20+
<title>Upgrade from 1.3.2 to 1.4</title>
2121
<author email="dev@commons.apache.org">Commons Documentation Team</author>
2222
</properties>
2323
<body>
2424

2525
<section name="Upgrade">
2626
<p>
2727
These are the release notes and advice for upgrading Commons-IO from
28-
version 1.3 to version 1.4.
28+
version 1.3.2 to version 1.4.
2929
<source>
3030
Commons IO is a package of Java utility classes for java.io's hierarchy.
3131
Classes in this package are considered to be so standard and of such high
3232
reuse as to justify existence in java.io.
3333

3434
Commons IO contains utility classes, stream implementations, file filters,
35-
and endian transformation classes.
35+
file comparators and endian transformation classes.
3636

3737

38-
Compatibility with 1.3
39-
----------------------
38+
Compatibility with 1.3.2
39+
------------------------
4040
Binary compatible - Yes
4141

4242
Source compatible - Yes
4343

4444
Semantic compatible - Yes
4545
Check the bug fixes section for semantic bug fixes
4646

47+
Commons IO 1.4 introduces four new implementations which depend on JDK 1.4 features
48+
(CharSequenceReader, FileWriterWithEncoding, IOExceptionWithCause and RegexFileFilter).
49+
It has been built with the JDK source and target options set to JDK 1.3 and, except for
50+
those implementations, can be used with JDK 1.3 (see IO IO-127).
4751

48-
Deprecations from 1.3
49-
---------------------
50-
- FileCleaner deprecated, replaced by FileCleaningTracker
51-
- the old class allowed static use only.
52-
- instances of the new class may be put into arbitrary scope.
5352

53+
Deprecations from 1.3.2
54+
-----------------------
55+
- FileCleaner deprecated in favour of FileCleaningTracker [see IO-116]
5456

55-
Bug fixes from 1.2
56-
------------------
5757

58-
Enhancements from 1.2
59-
---------------------
58+
Bug fixes from 1.3.2
59+
--------------------
60+
- FileUtils
61+
- forceDelete of orphaned Softlinks does not work [IO-147]
62+
- Infinite loop on FileUtils.copyDirectory when the destination directory is within
63+
the source directory [IO-141]
64+
- Add a copyDirectory() method that makes use of FileFilter [IO-105]
65+
- Add moveDirectory() and moveFile() methods [IO-77]
66+
67+
- HexDump
68+
- HexDump's use of static StringBuffers isn't thread-safe [IO-136]
69+
70+
71+
Enhancements from 1.3.2
72+
-----------------------
73+
- FileUtils
74+
- Add a deleteQuietly method [IO-135]
75+
76+
- FilenameUtils
77+
- Add file name extension separator constants[IO-149]
78+
79+
- IOExceptionWithCause [IO-148]
80+
- Add a new IOException implementation with constructors which take a cause
81+
82+
- TeeInputStream [IO-129]
83+
- Add new Tee input stream implementation
84+
85+
- FileWriterWithEncoding [IO-153]
86+
- Add new File Writer implementation that accepts an encoding
87+
88+
- CharSequenceReader [IO-138]
89+
- Add new Reader implementation that handles any CharSequence (String,
90+
StringBuffer, StringBuilder or CharBuffer)
91+
92+
- ThesholdingOuputStream [IO-121]
93+
- Add a reset() method which sets the count of the bytes written back to zero.
94+
95+
- DeferredFileOutputStream [IO-130]
96+
- Add support for temporary files
97+
98+
- ByteArrayOutputStream
99+
- Add a new write(InputStream) method [IO-152]
100+
101+
- New Closed Input/Output stream implementations [IO-122]
102+
- AutoCloseInputStream - automatically closes and discards the underlying input stream
103+
- ClosedInputStream - returns -1 for any read attempts
104+
- ClosedOutputStream - throws an IOException for any write attempts
105+
- CloseShieldInputStream - prevents the underlying input stream from being closed.
106+
- CloseShieldOutputStream - prevents the underlying output stream from being closed.
107+
108+
- Add Singleton Constants to several stream classes [IO-143]
109+
110+
- PrefixFileFilter [IO-126]
111+
- Add faciltiy to specify case sensitivity on prefix matching
112+
113+
- SuffixFileFilter [IO-126]
114+
- Add faciltiy to specify case sensitivity on suffix matching
115+
116+
- RegexFileFilter [IO-74]
117+
- Add new regular expression file filter implementation
118+
119+
- Make IOFileFilter implementations Serializable [IO-131]
120+
121+
- Improve IOFileFilter toString() methods [IO-120]
122+
123+
- Make fields final so classes are immutable/threadsafe [IO-133]
124+
- changes to Age, Delegate, Name, Not, Prefix, Regex, Size, Suffix and Wildcard IOFileFilter
125+
implementations.
126+
127+
- IOCase
128+
- Add a compare method to IOCase [IO-144]
129+
130+
- Add a package of java.util.Comparator implementations for files [IO-145]
131+
- DefaultFileComparator - compare files using the default File.compareTo(File) method.
132+
- ExtensionFileComparator - compares files using file name extensions.
133+
- LastModifiedFileComparator - compares files using the last modified date/time.
134+
- NameFileComparator - compares files using file names.
135+
- PathFileComparator - compares files using file paths.
136+
- SizeFileComparator - compares files using file sizes.
60137
</source>
61138
</p>
62139
</section>

0 commit comments

Comments
 (0)