*) bugfix needed because of new svn version 1.4 (new .svn/entries file format)

- lib/svnRevNr.jar: customized ant task to read the revision number out of the .svn/entries file
   - build.xml: calling new ant task

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2561 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 18 years ago
parent 3bbe6a77da
commit da9f67a56d

@ -91,26 +91,11 @@
svn revision number of the working base now
-->
<target name="determineRevisionNr" if="svnEntriesFileExists">
<!-- loading the entries file containing the revision number of the root directory -->
<xmlproperty file=".svn/entries" rootdirectory="false"/>
<!-- define a custom ant task to read the revision number from file -->
<taskdef resource="svnRevNrParser.properties" classpath="${lib}/svnRevNr.jar"/>
<!-- storing the list of read revision numbers into file -->
<tempfile property="temp.file" prefix="svnRevNr" suffix=".properties" />
<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}"/>
<!-- determine the revision number -->
<svnrevnr file=".svn/entries" property="baseRevisionNr"/>
<!-- replacing the old with the new revision number -->
<copy file="build.properties" tofile="build.properties.new">

Binary file not shown.
Loading…
Cancel
Save