fix: relocate cwos-portal decompiled output to correct path; remove nested directory

Former-commit-id: dc30d42a8c55ed8b2382a41dc2434233fbed9930
This commit is contained in:
反编译工作区
2026-04-29 12:09:48 +08:00
parent ea8e492076
commit e8672a3c7b
1759 changed files with 547735 additions and 280 deletions
@@ -0,0 +1,58 @@
# V1 电梯模块反编译输出(CFR)
本目录由脚本生成,**勿手改**;重新生成会带时间戳子目录并更新 `cfr-from-cw-lib-current` 符号链接。
## 生成命令
```bash
cd maven-cw-elevator-application
./scripts/decompile_v1_elevator_jars.sh
```
前提:
- 仓库根存在 `cw-elevator-application-V1.0.0.20211103/cw_lib/cw-elevator-application-{common,data,service,web}-1.0-SNAPSHOT.jar`
- 仓库根存在 `artifacts/decompiled/v1-cfr-compare-20211103/cfr-0.152.jar`(或设置环境变量 `CFR_JAR`
可选环境变量:
| 变量 | 含义 |
|------|------|
| `V1_RUN_DIR` | V1 解压目录绝对路径(默认:仓库根下 `cw-elevator-application-V1.0.0.20211103` |
| `CFR_JAR` | CFR jar 路径 |
| `V1_DECOMP_OUT` | 输出根路径前缀(默认:`tools/v1-decompiled/cfr-from-cw-lib`,实际会追加 `-时间戳` |
| `DECOMPILE_V1_FAT_JAR=1` | 额外反编译 fat jar(耗时长、体积大) |
## 目录结构
```
cfr-from-cw-lib-<timestamp>/
MANIFEST.txt
cw-elevator-application-common-1.0-SNAPSHOT/
cn/cloudwalk/elevator/...
cw-elevator-application-data-1.0-SNAPSHOT/
cn/...
...
```
`cfr-from-cw-lib-current` → 最近一次生成目录。
## 与 V2 源码比对
**简要相似度报告**
```bash
python3 tools/elevator_api_parity/scripts/source_parity_scan.py
```
`tools/elevator_api_parity/report/SOURCE-PARITY-BY-CLASS-decomp.md`
**全量差异梳理(推荐)**:按优先级分组 + 完整配对表 + JSON
```bash
python3 tools/elevator_api_parity/scripts/v1_v2_diff_issues_report.py --json
```
`report/V1-V2-DIFF-ISSUES.md`、同基名 `.json`
环境变量:`V1_DECOMP_ROOT``MV_ROOT`(默认为本 Maven 工程根)。