File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WAR Files

 
Abiodun Adisa
Ranch Hand
Posts: 495
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please is there a tool out there that i can use to open and modify War Files
 
Rusty Enisin
Ranch Hand
Posts: 107
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic