Prepare for Lang 2.5 release

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/branches/LANG_2_X@912006 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/default.properties b/default.properties
index 2163b80..b0817ab 100644
--- a/default.properties
+++ b/default.properties
@@ -33,7 +33,7 @@
 component.title = Core Language Utilities
 
 # The current version number of this component
-component.version = 2.5-SNAPSHOT
+component.version = 2.5
 
 # The name that is used to create the jar file
 final.name = ${component.name}-${component.version}
diff --git a/pom.xml b/pom.xml
index 769623a..004dc17 100644
--- a/pom.xml
+++ b/pom.xml
@@ -27,7 +27,7 @@
   <modelVersion>4.0.0</modelVersion>
   <groupId>commons-lang</groupId>
   <artifactId>commons-lang</artifactId>
-  <version>2.5-SNAPSHOT</version>
+  <version>2.5</version>
   <name>Commons Lang</name>
 
   <inceptionYear>2001</inceptionYear>
@@ -423,7 +423,7 @@
     <maven.compile.source>1.3</maven.compile.source>
     <maven.compile.target>1.3</maven.compile.target>
     <commons.componentid>lang</commons.componentid>
-    <commons.release.version>2.4</commons.release.version>
+    <commons.release.version>2.5</commons.release.version>
     <commons.jira.id>LANG</commons.jira.id>
     <commons.jira.pid>12310481</commons.jira.pid>
   </properties> 
diff --git a/src/site/changes/changes.xml b/src/site/changes/changes.xml
index 41432bb..dbf0fa2 100644
--- a/src/site/changes/changes.xml
+++ b/src/site/changes/changes.xml
@@ -21,7 +21,7 @@
   </properties>
   <body>
 
-  <release version="2.5" date="Unreleased" description="">
+  <release version="2.5" date="2010-02-23" description="">
     <action type="add" issue="LANG-583">ArrayUtils - add isNotEmpty() methods</action>
     <action type="add" issue="LANG-534">ArrayUtils - add nullToEmpty() methods</action>
     <action type="add" issue="LANG-454">CharRange - provide an iterator that lets you walk the chars in the range</action>
diff --git a/src/site/site.xml b/src/site/site.xml
index 0198bbc..6a827f4 100644
--- a/src/site/site.xml
+++ b/src/site/site.xml
@@ -25,10 +25,10 @@
     <body>
         <menu name="Lang">
             <item name="Overview"        href="/index.html"/>
-            <item name="Download"        href="http://commons.apache.org/downloads/download_lang.cgi"/>
+            <item name="Download"        href="/download_lang.cgi"/>
             <item name="Users guide"     href="/userguide.html"/>
             <item name="Release History" href="/release-history.html"/>
-            <item name="Javadoc (2.4 release)" href="api-release/index.html"/>
+            <item name="Javadoc (2.5 release)" href="api-release/index.html"/>
         </menu>
 
         <menu name="Development">
diff --git a/src/site/xdoc/building.xml b/src/site/xdoc/building.xml
index 81be137..56e7856 100644
--- a/src/site/xdoc/building.xml
+++ b/src/site/xdoc/building.xml
@@ -31,6 +31,7 @@
   You may also be interested in the upgrade notes:
 </p>
 <ul>
+  <li>Upgrade <a href="upgradeto2_5.html">from 2.4 to 2.5</a></li>
   <li>Upgrade <a href="upgradeto2_4.html">from 2.3 to 2.4</a></li>
   <li>Upgrade <a href="upgradeto2_3.html">from 2.2 to 2.3</a></li>
   <li>Upgrade <a href="upgradeto2_2.html">from 2.1 to 2.2</a></li>
@@ -41,16 +42,12 @@
 <!-- ================================================== -->
 <section name="Maven Goals">
   <p>
-    To build a jar file, change into the root directory of Lang and run "maven jar".
+    To build a jar file, change into the root directory of Lang and run "mvn package".
     The result will be in the "target" subdirectory.
   </p>
   <p>
-    To build the Javadocs, run "maven javadoc".
-    The result will be in "target/docs/apidocs".
-  </p>
-  <p>
-    To build the full website, run "maven site".
-    The result will be in "target/docs".
+    To build the full website, run "mvn site".
+    The result will be in "target/site".
 	You must be online to successfully complete this target.
   </p>
   <p>
@@ -62,11 +59,11 @@
 <section name="Ant Goals">
   <p>
     To build a jar file, change into the root directory of Lang and run "ant jar".
-    The result will be in the "dist" subdirectory.
+    The result will be in the "target" subdirectory.
   </p>
   <p>
     To build the Javadocs, run "ant javadoc".
