| 0.0.2 |  | 
|---|---|
| 0.0.1 |  | 
#18 in #jar
11KB
234 行
jcd
一个简单的命令行工具,用于检测 jar 文件中潜在冲突的类。Java 中有一个类似的工具,称为 jarfish。
Usage: jcd [OPTIONS] --jars <JAR_LIST>
Options:
  -j, --jars <JAR_LIST>    The jar list joined by semicolon
  -c, --check <CHECK>      [default: size] [possible values: size, crc, none]
  -e, --exclude <EXCLUDE>  The exclude package prefix, can be declared multiple times
  -h, --help               Print help
  -V, --version            Print version
示例
jcd --jars "a.jar;b.jar" --exclude package1/to/exclude --exclude package2/to/exclude 
默认情况下,当类名相同但大小不同时,该类才会被识别为冲突。可以通过 -c crc 调整以检查 crc 编号或通过 -c none 禁用检查。
待办事项
- 多线程处理
- 输出到文件
- 指定输出格式,例如:json
- 可能还有一些基准测试
依赖项
~6.5MB
~117K SLoC