While packaging my application, I need to add an entry to the zip
representing an empty folder.
Ideally I would want to create that new folder on the fly, so I did this:
package(:zip).tap do |zipfile|
mkdir_p(_("target/tmpdir"))
zipfile.include(_("target/tmpdir"), :as => 'logs')
[...]
end
However the logs folder is missing from the resulting archive.
I attach to this email a buildfile to reproduce the issue, just run:
buildr package
then try unpacking the resulting zip, you'll see it is empty.
I use buildr 1.3.4.
Let me know if I should write up a bug, I'll be happy to do that.
Thanks,
Antoine