This exercise shows you how to edit the Apache Ant script to publish a web and to publish a report.
Before you begin, you must complete Exercise 2: Creating and configuring the Ant script.
<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>
Now you are ready to begin Exercise 4: Testing and setting up automatic execution of the Ant script.