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

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 09-11-2007, 03:42 AM
Active Member
 
Posts: 33
Default [SOLVED] Howto deploy small changes to ZimbraServer on Binary Install?

I have some small changes to the "com.zimbra.cs.store.StoreManager" Class I would like to build and deploy on a binary install I have setup. Just for testing.

Is there a way I can do a build of the ZimbraServer, java only, from ant ZimbraServer/build.xml and just copy the updated jar files to an existing binary install.... then restart for testing?

I was having some issues getting the dev enviroment running. It would save a good bit of time if it were possible to take this approach.

Any information would be appreciated.

Thank you,

Kevin
Reply With Quote
  #2 (permalink)  
Old 09-11-2007, 08:26 AM
Zimlet Guru & Moderator
 
Posts: 467
Default

You should be able to generate the new WAR and deploy it over the existing war. Obviously don't do this on a production server. I have not tried it myself.
Reply With Quote
  #3 (permalink)  
Old 09-11-2007, 10:29 AM
Active Member
 
Posts: 33
Default

Great!

So which ant build item would I user to do this? "war"?

Where would the jar files be built if I take this approach?
Reply With Quote
  #4 (permalink)  
Old 09-14-2007, 03:40 PM
Zimlet Guru & Moderator
 
Posts: 467
Default

Quote:
Originally Posted by kbaker View Post
Great!

So which ant build item would I user to do this? "war"?

Where would the jar files be built if I take this approach?
I beleive a dev-sync will overwrite it. Again, this is dangerous, but I think possible.
Reply With Quote
  #5 (permalink)  
Old 09-14-2007, 04:51 PM
Active Member
 
Posts: 33
Default

So I went ahead and did this the other day.

It worked great! and was really easy to setup.
  1. Install binary install of Zimbra on a box. This is *only* *ONLY* for development. Even though binary it is not for production.
  1. Install source on another machine, or in another directory. Do not deploy all of Zimbra with this.
  1. Make change in Java source. I am working in Frank, not trunk.
  1. Build using ANT. Make sure to use "dev-sync"
  1. Copy all jar files to dev binary Zimbra install
  1. Restart Zimbra

I'm not sure how this would be risky at all. Maybe I'm missing something, but this seems like a *much* easier way to setup a dev environment for updating Java code.

Let me know if you have any further thoughts. Thanks for your help on this.

- Kevin
Reply With Quote
  #6 (permalink)  
Old 09-21-2009, 05:11 PM
Intermediate Member
 
Posts: 16
Default

Hi Kevin,

I have been searching for similar info given above. I need to know how to deploy simple java code changes.Right now I have added few lines in server code using eclipse and could build jar files. I tried repalcing zimbrastore.jar in the existing/running zimbra app. But I could not launch web page? Am I missing something? which all files I should be replacing for the changes to take effect? Appreciate any help with this.
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.