Update a file inside a JAR in a specific directory with jar command

前端 未结 6 660
礼貌的吻别
礼貌的吻别 2020-12-13 02:35

So I\'ve been looking high and low for an answer to this and obviously haven\'t found a satisfactory answer.

The problem is that I want to update a JAR (or any file

6条回答
  •  无人及你
    2020-12-13 03:08

    I think this is due to how the classes in the java.util.zip package work. They sit on top of streams.

    The ZipFile class is built on top of a ZipFileInputStream. Writing zipfiles is done by feeding the ZipEntries one by one to a ZipOutputStream.

    I assume the jar executable is built on top of these classes.

提交回复
热议问题