aspose file tools*
The moose likes Groovy and the fly likes how to do an update an application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "how to do an update an application" Watch "how to do an update an application" New topic
Author

how to do an update an application

adwin wijaya
Greenhorn

Joined: Oct 01, 2008
Posts: 4
Hi,

i was asked by my friend to do create a web application using java (i am going to use grails). I have no problem with grails, but I got a problem when I need to do an update. His office was located on far far away from my city. So I have to send a war file everytime I did an update. They have internet but not connected to their application server ... so I have to send via email.

the problem is, war is quite big (about 25 MB) to be send via email... I don't want to send all of them if I just add/update an class. Is there any effective ways to send update (just the class) and I wish it looks like an installshield ...
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 19060
    
  40

Grails is not based on Java. It is based on Groovy. So... I am going to move this topic to the Groovy forum.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

You should look into setting up a source control repository that you both can access. Not only will this help keep backups of all your code and make rolling back changes easier, but then you can simply change your one class, commit it to source control, and your friend can pull it down and deploy it.


A good workman is known by his tools.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

Marc's idea is probably the best, but if you cannot set up a common source control system here is an alternative that might help.

Set up a local source control system, such as Subversion. Then get the Subversion plugin for Eclipse. Use Team | Share Project to place the source code into Subversion. After you make changes, use Team | Create Patch to create a patch file and send that to your friend. Your friend can then apply the patch to his source. Of course, your fiend should also be using Subversion and follow these same steps. In addition, remember to commit your changes to Subversion both when you send a patch to him and after you apply a patch he sends to you.

This is not ideal, but should be workable is you are diligent in sharing patches. But just to verify that your code is in synch one of you should periodically send the full source to the other who would then do a diff to verify that things are in synch.

I am currently using a variation of this method to maintain source code with one of my colleagues.


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to do an update an application