A tool for determining jar dependencies based on existing code?

Is there a tool that can detect .jar dependencies given by a .jar file directory and a separate java source directory? I need to create Eclipse.classpath files based on an existing code base that does not have specific dependencies.

To be more specific, I was provided with a large code base consisting of a dozen J2EE style projects and one jar file directory. My client uses a custom development and build platform that is too cryptic for me to use and do any real work. Projects have no information about their dependencies, whether between projects or jar libraries.

I would expect this tool to have to loop through each jar file, indexing the classes available in that file, and then look at each file in the project source tree and map the dependencies, possibly writing the .classpath file to the necessary jar files. I understand that this is a fairly simplified view of the operation, since duplicate classes are among jar files, etc. May complicate the situation.

+3
source share
1 answer
+3
source

Source: https://habr.com/ru/post/1748218/


All Articles