As part of Structure101 it is possible to output the key structural 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-key-measures">
<argument name="output-file" value="c:/abc/report-key-measures.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 written. Stored in XML format. |
| useProjectFileSpec | no | If set to true then the structure spec in the specified project file is used instead of the repository structure spec. Default value is false. |
| useProjectFileDiagrams | no | If set to true then diagrams in the specified project file are used instead of repository diagrams. Default value is false.. |