Contents > 5 Running SDMetrics from the Command Line

5 Running SDMetrics from the Command Line

You can run SDMetrics from the command line or a shell script. This is useful to integrate SDMetrics as part of an automated process.

The command line syntax is:

java sdmetrics.SDMetrics  -xmi xmifile [-proj projfile]  [-customPF pfsetname]
           [-meta mmfile] [-trans transformationfile] [-metrics metricsfile]
           [-filter filterstring]* [-nonmatching] [-ignore]
           [-compare 2ndxmifile] [-mapping mapfile] [-relative]
           [-gHisto] [-gCumDist] [-gKiviat] [-gFormat format]
             [-gHTMLPerDiag] [-gHTMLPerType] [-gHTMLForAll]
             [-gUseFrames] [-gWidth width] [-gHeight height]
           [-model] [-stats] [-relmat] [-rules [-rulefilter filter]] 
           [-nometrics] [-s] [-one] [-f format] basename
The arguments in square brackets [] are optional. When followed by an asterisk (*), the bracket contents can be repeated an arbitrary number of times, otherwise, zero or one occurrences are allowed. The meaning of the arguments is as follows.

Project file settings:

Filter Settings: Design comparison settings: Output file settings: Graph export settings: Examples: