Author: hossman
Date: Fri Aug 29 11:18:16 2008
New Revision: 690357

URL: http://svn.apache.org/viewvc?rev=690357&view=rev
Log:
SOLR-684: new ant prop to allow Hudson to explicitly specify where to find 
svnversion (instead of assuming it's in the default path)

Modified:
    lucene/solr/trunk/common-build.xml

Modified: lucene/solr/trunk/common-build.xml
URL: 
http://svn.apache.org/viewvc/lucene/solr/trunk/common-build.xml?rev=690357&r1=690356&r2=690357&view=diff
==============================================================================
--- lucene/solr/trunk/common-build.xml (original)
+++ lucene/solr/trunk/common-build.xml Fri Aug 29 11:18:16 2008
@@ -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>
 


Reply via email to