Personally, I add the βdeployβ target in the build.xml file that contains the <scp> to transfer the war file.
UPDATE:
Here is an example:
<target name="deploy" depends="dist">
<scp todir="${user.name}@www.myserver.com:tomcat-base/webapps/"
keyfile="${user.home}/.ssh/myserver.key"
passphrase="BlaBlaBla" trust="true">
<fileset dir="dist" includes="myapp.war"/>
</scp>
</target>
source
share