Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsWhat is the correct way to edit zip or archive files in the workspace?
https://www.eclipse.org/forums/index.php/mv/msg/209165/670099/#msg_670099
Here is my problem:
I have a WAR file located in the root of an EAR project, and when I finish editing the web.xml (via a plugin I wrote) and repackage the WAR, the project explorer appears to update. However, the deployment descriptor node for the WAR under EAR DD --> Modules --> Binary does not reflect the changes I made to the web.xml file but the repackaged war file does contain the updated web.xml file.
I am updating the contents of the war file with setContents method from IFile and giving an input stream.
All I can tell from debugging is that when the common navigator/project explorer goes to update the model from the changed war file, the JavaEEBinaryComponentLoadAdapter calls getInputStream which has the correct path, but the ZipEntry cannot be retrieved because inside the ZipFile class closeRequested is set to true. This causes the getEntry(String) method in ZipFile to return null.
This causes me to think the way I'm editing/updating the contents of the WAR file might be causing a problem.
Any help is appreciated,
Thanks.]]>Adam Steiner2011-05-12T16:28:54-00:00