getappmap / appmap-java

AppMap client agent for Java
Other
80 stars 14 forks source link

Agent falls back to the filesystem if there's no git entry for a file #275

Open apotterri opened 4 months ago

apotterri commented 4 months ago

If the agent can't find a source file in the project's git repo, it will fall back to looking in the filesystem.

For example, for the class in com.example.pkg.Foo, it will try src/main/java/com/example/pkg/Foo.java, src/main/test/com/example/pkg/Foo.java, and com/example/pkg/Foo.java, and use the first one it finds (if any). If the class is in the unnamed package, i.e. just Foo, it will look for Foo.java.