Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.1-beta-3
-
Component/s: core
-
Labels:None
-
Environment:Windows
-
Number of attachments :
Description
I've had this put into ant.bat, now let's put it into maven.bat Here's how to see my patch usefullness:
Run on Windows.
Set JAVA_HOME.
Add maven/bin added to %PATH%.
Do not set MAVEN_HOME.
Type maven -v
Before my patch: ERROR: MAVEN_HOME not found in your environment.
After my patch: maven run proceeds, MAVEN_HOME set to maven/bin/..
P.S. Have got an apache account, atagunov, but not ready to apply other patches, at least right now.
Are you sure it works with all windows versions ?
I didn't remember when variables like %~dp0.. were added.