summaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2007-03-28 09:26:13 +0000
committermichelou <michelou@epfl.ch>2007-03-28 09:26:13 +0000
commita4d94d427ae80d191060338b230c4d88948059cb (patch)
tree5192f04052d4e75fce066517b0ba82bac3999f7a /build.xml
parent31a6f4e9326e942d9baab882ffa0417ac659b2b3 (diff)
downloadscala-a4d94d427ae80d191060338b230c4d88948059cb.tar.gz
scala-a4d94d427ae80d191060338b230c4d88948059cb.tar.bz2
scala-a4d94d427ae80d191060338b230c4d88948059cb.zip
fixed initialization of svn.number property
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml13
1 files changed, 7 insertions, 6 deletions
diff --git a/build.xml b/build.xml
index 779a2e4efa..0adfd9fcf7 100644
--- a/build.xml
+++ b/build.xml
@@ -141,13 +141,14 @@ INITIALISATION
<contains string="${java.version}" substring="1.4"/>
</condition>
<!-- Finding out SVN revision -->
- <loadfile
- property="entries"
- srcFile="${basedir}/.svn/entries"
- failonerror="false"/>
+ <exec
+ executable="svn" vmlauncher="no"
+ errorproperty="svn.err" outputproperty="svn.out">
+ <arg line=" info ${basedir}"/>
+ </exec>
<propertyregex
- property="svn.number" input="${entries}" select="\1"
- regexp="revision=\042([0-9]*)\042\.*"
+ property="svn.number" input="${svn.out}" select="\1"
+ regexp="Revision: ([0-9]+)"
defaultValue="x"/>
<property name="init.avail" value="yes"/>
<!-- Printing out some information about what environment I am running in -->