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:[EMAIL PROTECTED]]
Sent: 30 March 2001 19:31
To: [EMAIL PROTECTED]
Subject: Re: ftp task throwing ArrayIndexOutOfBoundsException
----- Original Message -----
From: "Mark Hewitt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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