-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Creating the jar was not possible because the code was trying to read a resource and use it as a File object for the PropertiesUserManagerFactory setFile method (Apache ftpserver). ftpserver already managed the case when it had to read the resource from a jar file, so I shouldn't have to create the File from the resource myself, but just create an abstract File object with the relative path of the resource. That was enough for ftpserver to find the resource in the Jar file. Check the loadFromFile method of PropertiesUserManager class of Apache ftpserver to see how they do it (using getResourceAsStream).
- Loading branch information
Jesús Gómez
committed
Jul 25, 2021
1 parent
6c45ead
commit 740654f
Showing
4 changed files
with
60 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters