JarInfo - Introduction

The purposes of this little jar is to help you find out information about the jars located in your classpath. The main class, JarInfo, builds on top of the java.util.jar.JarFile class, but you can probably directly use the JarInfoHelper companion class:

  JarInfoHelper.printAll(System.out)

or from a jsp

<%
  java.io.ByteArrayOutputStream bout = new java.io.ByteArrayOutputStream();
  org.cb.utils.classpath.JarInfoHelper.printAll(new java.io.PrintStream(bout));
  out.println(bout.toString());
%>

Example of result on this screenshot.

The operation is somehow resource intensive, so don't abuse it!