Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
*) 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
thelida9f67a56d5e
diff --git a/build.xml b/build.xmlindex 8a85fa978..72881b5f2 100644--- a/build.xml+++ b/build.xml@@ -89,28 +89,13 @@<!--if the .svn directory exists we try to determine the realsvn 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"/>-- <!-- 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}"/>+ <!-- define a custom ant task to read the revision number from file -->+ <taskdef resource="svnRevNrParser.properties" classpath="${lib}/svnRevNr.jar"/>++ <!-- 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">diff --git a/lib/svnRevNr.jar b/lib/svnRevNr.jarnew file mode 100644index 000000000..20b5110aaBinary files /dev/null and b/lib/svnRevNr.jar differ