この演習では、Apache Ant スクリプトを編集して、Web およびレポートを公開する方法を示します。
始める前に、『演習 2: 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 =================================================================== --> <com.ibm.xtools.publish.CLModelPublish modelPath="C:\Documents and Settings\user1\ws1\SimpleUMLProject\SimpleUMLModel.emx" outputFolder="C:\myWebs\FooWeb" overwriteExisting="true" preview="false" showIcons="true" 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 =================================================================== --> <com.ibm.xtools.publish.CLReportPublish modelPath="C:\Documents and Settings\user1\ws1\SimpleUMLProject\SimpleUMLModel.emx" targetOutputFolder="c:\myRpts\simpleRpt" targetOutputFile="metric.pdf" reportName="Sample UML Metric Report" overwriteExisting="true" autoShowPublishedOutput="false" errorHandling="ignore"/> </target> </project>
これで、『演習 4: Ant スクリプトの自動実行のテストおよびセットアップ』の開始準備ができました。