As part of Structure101 it is possible to output the Structure101 Studio metrics to an XML file.
Example XML file to perform the operation:
<?xml version="1.0" encoding="UTF-8"?>
<headless version="1.0">
<operations>
<operation type="report-metrics">
<argument name="output-file" value="c:/abc/report-metrics.xml"/>
</operation>
</operations>
<arguments>
<argument name="local-project" value="C:\Documents and Settings\user\project.java.hsp">
<override attribute="classpath" value="C:\classes-to-parse"/>
</argument>
</arguments>
</headless>
Available arguments include:
Argument | Required | Description |
---|---|---|
local-project | yes | See project-spec. |
output-file | yes | File to which metrics are recorded in XML format. |
detailed | no | If detailed is set to “true”, then the list of method level metrics will be saved to output. If false only higher level metrics are included, e.g. class and package. Default value is false |