tree: d3d37f0c47b68fd0e9b13612136c5811858ad06d [path history] [tgz]
  1. proto/
  2. src/
  3. tests/
  4. Android.bp
  5. OWNERS
  6. README.md
tools/dependency_mapper/README.md

Dependency Mapper

[dependency-mapper] command line tool. This tool finds the usage based dependencies between java files by utilizing byte-code and java file analysis.

Getting Started

Inputs

  • rsp file, containing list of java files separated by whitespace.
  • jar file, containing class files generated after compiling the contents of rsp file.

Output

  • proto file, representing the list of dependencies for each java file present in input rsp file, represented by [proto/usage.proto]

Usage

dependency-mapper --src-path [src-list.rsp] --jar-path [classes.jar] --usage-map-path [usage-map.proto]"

Notes

Dependencies enlisted are only within the java files present in input.

Ensure that [SourceFile] is present in the classes present in the jar.

To ensure dependencies are listed correctly

  • Classes jar should only contain class files generated from the source rsp files.
  • Classes jar should not exclude any class file that was generated from source rsp files.