You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2011/05/31 16:25:53 UTC

svn commit: r1129695 - in /lucene/dev/branches/branch_3x: ./ lucene/ lucene/backwards/ lucene/build.xml solr/

Author: rmuir
Date: Tue May 31 14:25:53 2011
New Revision: 1129695

URL: http://svn.apache.org/viewvc?rev=1129695&view=rev
Log:
LUCENE-3165: fail nicely if you try to do things that need a subversion checkout

Modified:
    lucene/dev/branches/branch_3x/   (props changed)
    lucene/dev/branches/branch_3x/lucene/   (props changed)
    lucene/dev/branches/branch_3x/lucene/backwards/   (props changed)
    lucene/dev/branches/branch_3x/lucene/build.xml
    lucene/dev/branches/branch_3x/solr/   (props changed)

Modified: lucene/dev/branches/branch_3x/lucene/build.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/lucene/build.xml?rev=1129695&r1=1129694&r2=1129695&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/lucene/build.xml (original)
+++ lucene/dev/branches/branch_3x/lucene/build.xml Tue May 31 14:25:53 2011
@@ -395,7 +395,7 @@
   <!-- ================================================================== -->
   <!-- Populates properties svn.URL and svn.Revision using "svn info".    -->
   <!-- ================================================================== -->
-  <target name="get-svn-info">
+  <target name="get-svn-info" depends="check-svn">
     <exec dir="." executable="${svn.exe}" outputproperty="svn.info" failonerror="true">
       <arg value="info"/>
     </exec>
@@ -411,6 +411,16 @@
     </loadproperties>
   </target>
 
+   <target name="check-svn">
+    <sequential>
+      <exec dir="." executable="${svnversion.exe}" outputproperty="svn.ver"/>
+      <fail message="A subversion checkout is required for this target">
+        <condition>
+           <equals arg1="${svn.ver}" arg2="exported"/>
+        </condition>
+      </fail>
+    </sequential>
+  </target>
 
   <!-- ================================================================== -->
   <!-- same as package-tgz-src. it is just here for compatibility.        -->