This path is made available to James components via an attribute in the
Avalon Context object:

        File applicationHome =
(File)context.get(AvalonContextConstants.APPLICATION_HOME);

However this is not passed on to matchers and mailets.  I would suggest
you develop a patch
to James to make this available in the MailetContext and then use that.

Steve

> -----Original Message-----
> From: Philip Tomlinson [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, April 12, 2006 2:11 AM
> To: James Users List
> Subject: Retrieving path to install location
> 
> Hi,
> 
> What is the way to retrieve the path to the current 
> apps/james working directory.
> 
> Ideally I want to access a file which which I intend to 
> package in the james.sar file.
> 
> Rgds,
> Phil
> 
> -------------------------
> Philip Tomlinson
> PJT Consulting
> Email: [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to