title: how to run ant script from one machine targeting another machine?
body: <p>I have do the following using the Ant.
  I need to run the ant script from machine A, the script has the details about the machine B like host name, username, pwd, directory to download, ftp details etc and When the script ran from machine A it should download the somefile using ftp in machine B.</p>
  
  <p>I have given the details about the machine B in script, but when i ran the script it downloads the file in machine A instead of machine B. what i'm missing? or can some one help me with the code?</p>
  
  <p>Thanks in advance.</p>
  
  <p>Here is the code:</p>
  
  <p>In maven i have defined the machine B details:</p>
  
  <pre><code>&lt;host&gt;MachineB&lt;/host&gt;
  &lt;host.username&gt;user&lt;/host.username&gt;
  &lt;host.password&gt;pwd&lt;/host.password&gt;
  </code></pre>
  
  <p>In build.xml</p>
  
  <pre><code>&lt;target name="Todownload_file" &lt;mkdir dir="${download_dir}" /&gt;
  
      &lt;ftp action="get" server="download_server_details" userid="user" password="pwd" remotedir="path"&gt;
          &lt;fileset dir="${download_dir}"&gt;
              &lt;include name="${file_name}"/&gt;
          &lt;/fileset&gt;
      &lt;/ftp&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>As i said in the comments, there is no link between the machine b details and the ftp download section. Can anyone help on this?</p>