You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Jay Wright <jw...@once.com> on 2003/01/21 21:18:08 UTC

Ant ftp cannot create directory (if it already exists)

I am trying to ftp an entire directory to our web server.  It works great
the first time through, but once the directories exist on the server, I get
an error:

build.xml:288: could not create directory: 550 test: File exists.

Is there a way around this?  I've tried setting the depends attribute to
"yes", but no luck.

Code from my build.xml file:

        <ftp server="${web.server.stage.host}"
            remotedir="${web.server.stage.path}"
            userid="${web.server.stage.username}"
            password="${web.server.stage.password}">
           <fileset dir="${dist.dir}/web">
               <include name="**/*.*"/>
           </fileset>
        </ftp>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Ant ftp cannot create directory (if it already exists)

Posted by "Robert r. Sanders" <ro...@ipov.net>.
Try looking at

    http://oss.ipov.org/iftp-ant/

We wrote this extension to Ant to solve some of the common complaints we 
had when using the FTP tasks.  Internally it uses the same Classes that 
the Ant Ftp task does; we just provide a little cleaner set of tags and 
options.


Jay Wright wrote:

>I am trying to ftp an entire directory to our web server.  It works great
>the first time through, but once the directories exist on the server, I get
>an error:
>
>build.xml:288: could not create directory: 550 test: File exists.
>
>Is there a way around this?  I've tried setting the depends attribute to
>"yes", but no luck.
>
>Code from my build.xml file:
>
>        <ftp server="${web.server.stage.host}"
>            remotedir="${web.server.stage.path}"
>            userid="${web.server.stage.username}"
>            password="${web.server.stage.password}">
>           <fileset dir="${dist.dir}/web">
>               <include name="**/*.*"/>
>           </fileset>
>        </ftp>
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
>  
>
-- 
    Robert r. Sanders
    Chief Technologist
    iPOV
    www.ipov.net



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Ant ftp cannot create directory (if it already exists)

Posted by Antoine Levy-Lambert <le...@tiscali-dsl.de>.
Jay,
This looks like the bug 16293 in bugzilla
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16293
Maybe you should create yourself an account on bugzilla, and add your email
address as a CC for this bug.
Antoine
----- Original Message -----
From: "Jay Wright" <jw...@once.com>
To: <an...@jakarta.apache.org>
Sent: Tuesday, January 21, 2003 9:18 PM
Subject: Ant ftp cannot create directory (if it already exists)


>
> I am trying to ftp an entire directory to our web server.  It works great
> the first time through, but once the directories exist on the server, I
get
> an error:
>
> build.xml:288: could not create directory: 550 test: File exists.
>
> Is there a way around this?  I've tried setting the depends attribute to
> "yes", but no luck.
>
> Code from my build.xml file:
>
>         <ftp server="${web.server.stage.host}"
>             remotedir="${web.server.stage.path}"
>             userid="${web.server.stage.username}"
>             password="${web.server.stage.password}">
>            <fileset dir="${dist.dir}/web">
>                <include name="**/*.*"/>
>            </fileset>
>         </ftp>
>
>
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>