0

Eine Datei in einem Jar ersetzen – Replace File in JAR Archive

Posted by admin on January 18, 2011 in Java, Programming |

Beim surfen bin ich auf ein praktisches ‘snippet’ von DZONE gestossen, mit dessen Hilfe eine einzelne Datei in einem Jar ersetzt werden kann.

… It replaces a file (in this case the content.xml) with a newer version of this file. To do this a new JAR archive is generated, all content (except the file which has to be replaced) of the old file is copied to the new archive, the newer version of the file is added to the archive, the old archive is deleted and the new archive gets the name of the old one.

Hier geht es zum ‘snippet‘.

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Copyright © 2010-2024 Analysisfreaks.de All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.0.4, from BuyNowShop.com.

Developed by Hardik