I usually do two things: when working on the js and xml file I go the _dev way.
Otherwise I fully deploy from a zip file, because when working with a jsp you gotta restart mailboxd anyways(guess there's a possible shortcut to it, but I'm not aware of it yet...:-( ). Therefore it's better to avoid _dev, because when fully deploying you gain the following:
- working .properties substitution
- getConfig working
- no jsp path problems (I used to make a symlink in _dev to the jsp file once - I could have hardcoded the _dev jsp filepath as well in the source)
- more production-like testing (of course supposing you've got a dedicated test box for this!)
- and maybe more, but don't recall any further pros right now...
Try doing zimlet programming without too many JSP-JS hoppings then ;-)
About reloading and jsp caching, I set an alias in ~/.bashrc (remember to source it or relogin the first time)
Code:
alias zimrest='rm -rf /opt/work/temp/it_005fopen1_005fzimlet ; mv /opt/zimbra/jetty-6.1.5/work/service/jsp/org/apache/jsp/zimlet/it_005fopen1_005fzimlet/ /opt/work/temp/ && zmmailboxdctl restart'
checky your zimlet path first, and modify the alias accordingly. Could have used a script as well, but this way I solved my need faster. Anyways we don't need mission-critical checks here. The && is sufficient enough ;-9