maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ken...@apache.org
Subject svn commit: r552919 - /maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/Verifier.java
Date Tue, 03 Jul 2007 17:12:10 GMT
Author: kenney
Date: Tue Jul  3 10:12:07 2007
New Revision: 552919

URL: http://svn.apache.org/viewvc?view=rev&rev=552919
Log:
Also check M2_HOME envvar - the most commonly used way to specify a maven version on the commandline.

Modified:
    maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/Verifier.java

Modified: maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/Verifier.java
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/Verifier.java?view=diff&rev=552919&r1=552918&r2=552919
==============================================================================
--- maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/Verifier.java (original)
+++ maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/Verifier.java Tue
Jul  3 10:12:07 2007
@@ -822,6 +822,13 @@
         }
         else
         {
+            mavenHome = System.getenv( "M2_HOME" );
+
+            if ( mavenHome != null )
+            {
+                return mavenHome + "/bin/mvn";
+            }
+
             File f = new File( System.getProperty( "user.home" ), "m2/bin/mvn" );
 
             if ( f.exists() )



Mime
View raw message