File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

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: http://aspose.com/file-tools
 
subject: WAR Files
 
Similar Threads
how to put my .war file into netbean IDE and make it run?
how to merge war file and ear file?
WAR files
Is it possible to deploy two wars in the same context?
How to deploye