[sword-devel] How to zip module files

NF lzj369 at gmail.com
Thu Feb 28 18:47:34 MST 2008


Thanks, DM!

I have done the editor to edit and generate the compressed module file
through a click. It works fine. (Still prototype though.) It also
supports importing existing modules into the editor.

Right now, when I try to package the module and conf to a zip file so
I can test export function as well as downloading, the program
fails(jsword 1.5 api).

Through debugger, I noticed that when it tries to unzip the zip file,
it treat mods.d and other module structure (module, text, ztext, ....)
as files instead of directories. thus the unzip operation failed.

How do you run the  simple recursive zip? That is what I am asking...

God Bless!

ZJ


On Thu, Feb 28, 2008 at 8:03 PM, DM Smith <dmsmith555 at yahoo.com> wrote:
> ZJ,
>  I'm not sure what you mean by zip? A module can be compressed with
>  mod2zmod. This program will compress the module internally. Both Sword
>  and JSword can read them. JSword at this time cannot create modules of
>  any type.
>
>  We also package the modules parts into a zip file, but that just a
>  simple recursive zip.
>
>  Hope this helps.
>
>  In Him,
>         DM
>
>
>
>  On Feb 28, 2008, at 4:43 PM, NF wrote:
>
>  > Hi,
>  >
>  > I have being preparing make modules for sword platform.
>  >
>  > One thing is bugging me: my zip file does not work!
>  >
>  > I used 7zip and also winzip to zip the conf and moudle files. I can
>  > tell the the layout of the files are the same as what I downloaded
>  > from sword rawzip folder.
>  >
>  > I tried to use jsword, it tries to create mods.d as file, also, other
>  > directories as file, instead of directory.
>  >
>  > So instead of telling me to send in the files, can anyone tell me how
>  > you guys zip the modules?
>  >
>  > thanks!
>  >
>  > ZJ LI
>  >
>  > _______________________________________________
>  > sword-devel mailing list: sword-devel at crosswire.org
>  > http://www.crosswire.org/mailman/listinfo/sword-devel
>  > Instructions to unsubscribe/change your settings at above page
>
>
>
>  _______________________________________________
>  sword-devel mailing list: sword-devel at crosswire.org
>  http://www.crosswire.org/mailman/listinfo/sword-devel
>  Instructions to unsubscribe/change your settings at above page
>



More information about the sword-devel mailing list