이 연습에서는 웹 및 보고서를 출력하는 Apache Ant 스크립트를 편집하는 방법을 보여줍니다.
시작하기 전에 연습 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\tutAnt\SAMPLE.dbm" 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\tutAnt\SAMPLE.dbm" targetOutputFolder="c:\myRpts\simpleRpt" targetOutputFile="metric.pdf" reportName="Sample Database Report" overwriteExisting="true" autoShowPublishedOutput="false" errorHandling="ignore"/> </target> </project>
이제 연습 4: Ant 스크립트의 자동 실행 테스트 및 설정을 시작할 준비가 되었습니다.