Class ClasspathPrinter

java.lang.Object
uno.anahata.ai.tools.spi.ClasspathPrinter

public class ClasspathPrinter extends Object
A utility class for formatting complex Java classpaths into a readable, hierarchical tree structure.

This is especially useful for debugging "hot-reload" issues or inspecting the environment of a running JVM.

  • Constructor Details

    • ClasspathPrinter

      public ClasspathPrinter()
  • Method Details

    • prettyPrint

      public static String prettyPrint(String classpath)
      Prints the given classpath string as a hierarchical tree, grouping JARs by their parent directory and showing counts.
      Parameters:
      classpath - The classpath string to format.
      Returns:
      A formatted, tree-like string representation of the classpath.