maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ken...@apache.org
Subject svn commit: r553147 - /maven/shared/trunk/maven-invoker/src/main/java/org/apache/maven/shared/invoker/MavenCommandLineBuilder.java
Date Wed, 04 Jul 2007 10:09:00 GMT
Author: kenney
Date: Wed Jul  4 03:08:58 2007
New Revision: 553147

URL: http://svn.apache.org/viewvc?view=rev&rev=553147
Log:
Also check M2_HOME envvar

Modified:
    maven/shared/trunk/maven-invoker/src/main/java/org/apache/maven/shared/invoker/MavenCommandLineBuilder.java

Modified: maven/shared/trunk/maven-invoker/src/main/java/org/apache/maven/shared/invoker/MavenCommandLineBuilder.java
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-invoker/src/main/java/org/apache/maven/shared/invoker/MavenCommandLineBuilder.java?view=diff&rev=553147&r1=553146&r2=553147
==============================================================================
--- maven/shared/trunk/maven-invoker/src/main/java/org/apache/maven/shared/invoker/MavenCommandLineBuilder.java
(original)
+++ maven/shared/trunk/maven-invoker/src/main/java/org/apache/maven/shared/invoker/MavenCommandLineBuilder.java
Wed Jul  4 03:08:58 2007
@@ -376,6 +376,10 @@
                 }
             }
 
+            if ( mavenHome == null && System.getenv( "M2_HOME" ) != null )
+            {
+                mavenHome = new File( System.getenv( "M2_HOME" ) );
+            }
         }
 
         logger.debug( "Using ${maven.home} of: \'" + mavenHome + "\'." );



Mime
View raw message