Commit 45bb5d0
fix(core.gradle-plugin): 修复在 Windows 平台连续 gradle clean 打包失败的问题
transform-temp.jar 文件被新创建的 ClassPool 持有访问且没有释放,导致在 Windows 环境下 gradle clean 无法删除 transform-temp.jar 。新的方案是基于 IO 流读取 transform-temp.jar 文件中的 class 文件,并创建 CtClass 导入 ClassPool 中,避免 ClassPool 对 transform-temp.jar 文件持有访问。1 parent 05c213b commit 45bb5d0
1 file changed
Lines changed: 11 additions & 1 deletion
File tree
- projects/sdk/core/transform-kit/src/main/kotlin/com/tencent/shadow/core/transform_kit
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
78 | 88 | | |
79 | 89 | | |
80 | 90 | | |
| |||
0 commit comments