-    The result will be in "dist/docs/api".
+    The result will be in "target/docs/api".
   </p>
 </section>
 <!-- ================================================== -->
diff --git a/src/site/xdoc/download_lang.xml b/src/site/xdoc/download_lang.xml
index 2323af6..7275c45 100644
--- a/src/site/xdoc/download_lang.xml
+++ b/src/site/xdoc/download_lang.xml
@@ -102,17 +102,17 @@
         <ul class="downloads">
           <li class="group"><div class="links"><span class="label">Binary</span></div>
             <ul>
-              <li class="download"><a href="[preferred]/commons/lang/binaries/commons-lang-2.4-bin.tar.gz">2.4.tar.gz</a>
+              <li class="download"><a href="[preferred]/commons/lang/binaries/commons-lang-2.5-bin.tar.gz">2.5.tar.gz</a>
                 <ul class="attributes">
-                  <li><span class="md5">[<a href="http://www.apache.org/dist/commons/lang/binaries/commons-lang-2.4-bin.tar.gz.md5">md5</a>]</span>
-                      <span class="pgp">[<a href="http://www.apache.org/dist/commons/lang/binaries/commons-lang-2.4-bin.tar.gz.asc">pgp</a>]</span>
+                  <li><span class="md5">[<a href="http://www.apache.org/dist/commons/lang/binaries/commons-lang-2.5-bin.tar.gz.md5">md5</a>]</span>
+                      <span class="pgp">[<a href="http://www.apache.org/dist/commons/lang/binaries/commons-lang-2.5-bin.tar.gz.asc">pgp</a>]</span>
                   </li>
                 </ul>
               </li>
-              <li class="download"><a href="[preferred]/commons/lang/binaries/commons-lang-2.4-bin.zip">2.4.zip</a>
+              <li class="download"><a href="[preferred]/commons/lang/binaries/commons-lang-2.5-bin.zip">2.5.zip</a>
                 <ul class="attributes">
-                  <li><span class="md5">[<a href="http://www.apache.org/dist/commons/lang/binaries/commons-lang-2.4-bin.zip.md5">md5</a>]</span>
-                      <span class="pgp">[<a href="http://www.apache.org/dist/commons/lang/binaries/commons-lang-2.4-bin.zip.asc">pgp</a>]</span>
+                  <li><span class="md5">[<a href="http://www.apache.org/dist/commons/lang/binaries/commons-lang-2.5-bin.zip.md5">md5</a>]</span>
+                      <span class="pgp">[<a href="http://www.apache.org/dist/commons/lang/binaries/commons-lang-2.5-bin.zip.asc">pgp</a>]</span>
                   </li>
                 </ul>
               </li>
@@ -120,17 +120,17 @@
           </li>
           <li class="group"><div class="links"><span class="label">Source</span></div>
             <ul>
-              <li class="download"><a href="[preferred]/commons/lang/source/commons-lang-2.4-src.tar.gz">2.4.tar.gz</a>
+              <li class="download"><a href="[preferred]/commons/lang/source/commons-lang-2.5-src.tar.gz">2.5.tar.gz</a>
                 <ul class="attributes">
-                  <li><span class="md5">[<a href="http://www.apache.org/dist/commons/lang/source/commons-lang-2.4-src.tar.gz.md5">md5</a>]</span>
-                      <span class="pgp">[<a href="http://www.apache.org/dist/commons/lang/source/commons-lang-2.4-src.tar.gz.asc">pgp</a>]</span>
+                  <li><span class="md5">[<a href="http://www.apache.org/dist/commons/lang/source/commons-lang-2.5-src.tar.gz.md5">md5</a>]</span>
+                      <span class="pgp">[<a href="http://www.apache.org/dist/commons/lang/source/commons-lang-2.5-src.tar.gz.asc">pgp</a>]</span>
                   </li>
                 </ul>
               </li>
-              <li class="download"><a href="[preferred]/commons/lang/source/commons-lang-2.4-src.zip">2.4.zip</a>
+              <li class="download"><a href="[preferred]/commons/lang/source/commons-lang-2.5-src.zip">2.5.zip</a>
                 <ul class="attributes">
-                  <li><span class="md5">[<a href="http://www.apache.org/dist/commons/lang/source/commons-lang-2.4-src.zip.md5">md5</a>]</span>
-                      <span class="pgp">[<a href="http://www.apache.org/dist/commons/lang/source/commons-lang-2.4-src.zip.asc">pgp</a>]</span>
+                  <li><span class="md5">[<a href="http://www.apache.org/dist/commons/lang/source/commons-lang-2.5-src.zip.md5">md5</a>]</span>
+                      <span class="pgp">[<a href="http://www.apache.org/dist/commons/lang/source/commons-lang-2.5-src.zip.asc">pgp</a>]</span>
                   </li>
                 </ul>
               </li>
