[ http://issues.apache.org/jira/browse/JAMES-250?page=all ]
     
Stefano Bagnara resolved JAMES-250:
-----------------------------------

    Resolution: Fixed

Fixed, thank you Paul.

> fail to start if installed under a "bin" directory
> --------------------------------------------------
>
>          Key: JAMES-250
>          URL: http://issues.apache.org/jira/browse/JAMES-250
>      Project: James
>         Type: Bug
>   Components: James Core
>     Versions: 2.1.3, 3.0
>  Environment: Windows 2000 Pro v5.00.2195; jdk 1.4.2_02-b03
>     Reporter: Paul Gallagher
>     Priority: Trivial
>      Fix For: 2.3.0

>
> if you install James under a "bin" directory, e.g. in C:\bin\james-2.1.3, the 
> run.bat file fails to start because the trick with the ": operator" 
> mis-calculates the PHOENIX_HOME.
> This can be fixed by adding some crumbs to the env variable when figuring out 
> PHOENIX_HOME. Example below is how I fixed it by adding the "*" crumb. Now I 
> can run nicely under a "\bin" directory. A directory called "\bin\*" is an 
> impossibility, so it avoids this type of problem altogether.
> {sorry, this diff is against a local copy I have, since I can't get my line 
> terminators right working against the james cvs repo, but you should get the 
> idea. Issue is still in the current HEAD}
> --- run.bat   2004/04/06 05:41:38     1.1
> +++ run.bat   2004/04/06 05:45:36     1.2
> @@ -39,10 +39,10 @@
>  if not "%OS%"=="Windows_NT" goto start
>  
>  rem %~dp0 is name of current script under NT
> -set PHOENIX_HOME=%~dp0
> +set PHOENIX_HOME=%~dp0*
>  
>  rem : operator works similar to make : operator
> -set PHOENIX_HOME=%PHOENIX_HOME:\bin\=%
> +set PHOENIX_HOME=%PHOENIX_HOME:\bin\*=%
>  
>  :start

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to