Apache Ant スクリプトを使用して、Web およびレポートの公開を開始できます。
Apache Ant は、オープン・ソースで Java ベースのビルド・ツールです。 Ant の Eclipse サポートを使用すると、ワークベンチから Ant ビルド・ファイルの作成、実行ができます。 Ant ビルド・ファイルは、ファイル・システム内のリソース上でも、 ワークスペース内のリソース上でも操作可能です。 Ant ビルド・ツールについての詳細は、 Apache Ant Web サイトおよびワークベンチの概要トピックを参照してください。
Web に公開するには、 ご使用の Ant ファイルに CLModelPublish 要素が含まれている必要があります。 レポートを公開するには、そのレポートに CLModelReport 要素が含まれている必要があります。 ご使用の Ant ファイルには、複数の公開要素を含めることができます。 Ant エディターを使用する場合は、要素の開始を入力し、コンテンツ支援用に Ctrl+ スペース・バーを押します。
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>