config.includes won't include hidden directories
Closed this issue · 1 comments
I need to include jrubyfx's cache so I add this line to config/warbler.rb: config.includes = FileList['res/fxml/.jrubyfx_cache']
If jrubyfx doesn't detect this cache, it will try to recreate it from within the jar, leading to permission denied errors.
Warbler cannot find this folder: File not found; res/fxml/.jrubyfx_cache not in archive
So including a directory does not include the contents of that directory. Adding a directory to config.dirs
does not include any children that are hidden. This is probably intended behavior but consider adding an option to include hidden children in your search of config.dirs
.
Either explicitly point to that folder in config.dirs
e.g. config.dirs = %w(res res/fxml/.jrubyfx_cache)
or use a wildcard in FileList
e.g. config.includes = FileList['start.rb', 'res/fxml/.jrubyfx_cache/*']
.