@ -89,28 +89,13 @@
<!--
<!--
if the .svn directory exists we try to determine the real
if the .svn directory exists we try to determine the real
svn revision number of the working base now
svn revision number of the working base now
-->
-->
<target name= "determineRevisionNr" if= "svnEntriesFileExists" >
<target name= "determineRevisionNr" if= "svnEntriesFileExists" >
<!-- loading the entries file containing the revision number of the root directory -->
<!-- define a custom ant task to read the revision number from file -->
<xmlproperty file= ".svn/entries" rootdirectory= "false" />
<taskdef resource= "svnRevNrParser.properties" classpath= "${lib}/svnRevNr.jar" />
<!-- storing the list of read revision numbers into file -->
<!-- determine the revision number -->
<tempfile property= "temp.file" prefix= "svnRevNr" suffix= ".properties" />
<svnrevnr file= ".svn/entries" property= "baseRevisionNr" />
<echo message= "baseRevisionNr=${wc-entries.entry(revision)}" file= "${temp.file}" />
<!-- reading out the first entry of the stored revision numbers -->
<loadproperties srcFile= "${temp.file}" >
<filterchain >
<tokenfilter >
<containsregex
pattern="^baseRevisionNr=([^,]*)(.*)$"
replace="baseRevisionNr=\1"/>
</tokenfilter>
</filterchain>
</loadproperties>
<!-- deleting the temp file -->
<delete file= "${temp.file}" />
<!-- replacing the old with the new revision number -->
<!-- replacing the old with the new revision number -->
<copy file= "build.properties" tofile= "build.properties.new" >
<copy file= "build.properties" tofile= "build.properties.new" >