aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Way to write to an xml file in META-INF of a  jar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Way to write to an xml file in META-INF of a  jar" Watch "Way to write to an xml file in META-INF of a  jar" New topic
Author

Way to write to an xml file in META-INF of a jar

raghu rama
Greenhorn

Joined: Dec 20, 2012
Posts: 12
Hi all,
I have been learning Ant tool for a while,I have a question regarding access of xml file .Is there any way to write to an xml file,that is present in the META-INF folder of the jar ,without retreiving the xml file
?
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30766
    
156

Welcome to CodeRanch!

It sounds like you are trying to make changes to a file that exists inside a jar without first referencing the original xml file. In which case, no you cannot do that. You can extract the XML file, update it and put it back - all in Ant though.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
raghu rama
Greenhorn

Joined: Dec 20, 2012
Posts: 12
Thanks a lot for the reply Jeanne
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Way to write to an xml file in META-INF of a jar