Linux中替换jar包中的文件
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
场景描述:metabase.jar 包中替换文件app-public.bundle.css的内容
一、查询需要替换的文件在jar中的位置
> jar tvf *****.jar | grep {fileName}
二、将文件解压到当前目录(以及文件所在目录)
> jar xvf ****.jar {filePath}
此命令将文件所在目录解压出来,会在当前目录生成一个新的文件夹,目录结构同:{filePath}
三、进入目录修改文件内容
去掉标题、隐藏底部: 在app-public.bundle.css中搜索.EmbedFrame-header 中添加上display:none
四、将替换后的目录打包进jar文件 实现替换
> jar uvf ***.jar {filePath}




A beautiful web dashboard for Linux
最近提交(Master分支:9 天前 )
186a802e
added ecosystem file for PM2 5 年前
5def40a3
Add host customization support for the NodeJS version 5 年前
更多推荐
所有评论(0)