diff --git a/src/site/xdoc/index.xml b/src/site/xdoc/index.xml
index 6a50a79..f2ca788 100644
--- a/src/site/xdoc/index.xml
+++ b/src/site/xdoc/index.xml
@@ -48,23 +48,21 @@
 The JavaDoc API documents are available online:
 </p>
 <ul>
-<li>The <a href="api-release/index.html">current release 2.4</a></li>
-<li>The <a href="api-2.3/index.html">previous version 2.3</a></li>
+<li>The <a href="api-release/index.html">current release 2.5</a></li>
+<li>The <a href="api-2.4/index.html">previous version 2.4</a></li>
 <li>Older releases - see the <a href="release-history.html">Release History</a> page</li>
 </ul>
 <p>
-The <a href="cvs-usage.html">subversion repository</a> can be
+The <a href="source-repository.html">subversion repository</a> can be
 <a href="http://svn.apache.org/viewvc/commons/proper/lang/trunk/">browsed</a>.
 </p>
 </section>
 <!-- ================================================== -->
 <section name="Releases">
 <p>
-The latest version 2.4, is JDK 1.2 compatible - 
-<a href="http://commons.apache.org/downloads/download_lang.cgi">Download now!</a> 
-(<a href="upgradeto2_4.html">upgrade notes</a>). </p>
-
-<p>Read '<a href="article2_4.html">What's new in 2.4?</a>' for more information. </p>
+The latest version 2.5, is JDK 1.3 compatible - 
+<a href="http://commons.apache.org/lang/download_lang.cgi">Download now!</a> 
+(<a href="upgradeto2_5.html">upgrade notes</a>). </p>
 
 <p>
 For information on previous releases, see the <a href="release-history.html">Release History</a> and to download previous releases, see the <a href="http://archive.apache.org/dist/commons/lang/">Apache Archive</a>.
diff --git a/src/site/xdoc/release-history.xml b/src/site/xdoc/release-history.xml
index c034c4c..08d9632 100644
--- a/src/site/xdoc/release-history.xml
+++ b/src/site/xdoc/release-history.xml
@@ -28,6 +28,7 @@
 
 <table>
 <tr><th>Version</th><th>Release date</th><th>Javadoc</th><th>Release notes</th></tr>
+<tr><td>2.5</td><td>23/Feb/10</td><td><a href="api-2.5/">api-2.5</a></td><td><a href="upgradeto2_5.html">release notes for 2.5</a></td></tr>
 <tr><td>2.4</td><td>18/Mar/08</td><td><a href="api-2.4/">api-2.4</a></td><td><a href="upgradeto2_4.html">release notes for 2.4</a></td></tr>
 <tr><td>2.3</td><td>13/Feb/07</td><td><a href="api-2.3/">api-2.3</a></td><td><a href="upgradeto2_3.html">release notes for 2.3</a></td></tr>
 <tr><td>2.2</td><td>04/Oct/06</td><td><a href="api-2.2/">api-2.2</a></td><td><a href="upgradeto2_2.html">release notes for 2.2</a></td></tr>
