Tools |
Generating Reports Documents : Referencecom.jmetra.JMetraDoc [options] [aggr metrics directory] [doc output directory]
Generating HTML-base DocumentationThe generated output is a series of html documents representing the metrics collected over time, based in the aggr metrics directory. The project overview page captures a bird's eye view of the project by providing the LOCC, method count, and class count for each of the project packages based on the metrics from the most recently aggregated build. Note that the metrics identified on the overview page and in the individual pages fall into two categories, Summed and Not Summed. Summed metrics include the summation of metrics for a specified package and all its subpackages. For example, LOCC represents the counted lines of code for the particular package. Summed LOCC represents the summed counted lines of code for the package and all the subpackages. For each of the statistics, a percentage shows the size of the measurement compared to the summation of that statistic for the entire project. The project overview page also shows a measurement for the differences between the current build and the previous build (that were aggregated). For simplicity, only the differences (deltas) are shown for the summed metrics. These differences can be used to monitor project changes that are occuring over time. jMetra 1.2 only shows the differences in the metrics themselves. Future versions of jMetra will actually make difference measurements by comparing the two versions of source code - a more valid, insightful measure of the amount of change. Usage ExamplesThe following are a collection of example usages to demonstrate the parameters in use. We assume all required jMetra are on the classpath. \bin>java com.jmetra.JMetraDoc D:\proj\metrics\aggr D:\proj\doc \bin>java com.jmetra.JMetraDoc -package com.proj D:\proj\metrics\aggr D:\proj\doc \bin>java com.jmetra.JMetraDoc -css D:\proj\css\myjmetra.css -package com.proj D:\proj\metrics\aggr D:\proj\doc \bin>java com.jmetra.JMetraDoc -package com.proj;com.app -incparents D:\proj\metrics\aggr D:\proj\doc Identification of Old / Not Current CodeClasses and packages which are not currently present in the project (i.e. not present in the aggregated build with the most recent timestamp) are identified by a * (red asterisk) in package or class lists. The jMetraDoc pages for these packages or classes will also identify in red text that the package or class is not currently in the project. Using a Custom Cascading Style Sheet (CSS)The generated jMetraDoc will automatically generate and use a default css. The user can inspect the default css, modify it, and have jMetra use this customized css by specifying it as a command line option. (see above). Customizing the jMetra Doc Pages (for advanced users)Since the jMetraDoc is generated from a set of baseline templates, advanced users may modify these templates to change the layout of the generated pages. A baseline set of templates is provided with the delivered product, but customized versions may be specified on the command line. Users can integrate their metrics pages with links to over reference documentation like JavaDoc or other analysis tools. For more information go to Customizing Metrics Doc. |
![]() ![]() |
||||||||||||||||||||||||||||||||||||||||||