M2_HOME = C:\PROGRA~1\MAVEN-~1.0-A\bin\m2.bat\..
which points to bin.
I also thought it was supposed to return the directory, but it's returning the file (this is happening on win2000, I've seen batch commands behave differently on various win versions, so maybe it's correct on winXP?)
Hence my correction to go up one more from bin...
Brett Porter wrote:
Hi,
On 4/17/05, baleineca <[EMAIL PROTECTED]> wrote:
Change line 86 from: if "%OS%"=="Windows_NT" SET M2_HOME=%~dps0\..
to
if "%OS%"=="Windows_NT" SET M2_HOME=%~dps0\..\\..
(need double \\ to escape)
Can you explain this to me? I'm no .bat file wizard, but I thought I tested this. IIRC, %~dps0 is the (d)rive and (p)ath of the batch file (%0), using a (s)hort name.
So M2_HOME=c:\maven2\bin\.. which is correct. I thought yours would give c:\ in that case.
Thanks... - Brett
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
