このトピックでは、ANT タスクを使用して WebSphere ESB へのアプリケーションのデプロイメントを自動化する方法について説明します。 ANT タスクを使用すると、複数のアプリケーションのデプロイメントを定義して、サーバーでのアプリケーションの実行を無人で行うことができます。
アプリケーションの開発およびテストについては、WebSphere® Integration Developer v6.0 のインフォメーション・センターを参照してください。
WebSphere Application Server v6.0 のインフォメーション・センターの参照には、アプリケーション・プログラミング・インターフェースに関するセクションがあります。ANT タスクについては、パッケージ com.ibm.websphere.ant.tasks を参照してください。 このトピックの目的に該当するタスクは、ServiceDeploy および InstallApplication です。
<?xml version="1.0"> <project name="OwnTaskExample" default="main" basedir="."> <taskdef name="servicedeploy" classname="com.ibm.websphere.ant.tasks.ServiceDeployTask" /> <target name="main" depends="main2"> <servicedeploy scaModule="c:/synctest/SyncTargetJAR" ignoreErrors="true" outputApplication="c:/synctest/SyncTargetEAREAR" workingDirectory="c:/synctest" noJ2eeDeploy="true" cleanStagingModules="true"/> </target> </project>
${WAS}/bin/ws_ant -f myBuildScript.xml