Alanis,
Which version of Ant are you using?
I submitted a patch to fix this a few weeks back and I think it has been
included into the current CVS, but it wasn't in there when 1.2 was released.
Stuart.
On Sunday, January 21, 2001, at 10:18 PM, Carbon wrote:
> The FTP task seems to work well when transferring entire subdirectories,
> but it has trouble when parts of the directory structure already exist.
> For example, if I have a local directory structure like this:
>
> DirA
> |
> +-DirB
> |
> |-file1
> |-file2
>
> And I run the following target:
>
> <ftp
> server="${SERVER}"
> userid="${USERID}"
> password="${PASSWORD}"
> remotedir="{~/${USERID}/A"
> verbose="yes"
> depends="yes">
> <fileset dir="${USERID}/A"/>
> </ftp>
>
> Then the structure is created on the remote machine and the files are
> transferred. Now, if I 'touch' file2 or file2 and run the target again
> I get the following error:
>
> [ftp] sending files
> [ftp] transferring [OMITTED]/A/B/file1
>
> BUILD FAILED
>
> build.xml:[LINENUM]: could not create directory: 521
> "[OMITTED]/A/B" directory exists
>
> So, it seems that the task needs to check for the existence of the
> directory ahead of time, or ignore such an error. I'm not sure what the
> best approach would be.
>
> Thanks,
>
> Alanis S. Sinala
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
-------------------------------------------------------------------------
Stuart Roebuck [EMAIL PROTECTED]
Lead Developer Java, XML, MacOS X, XP, etc.
ADOLOS http://www.adolos.com/