En este ejercicio se muestra cómo editar el script Ant de Apache para publicar un informe.
Antes de empezar, debe completar el Ejercicio 2: Creación y configuración del script 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>
Ahora ya está preparado para empezar el Ejercicio 4: Prueba y establecimiento de la ejecución automática del script Ant.