ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Cepek" <mce...@smsi.com>
Subject Ant 1.5 ftp delete directory problem
Date Thu, 10 Oct 2002 20:15:01 GMT
I'm trying to write a task with Ant 1.5.1 to ftp my javadoc to our web
server.

Here's the Ant code:

    <target name="javadoc_publish" depends="init">
        <ftp action="del" server="${JAVADOC_PUBLISH_HOST}"
                userid="${JAVADOC_PUBLISH_USERID}"
                password="${JAVADOC_PUBLISH_PSWD}"
                remotedir="${JAVADOC_PUBLISH_DIR}">
            <fileset includes="**"/>
        </ftp>
        <ftp action="send" binary="no" server="${JAVADOC_PUBLISH_HOST}"
                userid="${JAVADOC_PUBLISH_USERID}"
                password="${JAVADOC_PUBLISH_PSWD}"
                remotedir="${JAVADOC_PUBLISH_DIR}">
            <fileset dir="${javadoc_all_dir}"/>
        </ftp>
    </target>

And here's the error I'm getting:

    javadoc_publish:
    deleting files
    352 files deleted
    sending files
    file:.../build.xml:115: could not create directory: 550 com: Cannot
        create a file when that file already exists.

    BUILD FAILED

'com' is the first subdirectory in my JAVADOC_PUBLISH_DIR tree:
  javadoc/com/smsi/common/...

The above used to work with Ant 1.4.1, except that I didn't use the <ftp
action="del".../> task (because it didn't work on my target even with
unix-style ls listings).  The "send" just transferred files and created
new directories as needed.  Not perfect, but it worked.

So with Ant 1.5.1, how do I "update" a tree of files like this?


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


Mime
View raw message