summaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-11-26 23:53:37 +0000
committerPaul Phillips <paulp@improving.org>2010-11-26 23:53:37 +0000
commitbb3235a2b6f5521040e96da30a6cf122940cd539 (patch)
tree3927674760b84f5a9587867649d5da51f51983de /build.xml
parent72d12aabf35f699ef103d79f29f8f7b21286d94c (diff)
downloadscala-bb3235a2b6f5521040e96da30a6cf122940cd539.tar.gz
scala-bb3235a2b6f5521040e96da30a6cf122940cd539.tar.bz2
scala-bb3235a2b6f5521040e96da30a6cf122940cd539.zip
Moved the painful-in-ant git/svn revision getti...
Moved the painful-in-ant git/svn revision getting logic into bash where it's at least somewhat less painful. Made it more flexible for easy use in more places since we presently have all kinds of revision figuring logic variations in other build files (sbaz, installer, scala-documentation, scala-tool-support, etc.) No review.
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml25
1 files changed, 4 insertions, 21 deletions
diff --git a/build.xml b/build.xml
index e7d4fad6c5..f5b3571994 100644
--- a/build.xml
+++ b/build.xml
@@ -221,27 +221,10 @@ INITIALISATION
<condition property="os.win">
<os family="windows"/>
</condition>
- <!-- Finding out SVN revision, svn style -->
- <exec executable="svn" outputproperty="svn.out"
- failifexecutionfails="false">
- <arg line=" info ${basedir}"/>
- </exec>
- <propertyregex
- property="svn.number.svn" input="${svn.out}" select="\1"
- regexp="Revision: ([0-9]+)"
- defaultValue="0"/>
-
- <!-- Both clauses of the conditional set svn.number -->
- <if>
- <equals arg1="${svn.number.svn}" arg2="0" />
- <then>
- <!-- Finding SVN revision, git style -->
- <exec osfamily="unix" executable="tools/get-git-svn-rev" outputproperty="svn.number" failifexecutionfails="false" />
- </then>
- <else>
- <property name="svn.number" value="${svn.number.svn}" />
- </else>
- </if>
+
+ <exec osfamily="unix" executable="tools/get-scala-revision" outputproperty="svn.number" failifexecutionfails="false" />
+ <!-- some default in case something went wrong getting the revision -->
+ <property name="svn.number" value="0"/>
<property name="init.avail" value="yes"/>