diff --git a/build.xml b/build.xml
index cb23812c9..53a72fa4f 100644
--- a/build.xml
+++ b/build.xml
@@ -42,7 +42,6 @@ under the License.
The Apache POI project Ant build.
-
@@ -254,12 +253,21 @@ under the License.
-
-
-
+
+
+
-
+
+
+
+
+
+
+
+
+
+
@@ -441,17 +449,13 @@ under the License.
-
-
-
-
-
-
-
-
-
+
+
+ var rel = ("REL_"+project.getProperty("version.id")).toUpperCase().replace(/\W/g,"_");
+ if (rel.search(/BETA/) == -1) rel += "_FINAL";
+ project.setProperty("RELEASE_TAG", rel);
+
+
@@ -616,18 +620,38 @@ under the License.
-
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1600,13 +1624,13 @@ under the License.
-
+
-
+
-
+
@@ -1984,7 +2008,7 @@ under the License.
-
+
@@ -2001,6 +2025,112 @@ under the License.
+
+
+
+
+
+
+
+
+
+
+
+ var relCurr = new String(project.getProperty("version.id"));
+ var relNext = relCurr.replace(/[0-9]+$/, function(lastNum){ return new String(new Number(lastNum)+1); });
+ if (relNext.search(/beta/i) == -1) relNext += "-beta1";
+ project.setProperty("rel_next", relNext);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+