jar_conflict_detecter

Crates.iojar_conflict_detecter
lib.rsjar_conflict_detecter
version0.0.2
sourcesrc
created_at2023-05-27 09:26:16.874421
updated_at2023-05-28 02:20:08.637265
descriptionA simple command line tool to detector the potential conflicted classes in jars
homepagehttps://github.com/Aitozi/jar_conflict_detector
repositoryhttps://github.com/Aitozi/jar_conflict_detector
max_upload_size
id875864
size30,807
Min (Aitozi)

documentation

README

jcd

A simple command line tool to detector the potential conflicted classes in jars The similar tool called jarfish in java.

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

Example

jcd --jars "a.jar;b.jar" --exclude package1/to/exclude --exclude package2/to/exclude 

By default, the class only recognized as conflicted when it has the same class name but with different size. It can be tuned to check crc number -c crc or disable check with -c none.

Todo

  • Multi thread processing
  • Output to file
  • Specify the output format, eg: json
  • Maybe some benchmark
Commit count: 21

cargo fmt