File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes WAR Files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "WAR Files" Watch "WAR Files" New topic

WAR Files

Abiodun Adisa
Ranch Hand

Joined: Jan 17, 2002
Posts: 495
Please is there a tool out there that i can use to open and modify War Files
Rusty Enisin
Ranch Hand

Joined: May 26, 2005
Posts: 107
A war file is kinda like a zip file with a spcific stricture and a different zip algorythm. Both WinRar and WinZip can open it if you are using windows. I like WinRar.

If you are using a linux like OS use Java's jar command.

jar -tf warfilename.war

As for modifying the war file, you can use WinRar and WinZip to delet files in the archive. If you have an editor set as default editor for .java files you can double click the file and it will open in your editor. Then when you save the file, it will update the archive. But, you probably do not have any .java files in your archive. Well, you shouldn't anyway. You can edit anything that is not compiled.

By far the best way is to edit the files first and then use an ant build script to build the war file.
[ July 26, 2005: Message edited by: Rusty Enisin ]

The squeaky wheel gets the grease. Well, that or replaced...
I agree. Here's the link:
subject: WAR Files
It's not a secret anymore!