summaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
authorJosh Suereth <joshua.suereth@gmail.com>2012-03-20 08:57:44 -0400
committerJosh Suereth <joshua.suereth@gmail.com>2012-03-20 08:57:44 -0400
commit62422f3a54d157fb3280ee51a62b7cfe5b759acb (patch)
treebab58b162d6e5417ec902ef3120e00e3542192b6 /build.xml
parentfb44bb28b8b3e7861b96c874dc79072f89fec10b (diff)
downloadscala-62422f3a54d157fb3280ee51a62b7cfe5b759acb.tar.gz
scala-62422f3a54d157fb3280ee51a62b7cfe5b759acb.tar.bz2
scala-62422f3a54d157fb3280ee51a62b7cfe5b759acb.zip
Yet another attempt to make the version a good one
This fixes the git commit drift issue and gives us enough granularity to make releases at any time that are cronologically increasing.
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml7
1 files changed, 2 insertions, 5 deletions
diff --git a/build.xml b/build.xml
index dc70330d7f..453d025559 100644
--- a/build.xml
+++ b/build.xml
@@ -285,10 +285,7 @@ INITIALISATION
<exec osfamily="windows" executable="tools/get-scala-commit-sha.bat" outputproperty="git.commit.sha" failifexecutionfails="false" />
<exec osfamily="unix" executable="tools/get-scala-commit-date" outputproperty="git.commit.date" failifexecutionfails="false" />
<exec osfamily="windows" executable="tools/get-scala-commit-date.bat" outputproperty="git.commit.date" failifexecutionfails="false" />
- <exec osfamily="unix" executable="tools/get-scala-commit-drift" outputproperty="git.commit.drift" failifexecutionfails="false" />
- <exec osfamily="windows" executable="tools/get-scala-commit-drift.bat" outputproperty="git.commit.drift" failifexecutionfails="false" />
<!-- some default in case something went wrong getting the revision -->
- <property name="git.commit.drift" value="00000000"/>
<property name="git.commit.sha" value="unknown"/>
<property name="git.commit.date" value="unknown"/>
@@ -298,7 +295,7 @@ INITIALISATION
value="${version.major}.${version.minor}.${version.patch}${version.suffix}${maven.version.suffix}"/>
<property
name="version.number"
- value="${maven.version.number}-${git.commit.date}-${git.commit.drift}-${git.commit.sha}"/>
+ value="${version.major}.${version.minor}.${version.patch}${version.suffix}-${git.commit.date}-${git.commit.sha}"/>
<property
name="osgi.version.number"
value="${version.major}.${version.minor}.${version.patch}.v${git.commit.date}${version.suffix}-${git.commit.sha}"/>
@@ -334,8 +331,8 @@ INITIALISATION
<echo message=" java args: ${env.ANT_OPTS} ${jvm.opts}" />
<echo message=" javac args: ${javac.args}" />
<echo message=" scalac args: ${scalac.args}" />
+ <echo message=" git date: ${git.commit.date}" />
<echo message=" git hash: ${git.commit.sha}" />
- <echo message=" git drift: ${git.commit.drift}" />
<echo message=" maven version: ${maven.version.number}"/>
<echo message=" OSGi version: ${osgi.version.number}" />
<echo message="canonical version: ${version.number}" />