*) 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

@ -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">

Binary file not shown.
Loading…
Cancel
Save