Java API Compliance Checker Options

Contents

Information Options

  • -h|-help
Print help message.

  • -v|-version
Print version information.

  • -dumpversion
Print the tool version and don't do anything else.

General Options

  • -l|-library <name>
Library name (without version). It affects only on the path and the title of the report.

  • -d1|-old|-o <path>
Path to the Java ARchive or XML-descriptor of 1st (old) library version.

  • -d2|-new|-n <path>
Path to the Java ARchive or XML-descriptor of 2nd (new) library version.

Extra Options

  • -client|-app <path>
This option allows to specify the client Java ARchive that should be checked for portability to the newer library version.

  • -binary
Show "Binary" compatibility problems only. Generate report to "bin_compat_report.html" file.

  • -source
Show "Source" compatibility problems only. Generate report to "src_compat_report.html" file.

  • -check-implementation
Compare implementation code (method's body) of Java classes. Add "Changes in Implementation" section to the report.

  • -v1|-version1 <num>
Specify 1st library version outside the descriptor.

  • -v2|-version2 <num>
Specify 2nd library version outside the descriptor.

  • -s|-strict
Treat all compatibility warnings as problems.

  • -dump|-dump-api <descriptor>
Dump library API to gzipped TXT format file. You can transfer it anywhere and pass instead of the descriptor. Also it may be used for debugging the tool.

  • -classes-list <path>
This option allows to specify a file with a list of classes that should be checked, other classes will not be checked.

  • -d|-template
Create XML descriptor template ./VERSION.xml

  • -report-path <path>
Path to compatibility report. Default: compat_reports/<library name>/<v1>_to_<v2>/compat_report.html

  • -bin-report-path <path>
Path to "Binary" compatibility report. Default: compat_reports/<library name>/<v1>_to_<v2>/bin_compat_report.html

  • -src-report-path <path>
Path to "Source" compatibility report. Default: compat_reports/<library name>/<v1>_to_<v2>/src_compat_report.html

  • -quick
Quick analysis. Disabled: 1) analysis of method parameter names, 2) analysis of class field values, 3) analysis of usage of added abstract methods.

  • -sort
Enable sorting of data in API dumps.

Other Options

  • -test
Create two incompatible versions of a sample library and run the tool to check them for compatibility. This option allows to check if the tool works correctly in the current environment.

  • -debug
Debugging mode. Print debug info on the screen. Save intermediate analysis stages in the debug directory: debug/<library>/<version>/. Also consider using --dump option for debugging the tool.

  • -l-full|-lib-full <name>
Change library name in the report title to <name>. By default will be displayed a name specified by -l option.

  • -b|-browse <program>
Open report(s) in the browser (firefox, opera, etc.).