问题描述
有人可以完成将 .patch 文件应用到 WSO2 ESB v4.0.3 所需遵循的步骤吗?我尝试了以下方法:
Can someone please run through the steps that you need to follow to apply .patch files onto WSO2 ESB v4.0.3? I've tried the following:
上传
.patch
文件到repository/components/patches
和carbon_home/lib/patches
Upload
.patch
file torepository/components/patches
andcarbon_home/lib/patches
运行 wso2server.sh start -DapplyPatches
此命令在 components/patches 目录中创建一个名为 patch000
的目录,并用插件填充它.
This command creates a dir called patch000
in the components/patches directory and fills it with plugins.
我想申请的补丁是https://issues.apache.org/jira/browse/TRANSPORTS-51
非常感谢
推荐答案
您需要将 .patch 文件应用于代码库并从中创建 jar.然后创建一个带有补丁名称的文件夹(例如:patch001)并将jar(s)放入其中并将新创建的补丁文件夹(例如:patch001)复制到存储库/组件/补丁.现在运行 wso2server.sh -DapplyPatches 就可以了.
You need to apply .patch file to the code base and create jar(s) out of it. Then Create a folder with the name of the patch (eg: patch001) and place the jar(s) inside and copy newly created patch folder (eg: patch001) to repository/components/patches.Now running the wso2server.sh -DapplyPatches will work.
当您执行 -DapplyPatches 时,它会将 repository/components/plugins 目录的原始内容备份到 repository/components/patches 目录,这就是您看到 patch000 文件夹的原因(因此可以恢复到以前的状态).
when you execute -DapplyPatches, it takes a backup of the original content of the repository/components/plugins directory to repository/components/patches directory that's why you see patch000 folder (hence revert-back to a previous state is possible).
这篇关于如何在 wso2 carbon 中应用补丁文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!