This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes Updating the contents of a war file in production environment. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Updating the contents of a war file in production environment." Watch "Updating the contents of a war file in production environment." New topic
Author

Updating the contents of a war file in production environment.

Michael Arnett
Ranch Hand

Joined: Mar 22, 2001
Posts: 65
Hi all,
We are currently deploying war files at our customer's production sites, but we would like to give our customer's to update certain properties files that are contained within each web application (war file) for minor text or presentation preferences, such as alert text, prompts, etc... My initial thought is to develop a simple script to extract the properties file, update the value of the correct property and then add the changed file back into the war file. However, this seems like it might be a common problem and i was wondering if anyone had a more elegant way of doing this.
Thanks in advance for any input or ideas.
-MLA


Sun Certified Programmer for the Java 2 Platform 1.4
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
I guess Apache ANT is created for this purpose only,please see have look at http://ant.apache.org/


Spritle Software Blogs
Brian Nice
Ranch Hand

Joined: Nov 02, 2000
Posts: 195
When i update .war files, i just use winzip to open the war file and drag and drop my new file into the war file and it will overrider what is already there.
Brian
 
jQuery in Action, 2nd edition
 
subject: Updating the contents of a war file in production environment.
 
Similar Threads
Deployment practices for properties
Best Practices - Properties files
JBOSS configuring properties fies in classpath
Size of deployed WAR file and JBOSS performance.
web.xml question