Apache Lucene open-source search software
Fix a small problem where the "svnversion" command may output an error message and therefore creates invalid manifest (with special chars included). This checks with regex, if the returned SVN revision is according to spec, otherwise it writes "unknown" to manifest
Uwe Schindler307fb6e19b98
diff --git a/lucene/common-build.xml b/lucene/common-build.xmlindex 9d8dae3b552..4ee4e33d6e0 100644--- a/lucene/common-build.xml+++ b/lucene/common-build.xml@@ -617,8 +617,14 @@<attribute name="manifest.file" default="${manifest.file}"/><element name="additional-manifest-attributes" optional="true"/><sequential>+ <local name="-svnversion-raw"/>+ <local name="svnversion"/>+<!-- If possible, include the svnversion -->- <exec dir="." executable="${svnversion.exe}" outputproperty="svnversion" failifexecutionfails="false"/>+ <exec dir="." executable="${svnversion.exe}" outputproperty="-svnversion-raw" failifexecutionfails="false"/>+ <condition property="svnversion" value="${-svnversion-raw}" else="unknown">+ <matches pattern="[\d:MSP]+" string="${-svnversion-raw}" casesensitive="true"/>+ </condition><manifest file="@{manifest.file}"><!--