ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "External Lists" <>
Subject New Ant tas: ftp
Date Sat, 06 May 2000 23:02:50 GMT

I wrote a new Ant task called ftp that will perform an FTP PUT of a file.
It uses the class in your JDK's

It would be great if someone chipped in and made this capable of sending an
entire tree, using includes, excludes and basedir.  It might become
acceptable to include in the official Ant at that point? <g>

Here is how it currently works:

        <ftp server=""
             src="build.xml" />


    server - required: hostname of FTP server
    basedir  - optional: directory ON FTP SERVER to change to
    user - required: the FTP user name
    password - required: the FTP user password
    src - required: the local file to send
    dest - optional: the remote file name (defaults to src)
    mode - optional: transfer mode.  Choices are "ascii" and "binary";
default is binary

Don't forget to update your to include it as a built-in


View raw message