You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ftpserver-users@mina.apache.org by Eugene Rachinsky <ra...@gmail.com> on 2008/03/26 16:01:38 UTC

server root directory

Hi

I am trying to embed  ftpserver in OSGi environment. How can I specify
root directory or custom
home and log directories?

Regards,
-- 
Eugene Rachinsky

Re: server root directory

Posted by Niklas Gustavsson <ni...@protocol7.com>.
Hi

On Wed, Mar 26, 2008 at 4:01 PM, Eugene Rachinsky <ra...@gmail.com> wrote:
> Hi
>
>  I am trying to embed  ftpserver in OSGi environment.

FtpServer is not currently built as a bundle, however I'm currently
looking into this. I will make a major rearrangement of our packages
structure so that we get the public API clearly separated from our
internals. After that I'll update our build to generate the correct
OSGi metadata.

> How can I specify
>  root directory or custom
>  home and log directories?

Currently, the only way of setting the home directory is via whatever
the UserManager does when loading the user. For example, the
PropertiesUserManager keeps users in a file. If this doesn't suite
your needs you could easily write a UserManager that you can configure
from your Java code and that way customize the user home directories.

Log directories are set using whatever logging implementation you use,
for example via the log4j config.

/niklas