diff --git a/src/site/xdoc/upgradeto2_5.xml b/src/site/xdoc/upgradeto2_5.xml
new file mode 100644
index 0000000..99abb56
--- /dev/null
+++ b/src/site/xdoc/upgradeto2_5.xml
@@ -0,0 +1,103 @@
+<?xml version="1.0"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<document>
+ <properties>
+  <title>Upgrade from 2.4 to 2.5</title>
+  <author email="dev@commons.apache.org">Commons Documentation Team</author>
+ </properties>
+<body>
+
+<section name="Upgrade to 2.5">
+<p>
+These are the release notes and advice for upgrading Commons-Lang from
+version 2.4 to version 2.5. <br/><br/>
+<source>
+INTRODUCTION:
+
+This document contains the release notes for the 2.5 version of Apache Commons Lang.
+Commons Lang is a set of utility functions and reusable components that should be of use in any Java environment.
+
+Lang 2.5 no longer attempts to target the Java 1.2 environment and now targets Java 1.3.
+
+IMPROVEMENTS IN 2.5
+===================
+
+    * [LANG-583] - ArrayUtils - add isNotEmpty() methods
+    * [LANG-534] - ArrayUtils - add nullToEmpty() methods
+    * [LANG-454] - CharRange - provide an iterator that lets you walk the chars in the range
+    * [LANG-514] - CharRange - add more readable static builder methods
+    * [        ] - ClassUtils - new isAssignable() methods with autoboxing
+    * [LANG-535] - ClassUtils - add support to getShortClassName and getPackageName for arrays
+    * [LANG-434] - DateUtils - add ceiling() method
+    * [LANG-486] - DateUtils - add parseDateStrictly() method
+    * [LANG-466] - EqualsBuilder - add reset() method
+    * [LANG-461] - NumberUtils - add toByte() and toShort() methods
+    * [LANG-522] - Mutable numbers - add string constructors
+    * [        ] - MutableBoolean - add toBoolean(), isTrue() and isFalse() methods
+    * [LANG-422] - StrBuilder - add appendSeparator() methods with an alternative default separator if the StrBuilder is currently empty
+    * [LANG-555] - SystemUtils - add IS_OS_WINDOWS_7 constant
+    * [LANG-554] - SystemUtils - add IS_JAVA_1_7 constant for JDK 1.7
+    * [LANG-405] - StringUtils - add abbreviateMiddle() method
+    * [LANG-569] - StringUtils - add indexOfIgnoreCase() and lastIndexOfIgnoreCase() methods
+    * [LANG-471] - StringUtils - add isAllUpperCase() and isAllLowerCase() methods
+    * [LANG-469] - StringUtils - add lastOrdinalIndexOf() method to complement the existing ordinalIndexOf() method
+    * [LANG-438] - StringUtils - add repeat() method
+    * [LANG-445] - StringUtils - add startsWithAny() method
+    * [LANG-430] - StringUtils - add upperCase(String, Locale) and lowerCase(String, Locale) methods
+    * [LANG-416] - New Reflection package containing ConstructorUtils, FieldUtils, MemberUtils and MethodUtils
+
+BUG FIXES IN 2.5
+================
+
+    * [LANG-494] - CharSet - Synchronizing the COMMON Map so that getInstance doesn't miss a put from a subclass in another thread
+    * [LANG-500] - ClassUtils - improving performance of getAllInterfaces
+    * [LANG-587] - ClassUtils - toClass() throws NullPointerException on null array element
+    * [LANG-530] - DateUtils - Fix parseDate() cannot parse ISO8601 dates produced by FastDateFormat
+    * [LANG-440] - DateUtils - round() doesn't work correct for Calendar.AM_PM
+    * [LANG-443] - DateUtils - improve tests
+    * [LANG-204] - Entities - multithreaded initialization
+    * [LANG-538] - FastDateFormat - call getTime() on a calendar to ensure timezone is in the right state
+    * [LANG-547] - FastDateFormat - Remove unused field
+    * [LANG-506] - Entities missing final modifiers; thread-safety issues
+    * [LANG-584] - ExceptionUtils - use immutable lock target
+    * [LANG-477] - ExtendedMessageFormat - OutOfMemory with a pattern containing single quotes
+    * [LANG-511] - LocaleUtils - initialization of available locales can be deferred
+    * [LANG-457] - NumberUtils - createNumber() thows a StringIndexOutOfBoundsException for "l"
+    * [LANG-521] - NumberUtils - isNumber(String) and createNumber(String) both modified to support '2.'
+    * [LANG-432] - StringUtils - improve handling of case-insensitive Strings
+    * [LANG-552] - StringUtils - replaceEach() no longer NPEs when null appears in the last String[]
+    * [LANG-460] - StringUtils - correct JavaDocs for startsWith() and startsWithIgnoreCase()
+    * [LANG-421] - StringEscapeUtils - escapeJava() escapes '/' characters
+    * [LANG-450] - StringEscapeUtils - change escapeJavaStyleString() to throw UnhandledException instead swallowing IOException
+    * [LANG-419] - WordUtils - fix StringIndexOutOfBoundsException when lower is greater than the String length
+    * [LANG-523] - StrBuilder - Performance improvement by doubling the size of the String in ensureCapacity
+    * [LANG-575] - Compare, Equals and HashCode builders - use ArrayUtils to avoid creating a temporary List
+    * [LANG-467] - EqualsBuilder - removing the special handling of BigDecimal (LANG-393) to use compareTo 
+    * [LANG-574] - HashCodeBuilder - Performance improvement: check for isArray to short-circuit the 9 instanceof checks
+    * [LANG-520] - HashCodeBuilder - Changing the hashCode() method to return toHashCode()
+    * [LANG-459] - HashCodeBuilder - reflectionHashCode() can generate incorrect hashcodes
+    * [LANG-586] - HashCodeBuilder and ToStringStyle - use of ThreadLocal causes memory leaks in container environments
+    * [LANG-487] - ToStringBuilder - make default style thread-safe
+    * [LANG-472] - RandomUtils - nextLong() always produces even numbers
+
+</source>
+</p>
+</section>
+
+</body>
+</document>