Packing as a Jar

From Documentation


Packing as a Jar




The Jar Archive

This step is to pack a jar for our ZK component , and then you can include it to your project or share with others.

To this we are going to show what a component jar need , and what configuration you can set in the jars.

config files

----/META-INF/MANIFEST.MF
     
----/metainfo/mesg/msgzul.properties                              (optional) 
                              /msgzul_<locale>.properties              (optional ...)
 
                    /xml/<component-name>.xsd                       (optional)

                    /zk/lang.xml                                                  (optional)
                    /zk/lang-addon.xml   


  • For exmaple.
----/META-INF/MANIFEST.MF
     
----/metainfo/mesg/msgzul.properties 
                              /msgzul_en_us.properties 
                              /msgzul_ca.properties 
                              /msgzul_ko.properties 
                              /msgzul_cs.properties 
                              /msgzul_zh.properties 
                              /msgzul_zh_tw.properties    
                              (......and so on )

                    /xml/simplelabel.xsd
                    /zk/lang.xml 
                    /zk/lang-addon.xml


Component classes


----/<java-package-folder and classes> 


  • For exmaple.

----/com/foo/SimpleLabel.class
                   /events/ClearEvent.class

Widget js-class/css/mold


----/web/js/<component-package>/mold/<component-mold-file>.js
                                                       /css/<component-css-file>              (optional)
                                                       /<component-name>.js
                                                       /zk.wpd


  • For exmaple.

----/web/js/com/foo/mold/simple-label.js
                               /css/simple-label.css.dsp 
                               /simple-label.js
                               /zk.wpd


other static files

----/web/<component-package>/css/zk.wcs                              (optional)
                                                         /<css-files>                       (optional)
                                                   /img                                         (optional)


Subsections:




Last Update : 2010/09/17

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.