You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by se...@apache.org on 2012/01/23 15:04:05 UTC

svn commit: r1234803 - /jmeter/trunk/build.xml

Author: sebb
Date: Mon Jan 23 14:04:05 2012
New Revision: 1234803

URL: http://svn.apache.org/viewvc?rev=1234803&view=rev
Log:
Check for M2_HOME being set

Modified:
    jmeter/trunk/build.xml

Modified: jmeter/trunk/build.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/build.xml?rev=1234803&r1=1234802&r2=1234803&view=diff
==============================================================================
--- jmeter/trunk/build.xml (original)
+++ jmeter/trunk/build.xml Mon Jan 23 14:04:05 2012
@@ -1516,6 +1516,11 @@ run JMeter unless all the JMeter jars ar
 
     <property environment="env"/>
     <!-- According to http://maven.apache.org/download.html#Installation M2_HOME applies to Maven 2.2.1 and 3.0.x -->
+    <condition property="maven.present">
+      <isset property="env.M2_HOME"/>
+    </condition>
+    <fail unless="${maven.present}" message="The environment variable M2_HOME must point to a Maven installation"/>
+
     <property name="maven.home" value="${env.M2_HOME}"/>
 
     <!-- file repo url -->