fixed initialization of svn.number property

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@10555 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
michelou 2007-03-28 09:26:13 +00:00
parent b9bcdc6dc4
commit 8f94318a60
1 changed files with 7 additions and 6 deletions

View File

@ -141,13 +141,14 @@ INITIALISATION
<contains string="${java.version}" substring="1.4"/> <contains string="${java.version}" substring="1.4"/>
</condition> </condition>
<!-- Finding out SVN revision --> <!-- Finding out SVN revision -->
<loadfile <exec
property="entries" executable="svn" vmlauncher="no"
srcFile="${basedir}/.svn/entries" errorproperty="svn.err" outputproperty="svn.out">
failonerror="false"/> <arg line=" info ${basedir}"/>
</exec>
<propertyregex <propertyregex
property="svn.number" input="${entries}" select="\1" property="svn.number" input="${svn.out}" select="\1"
regexp="revision=\042([0-9]*)\042\.*" regexp="Revision: ([0-9]+)"
defaultValue="x"/> defaultValue="x"/>
<property name="init.avail" value="yes"/> <property name="init.avail" value="yes"/>
<!-- Printing out some information about what environment I am running in --> <!-- Printing out some information about what environment I am running in -->