From a0cc97f410a8908659fbcc752d4cbe496a3f75ee Mon Sep 17 00:00:00 2001 From: Antoine Levy-Lambert Date: Sun, 22 Oct 2006 17:11:23 +0000 Subject: [PATCH] modified to call the property version from build.xml project.version defaultManifest.mf and version.txt are updated using expandproperties rather than tokenfilter git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@466856 13f79535-47bb-0310-9956-ffa450edef68 --- ReleaseInstructions | 4 +- build.xml | 46 +++++++++++-------- .../org/apache/tools/ant/defaultManifest.mf | 3 +- src/main/org/apache/tools/ant/version.txt | 4 +- 4 files changed, 34 insertions(+), 23 deletions(-) diff --git a/ReleaseInstructions b/ReleaseInstructions index 29cc5bf56..7ea282bb9 100644 --- a/ReleaseInstructions +++ b/ReleaseInstructions @@ -40,7 +40,7 @@ Note: This document was updated in the context of releasing Ant 1.7. Label such branches ANT_16_BRANCH. 4. Once the branch is setup, the version numbers in SVN are changed. On the - branch, the version property in build.xml becomes 1.7Beta. + branch, the project.version property in build.xml becomes 1.7Beta. If there were a main branch, its build.xml would have 1.8alpha. @@ -51,7 +51,7 @@ Note: This document was updated in the context of releasing Ant 1.7. the first beta on the 1.7 branch has been called 1.7.0Beta1, ... - the version property in build.xml governs the output of ant -version and + the project.version property in build.xml governs the output of ant -version and the naming of the distribution files. Update the following files for version number: diff --git a/build.xml b/build.xml index 7b01c1b01..d24ad3aa6 100644 --- a/build.xml +++ b/build.xml @@ -32,7 +32,7 @@ --> - + @@ -137,7 +137,7 @@ Set up properties for the distribution area =================================================================== --> - + @@ -614,11 +614,7 @@ - - - - - + @@ -1009,10 +1005,21 @@ - + - + + + + + + + + + + + + @@ -1202,7 +1209,6 @@ - @@ -1254,15 +1260,19 @@ - + + + + + + - + - + - @@ -1351,7 +1361,7 @@ - Uploading Ant version ${version} + Uploading Ant version ${project.version} to host ${ssh.host} as ${apache.user} distribution to ${ssh.dist.directory} JAR files to ${ssh.jars.directory} @@ -1379,7 +1389,7 @@ knownhosts="${ssh.knownhosts}" verbose="${ssh.verbose}" > - + - + @@ -1951,7 +1961,7 @@ see ${build.junit.reports} / ${antunit.reports} xmlns:dn="antlib:org.apache.ant.dotnet"> - + diff --git a/src/main/org/apache/tools/ant/defaultManifest.mf b/src/main/org/apache/tools/ant/defaultManifest.mf index 61fc10db7..fd30a23a8 100644 --- a/src/main/org/apache/tools/ant/defaultManifest.mf +++ b/src/main/org/apache/tools/ant/defaultManifest.mf @@ -1,3 +1,4 @@ Manifest-Version: 1.0 -Ant-Version: Apache Ant @VERSION@ +Ant-Version: Apache Ant ${project.version} + diff --git a/src/main/org/apache/tools/ant/version.txt b/src/main/org/apache/tools/ant/version.txt index b6b2f8db9..0496e181f 100644 --- a/src/main/org/apache/tools/ant/version.txt +++ b/src/main/org/apache/tools/ant/version.txt @@ -1,2 +1,2 @@ -VERSION=@VERSION@ -DATE=@DATE@ +VERSION=${project.version} +DATE=${TODAY}