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

前端 未结 6 651
礼貌的吻别
礼貌的吻别 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:56

    I too was trying to update a jar without reproducing the jar's file structure external to the jar, and for some reason the jar uf jarFileName -C ... command never let me copy the file to a child directory in the jar. I then tried cutting and pasting the file into the jar using ubuntu 14.04's built in archive manager (i.e. right click on jar file and chose "open with archive manager" then paste the file anywhere in the jar's file structure), and it worked. It's not a cli solution but it works. Hope this saves someone else some time.

提交回复
热议问题