You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by ji...@apache.org on 2004/04/16 17:30:29 UTC
[jira] Updated: (JAMES-250) fail to start if installed under a "bin" directory
The following issue has been updated:
Updater: Noel J. Bergman (mailto:noel@devtech.com)
Date: Fri, 16 Apr 2004 8:28 AM
Changes:
Fix Version changed to 2.2.0
---------------------------------------------------------------------
For a full history of the issue, see:
http://issues.apache.org/jira/browse/JAMES-250?page=history
---------------------------------------------------------------------
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
Fix Fors:
2.2.0
Versions:
3.0
2.1.3
Assignee:
Reporter: Paul Gallagher
Created: Thu, 8 Apr 2004 7:09 PM
Updated: Fri, 16 Apr 2004 8:28 AM
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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org