Packing as a Jar

From Documentation
Revision as of 10:12, 17 September 2010 by TonyQ (talk | contribs) (→‎Config files)


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   

File descriptions

  • META-INF
    • MANIFEST.MF
      • The file for jar defino
  • metainfo
    • mesg
      • msgzul.properties
        • is for i18n resource files
    • xml
      • <component-name>.xsd
        • The xml schema for component tags
  • zk
    • lang.xml
      • The language definition file (ex. "xul/html") , and you can define components here , too.
    • lang-addon.xml
      • The language add-on define components with specific language.


  • 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-class-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.