title: Adding server proxy settings to Ant build file.
body: <p>I have an ant build file that is part of a larger makefile I think there are also some maven calls from ant as well but for now I think the problem is with ant build. . I'm having problems when ant tries to make calls to an external URL for downloading some dependencies. </p>
  
  <p>Once it tries to reference the URL the build fails and I get a </p>
  
  <blockquote>
    <p>BUILD FAILED>>>  /path../../build.xml:235: java.net.ConnectException: Connection refused</p>
  </blockquote>
  
  <p>Where and How do I add these proxy settings for Ant to work properly? In my same directory I do have a build.properties file but I could also maybe add it in the makefile or build.xml file.  How is this done with username and password for proxy as well?</p>