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

前端 未结 6 654
礼貌的吻别
礼貌的吻别 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 02:57

    4129445 : An API to incrementally update ZIP files in the Sun/Oracle bug database asks for this feature to be implemented in the java api.

    From the Evaluation:

    "It is easy to sympathize with those who want this bug fixed. It is perhaps easier to sympathize with those who have, inadvertently, overwritten JAR files that are already in-use by a running JVM."

    and

    "It would have been nice if the jar & zip APIs had allowed for mutable zip files from day one. But at this point adding mutability to jar & zip files from Java(or rather, increasing the ease of mutating them) seems likely to introduce more hard-to-debug problems."

提交回复
热议问题