Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/JAMES-250

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: JAMES-250
    Summary: fail to start if installed under a "bin" directory
       Type: Bug

     Status: Unassigned
   Priority: Trivial

    Project: James
 Components: 
             James Core
   Versions:
             3.0
             2.1.3

   Assignee: 
   Reporter: Paul Gallagher

    Created: Thu, 8 Apr 2004 7:09 PM
    Updated: Thu, 8 Apr 2004 7:09 PM
Environment: Windows 2000 Pro v5.00.2195; jdk 1.4.2_02-b03

Description:
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



---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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

Reply via email to