ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Levy-Lambert <anto...@antbuild.com>
Subject AW: Problem with ANT FTP task
Date Sat, 20 Sep 2003 17:06:03 GMT

Hey, I have just seen that nobody answered this one.

I wonder whether the problem could not possibly be caused by directory
containing embedded spaces. I find strange also the space character between
/ and ATP_Order.class in your log message, but yes, it seems to be possible
on Windows to create a file whose name begins with a space. (Don't know if
this would be legal for a java source file in terms of java accepting to
compile it, ...)

If by chance you do not really need this directory, then you could try to
exclude it from your fileset

<fileset dir="ibm">
<exclude name="WebSphere ICS/**"/>
</fileset>

If you can fix directory and file names on the remote machine, and if the
problem is really due to the spaces as I suspect, maybe you can get rid of
these embedded spaces.

You can also try to switch to ant 1.6 and commons-net.jar (instead of ant
1.5 and netcomponents). I am not sure whether this solves the problem.

If with ant 1.6alpha it is not possible to download a file located in a
directory containing embedded spaces or a file whose name contains or starts
with and embedded space, then it is a bug, either of ant or of the
supporting library commons-net.

Cheers,

Antoine


-----Ursprungliche Nachricht-----
Von: Shiva K Thadakamadla [mailto:shivakumar_t@in.ibm.com]
Gesendet: Dienstag, 16. September 2003 07:26
An: user@ant.apache.org
Betreff: Problem with ANT FTP task


Hi,
I want to download a directory which has got many folders inside from an
ftp server to local drive on windows2k.
build.xml file i am using is:
<project name="MyProject" default="dist" basedir=".">
<target name="dist">
<ftp action ="get" server="everest.in.ibm.com" userid="amit"
password="amit123" remotedir="XYZ" >

<fileset dir="ibm">
</fileset>

</ftp>
</target>
</project>
I am getting the following error when i execute the above script.
BUILD FAILED
file:C:/Ant/Others/WorkingWithAnt/build.xml:5: could not get file: 550
WebSphere ICS/DLMs/classes/NativeMaps/ ATP_Order.class: A file or
directory in the path name does not exist.
Please help me in this regard.


Thanks & Regards

Shiva Kumar. T
----------------------------------------------------------------------------
-------




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message