This topic describes how to use ANT tasks to automate the deployment of applications to WebSphere Process Server. By using ANT tasks, you can define the deployment of multiple applications and have them run unattended on a server.
Information about developing and testing applications is located in the WebSphere® Integration Developer information center.
The reference portion of the information center for WebSphere Application Server Network Deployment, version 6 contains a section on application programming interfaces. ANT tasks are described in the package com.ibm.websphere.ant.tasks. For the purpose of this topic, the tasks of interest are ServiceDeploy and 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
Last updated: Thu Apr 27 14:23:49 2006
(c) Copyright IBM Corporation 2006.
This information center is powered by Eclipse technology (http://www.eclipse.org)