本课程说明如何添加 Ant 脚本元素以生成报告。
要添加元素:
现在,Ant 脚本中应该包含下列元素。注意,您的部分属性值可能有所不同。
<project default="foo">
<target name="foo">
<!-- ===================================================================
modelPath: required parameter, fully qualified path(FQP) to the model to publish
outputFolder: required parameter fully qualified path(FQP) to folder to publish to
outputFilename: required parameter such as index.html
=================================================================== -->
<com.ibm.xtools.publish.CLModelPublish
modelPath="C:\workspace\SimpleUMLModel\models\SimpleUMLModel.emx"
outputFolder="C:\temp\antpub"
outputFilename="myPublishedModel.html"
overwriteExisting="true"
preview="false"
showIcons="true"
genDate = "false"
diagramImageFormat="gif"
detailLevel="full"
errorHandling="ignore"/>
<!-- ===================================================================
modelPath: required parameter, fully qualified path(FQP) to the model to publish
targetOutputFolder: required parameter, fully qualified path(FQP) to folder to publish to
targetOutputFile: required parameter, file name of the report
reportDesignFile: required parameter, a URL to a report design to run, see notes above for details
=================================================================== -->
<com.ibm.ccl.erf.rsa.report.ic.ant.UMLBirtReportPublish
modelPath="C:\workspace\SimpleUMLModel\models\SimpleUMLModel.emx"
targetOutputFolder="C:\temp\antrpt"
targetOutputFile="MetricReport.html"
reportDesignFile="file:/C:/Program Files/IBM/SDPShared/plugins/com.ibm.ccl.erf.rsa.report.data/designs/umlModelMetrics.rptdesign"
overwriteExisting="true"
autoShowPublishedOutput="false"
errorHandling="ignore"
outputType="html"/>
</target></project>