You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by vs...@apache.org on 2008/01/04 14:14:41 UTC

svn commit: r608827 - /maven/components/branches/maven-2.0.x/maven-core/src/bin/mvn

Author: vsiveton
Date: Fri Jan  4 05:14:36 2008
New Revision: 608827

URL: http://svn.apache.org/viewvc?rev=608827&view=rev
Log:
MNG-3310: JAVACMD set incorrectly when JAVA_HOME is not set
Submitted by: Matthijs Wensveen
Reviewed by: Vincent Siveton

o patch applied

Modified:
    maven/components/branches/maven-2.0.x/maven-core/src/bin/mvn

Modified: maven/components/branches/maven-2.0.x/maven-core/src/bin/mvn
URL: http://svn.apache.org/viewvc/maven/components/branches/maven-2.0.x/maven-core/src/bin/mvn?rev=608827&r1=608826&r2=608827&view=diff
==============================================================================
--- maven/components/branches/maven-2.0.x/maven-core/src/bin/mvn (original)
+++ maven/components/branches/maven-2.0.x/maven-core/src/bin/mvn Fri Jan  4 05:14:36 2008
@@ -128,7 +128,7 @@
       JAVACMD="$JAVA_HOME/bin/java"
     fi
   else
-    JAVACMD=java
+    JAVACMD="`which java`"
   fi
 fi