Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Zimlets

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-09-2009, 04:17 AM
Project Contributor
 
Posts: 87
Default [SOLVED] zimlet _dev in Zimbra 6

On previous versions of Zimbra, one can write zimlets in a special _dev directory and try the zimlets without restart the mailbox server.

On Zimbra 6, there is a new directory for deployed zimlets, /opt/zimbra/zimlets-deployed/, but the _dev directory does not work here. Are any other way to try the zimlets without a restart of the mailbox server?
__________________
Patricio Bruna
http://www.it-linux.cl/pbruna
Reply With Quote
  #2 (permalink)  
Old 12-09-2009, 05:18 AM
Zimbra Employee
 
Posts: 105
Default

The Development Directory is supported on ZCS 6.

The Zimlet Development Directory is a convenient way to do iterative zimlet development. The development directory allows you to develop zimlets without having to continually package (i.e. ZIP), deploy and undeploy the zimlet.

You can create zimlet folders and associated file structures under the _dev directory and those zimlets will get picked-up (and recompiled) with each browser refresh. Changes made to the zimlet files in this directory will be automatically reflected when the browser is refreshed. Additionally, files are not obfuscated and merged with other Zimlet files and JSP files can be placed within the zimlet folder and will be compiled every time browser is refreshed.

1. To create the Development Directory, after installing ZCS, browse to your install directory:

{zcs-install-dir}/zimlets-deployed/

2. Create a _dev directory:

mkdir {zcs-install-dir}/zimlets-deployed/_dev

3. Use this directory to create zimlet folders and file structures for zimlet development.


Is there something specific you are trying to do that isn't working? Or are all zimlets you try to build in this directory not working (i.e. not getting loaded)?
Reply With Quote
  #3 (permalink)  
Old 12-09-2009, 07:24 AM
Project Contributor
 
Posts: 87
Default

My mistake, is working ok.
Thanks.
__________________
Patricio Bruna
http://www.it-linux.cl/pbruna
Reply With Quote
  #4 (permalink)  
Old 12-15-2009, 09:57 AM
New Member
 
Posts: 4
Default

While I change my source code, nothing change in Zimbra interface. I'm using "zmmailboxdctl restart" command. Is it ok?

I have deploy my zimlet under "{zcs-install-dir}/zimlets-deployed/_dev/my_zimlet" with files inside. Is it the right way to do?

Is it necessary to deploy my zimlet first?
Reply With Quote
  #5 (permalink)  
Old 12-15-2009, 10:03 AM
Project Contributor
 
Posts: 87
Default

ruddy32,
you dont need to deploy the zimlet if you are using the special _dev folder.
After any changes you've made, just reload the page in you browser.
__________________
Patricio Bruna
http://www.it-linux.cl/pbruna
Reply With Quote
  #6 (permalink)  
Old 12-21-2009, 06:14 AM
New Member
 
Posts: 4
Default

I don't understand what's append. I have started development using deployment process. Since I'm using the _dev directory, my zimlets does not works. Right click on my zimlet show short menu, but clicking on the menu item itself does not show my zimlet settings dialog box. This works while using deployment process.
What could going wrong with my Zimbra ?
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.