SOLR-684: new ant prop to allow Hudson to explicitly specify where to find svnversion (instead of assuming it's in the default path)

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@690357 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris M. Hostetter 2008-08-29 18:18:16 +00:00
parent ece75c9762
commit b36efdb8c9
1 changed files with 9 additions and 1 deletions

View File

@ -38,6 +38,14 @@
<format property="dateversion" pattern="yyyy.MM.dd.HH.mm.ss" />
</tstamp>
<!--
we attempt to exec svnversion to get details build information
for jar manifests. this property can be set at runtime to an
explicit path as needed, or ant will just try to find it in the
default PATH. (this is useful for Hudson)
-->
<property name="svnversion.exe" value="svnversion" />
<!-- Java Version we are compatible with -->
<property name="java.compat.version" value="1.5" />
@ -280,7 +288,7 @@
<!-- Creates a Manifest file for Jars and WARs -->
<target name="make-manifest">
<!-- If possible, include the svnversion -->
<exec dir="." executable="svnversion" outputproperty="svnversion" failifexecutionfails="false">
<exec dir="." executable="${svnversion.exe}" outputproperty="svnversion" failifexecutionfails="false">
<arg line="."/>
</exec>