ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Hewitt <MHew...@Armature.com>
Subject RE: ftp task throwing ArrayIndexOutOfBoundsException
Date Mon, 02 Apr 2001 08:38:38 GMT
Nico,

The ftp task works correctly if I do it unconditionally - ie,
depends="no".

The manual ftp results you requested are:

ftp> ls dca.jar
200 PORT command successful.
150 ASCII data connection for /bin/ls (194.194.22.35,59319) (0 bytes).
dca.jar
226 ASCII Transfer complete.
remote: dca.jar
9 bytes received in 0.017 seconds (0.51 Kbytes/s)
ftp> ls bods.jar
200 PORT command successful.
150 ASCII data connection for /bin/ls (194.194.22.35,59320) (0 bytes).
bods.jar
226 ASCII Transfer complete.
remote: bods.jar
10 bytes received in 0.012 seconds (0.78 Kbytes/s)
ftp> ls notThere.jar
200 PORT command successful.
150 ASCII data connection for /bin/ls (194.194.22.35,59321) (0 bytes).
notThere.jar: No such file or directory
226 ASCII Transfer complete.
remote: notThere.jar
41 bytes received in 0.018 seconds (2.20 Kbytes/s)
ftp> 

Does that help?

#!/mjh

-----Original Message-----
From: Nico Seessle [mailto:nico@apache.org]
Sent: 30 March 2001 19:31
To: ant-user@jakarta.apache.org
Subject: Re: ftp task throwing ArrayIndexOutOfBoundsException


----- Original Message ----- 
From: "Mark Hewitt" <MHewitt@Armature.com>
To: <ant-user@jakarta.apache.org>
Sent: Friday, March 30, 2001 5:23 PM
Subject: ftp task throwing ArrayIndexOutOfBoundsException


> FTP optional task gurus:
> 
> I have a target like this:
> 
>     <target name="publish" depends="init" >
> <ftp server="lemmy.armature.com"
[...]
>       [ftp] sending files
>       [ftp] checking date for dca.jar
>       [ftp] checking date for bods.jar

Is dca.jar on the server?
Is bods.jar on the server?
What happens if you (interactively) do a ls for a non-existent file?

Nico


Mime
View raw message