JarAnalyzer GraphViz DOT Task


Below is how you can use JarAnalyzer in your build scripts to generate a GraphViz DOT file and component diagram as output.

<target name="dotanalyzerapp" depends="previous_target">

   <copy todir="${buildstats}">
      <fileset dir="${bindist}">
         <exclude name="*test.jar"/>
      </fileset>
   </copy>
   <taskdef name="jaranalyzer" classname="com.kirkk.analyzer.textui.JarAnalyzerTask">
      <classpath>
         <pathelement path="${buildlib}/jaranalyzer-0.9.3.jar"/>
         <pathelement path="${buildlib}/lib/bcel-5.1.jar"/>
         <pathelement path="${buildlib}/lib/jakarta-regexp-1.3.jar"/>
         <pathelement path="${buildlib}/lib"/>
       </classpath>
   </taskdef>
   <jaranalyzer srcdir="${buildstats}" destfile="${buildstats}/appdependencies.grph" 
                summaryclass="com.kirkk.analyzer.textui.DOTSummary" />			
   <exec executable="dot" ><arg line="-Tpng -Nshape=box -Nfontsize=30 -Nwidth=1.5 -Nheight=1.25 ./buildstats/appdependencies.grph -o ./buildstats/appdependencies.png"/>
   </exec>

</target>

Areas (Search) (RSS Feeds)

Home
Blog
Resources
JarAnalyzer (download now)
AssAnalyzer (download now)
About
My Resume

My Planet

Speaking Gigs

Please see My Schedule sidebar on my blog for up-to-date speaking engagements and events.