On Wed, Oct 19, 2011 at 2:47 AM, Bart Berger <bber...@brocade.com> wrote: > But how do I use ftpd.xml file to configure the server? I'm hoping there is > just some way to specify the location of ftpd.xml that I missed.
ftpd.xml is a Spring bean definition, so you need to load it using Spring. Something like: FileSystemXmlApplicationContext ctx = new FileSystemXmlApplicationContext("ftpd.xml"); FtpServer server = (FtpServer) ctx.getBean("server"); > I'd also like to programmatically create a user with write permission. > UserFactory wants a list of Authority objects, but I've been unable to figure > out how to create the Authority objects. Use UserFactory.setAuthorities() and add a org.apache.ftpserver.usermanager.impl.WritePermission. Hope that will get you started. /niklas