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:27 UTC
svn commit: r1129694 - /lucene/dev/trunk/lucene/build.xml
Author: rmuir
Date: Tue May 31 14:25:27 2011
New Revision: 1129694
URL: http://svn.apache.org/viewvc?rev=1129694&view=rev
Log:
LUCENE-3165: fail nicely if you try to do things that need a subversion checkout
Modified:
lucene/dev/trunk/lucene/build.xml
Modified: lucene/dev/trunk/lucene/build.xml
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/build.xml?rev=1129694&r1=1129693&r2=1129694&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/build.xml (original)
+++ lucene/dev/trunk/lucene/build.xml Tue May 31 14:25:27 2011
@@ -376,7 +376,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>
@@ -392,6 +392,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. -->