Closed Vampire closed 5 years ago
I'm using the version released to Maven by @adamretter (evolvedbinary). There the res.zip does not have the directory entries first but last in the ZIP:
$ zipinfo com/oracle/appbundler/res.zip
Archive: com/oracle/appbundler/res.zip
Zip file size: 1814 bytes, number of entries: 6
-rw---- 6.3 fat 822 bl defN 19-Jun-06 11:29 de.lproj/Localizable.strings
-rw---- 6.3 fat 733 bl defN 19-Jun-06 11:29 en.lproj/Localizable.strings
-rw---- 6.3 fat 847 bl defN 19-Jun-06 11:29 fr.lproj/Localizable.strings
drwx--- 6.3 fat 0 b- stor 19-Jun-06 11:29 de.lproj/
drwx--- 6.3 fat 0 b- stor 19-Jun-06 11:29 en.lproj/
drwx--- 6.3 fat 0 b- stor 19-Jun-06 11:29 fr.lproj/
6 files, 2402 bytes uncompressed, 1066 bytes compressed: 55.6%
And with that your code in AppBundlerTask#copyResources
does not cope well.
It requires that the directories come first.
Here is a fix for that - https://github.com/TheInfiniteKind/appbundler/pull/48
Fixed by #48
I tried to use your ant task and started with the minimum required settings as a start, but when I try to execute, I get the following error. The
Contents\Resources
directory is there, but it misses thede.lproj
directory into which it wants to copy theLocalizable.strings
file.