Noel J. Bergman wrote:

Danny,

 +        //Temporary get out to allow complex mailet config files to stop
blocking sergei sozonoff's work on bouce processing
 +        attributes.put("confDir",
((BlockContext)myContext).getBaseDirectory().getCanonicalPath()+"/conf/");

This introduces a problem.  BlockContext is Phoenix dependent.  We should
find out from Stephen if there is a portable way to accomplish the same
goal.  I believe that I have code from Peter that removes BlockContext for
the mailet class loader code.  I'll look and see.  I should have time to
start looking at his contributions (tons of new features and enhancements),
and James v3.

It would probably be a best to do the following:

1. Create: james/util/AvalonConstants.java

public static final String URN_HOME_DIR = "app.home";

2. Then update the source

String path =
((File)context.get( URN_HOME_DIR ) ).getCanonicalPath() +"/conf/";

Once a standard URN is defined under the framework (or container work) we will be able to synchronize containers. The "app.home" key works in both Merlin and Phoenix. Merlin also supports "urn:avalon:home" - but its not Avalon official.

Cheers, Steve.


--- Noel


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




--

Stephen J. McConnell
mailto:[EMAIL PROTECTED]
http://www.osm.net




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

Reply via email to