Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cherry-pick: 使用绝对路径解决 Java 插件执行问题 #3000

Merged
merged 2 commits into from
Mar 27, 2025

Conversation

littleniannian
Copy link
Collaborator

关联的 issue

https://github.com/actiontech/sqle-ee/issues/2307

描述你的变更

确认项(pr提交后操作)

Tip

请在指定复审人之前,确认并完成以下事项,完成后✅


  • 我已完成自测
  • 我已记录完整日志方便进行诊断
  • 我已在关联的issue里补充了实现方案
  • 我已在关联的issue里补充了测试影响面
  • 我已确认了变更的兼容性,如果不兼容则在issue里标记 not_compatible
  • 我已确认了是否要更新文档,如果要更新则在issue里标记 need_update_doc

- 新增 getJdkPath 函数获取 JDK 绝对路径
- 更新 Java 插件执行命令,使用绝对路径
- 移除 RPM 构建中对 SQLE_JAVA_HOME 环境变量的设置

(cherry picked from commit 6e3b108)
- 使用 filepath.Join 代替字符串拼接,以确保跨平台兼容性
- 添加错误处理,防止在获取当前目录时出现未捕获的错误

(cherry picked from commit 7706abe)
@littleniannian littleniannian requested a review from iwanghc March 27, 2025 07:44
@actiontech-bot actiontech-bot requested review from winfredLIN and removed request for iwanghc March 27, 2025 07:44
@littleniannian littleniannian merged commit 08712eb into release-4.2502.x Mar 27, 2025
3 checks passed
@littleniannian littleniannian deleted the cherry-pick-env branch March 27, 2025 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant