I'm trying to get a file with ant, using the get property. I'm running apache 2, and I can get the file from the indicated URL using wget and firefox, but ant gives me the following error:
[get] Error opening connection java.io.IOException:
Server returned HTTP response code: 503 for URL: http://localhost/jars/jai_core.jar
This is what I'm doing in my build.xml:
<get src="http://localhost/jars/jai_core.jar"
dest="${build.dir}/lib/jai_core.jar"
usetimestamp="true"/>
Any idea what could be going wrong?
EDIT: On to something. When I provide the full host name of my box instead of localhost, it works.