title: How to send a war file on to a Windows machine location through Ant build.xml file
body: <p>I have setup an environment where all my process of svn checkout/updating, compiling, making war, creating required environment are done using the Ant <code>build.xml</code>. I am also willing to deploy the built war file through the Ant <code>build.xml</code>.</p>
  
  <p>I am successful in using the <code>build.xml</code> to deploy applications on to a Linux machine using the SCP task for deploying into the Tomcat webapps directory with the below code.</p>
  
  <pre><code>&lt;target&gt; &lt;scp trust="true" file="antproject1.war" 
    todir="${tomcat.username}@${tomcat.server}:${tomcat.webapps.dir}" 
    password="${tomcat.password}"/&gt; &lt;/target&gt;
  </code></pre>
  
  <p>But I am not aware what task is to be used with what jar files added to the <code>ANT_HOME</code>, to send the war file from my local machine to the remote Windows machine.</p>