You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by br...@apache.org on 2008/12/18 09:02:24 UTC

svn commit: r727672 - in /maven/components/branches/maven-2.0.x: ./ build.xml

Author: brett
Date: Thu Dec 18 00:02:23 2008
New Revision: 727672

URL: http://svn.apache.org/viewvc?rev=727672&view=rev
Log:
[MNG-3757] avoid deleting M2_HOME if it is empty

Modified:
    maven/components/branches/maven-2.0.x/   (props changed)
    maven/components/branches/maven-2.0.x/build.xml

Propchange: maven/components/branches/maven-2.0.x/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Thu Dec 18 00:02:23 2008
@@ -1,4 +1,4 @@
 /maven/components/branches/maven-2.0.10-RC:720697,725329-725330,725342,725349,725359,725748,726876-726881
 /maven/components/branches/maven-2.0.x:533160,636838,645583,645642,647357,649903,657432,659677,662033,662251,669665,670358,673499,673905,674059,675074,675087,675096,675375,675380,680604,682055
-/maven/components/branches/maven-2.1.x:720038
+/maven/components/branches/maven-2.1.x:720038,727670
 /maven/components/trunk:720001,721902,726845

Modified: maven/components/branches/maven-2.0.x/build.xml
URL: http://svn.apache.org/viewvc/maven/components/branches/maven-2.0.x/build.xml?rev=727672&r1=727671&r2=727672&view=diff
==============================================================================
--- maven/components/branches/maven-2.0.x/build.xml (original)
+++ maven/components/branches/maven-2.0.x/build.xml Thu Dec 18 00:02:23 2008
@@ -36,7 +36,16 @@
     <condition property="maven.home" value="${env.M2_HOME}">
       <isset property="env.M2_HOME"/>
     </condition>
-    <fail unless="maven.home" message="You must set the M2_HOME environment variable or specify a maven.home property to this Ant script"/>
+    <fail message="You must set the M2_HOME environment variable or specify a maven.home property to this Ant script">
+      <condition>
+        <or>
+          <not>
+            <isset property="maven.home" />
+          </not>
+          <equals arg1="${maven.home}" arg2="" trim="true" />
+        </or>
+      </condition>
+    </fail>
     <echo>Using Maven home at: ${maven.home}</echo>
   </target>