This is the target that works for me:
<!-- NOTE: depends="yes" : this compares published time with file time -->
<!-- DOES NOT compare files... so don't use it -->
<target name="web_publish_homepage"
description="Publish files to our website">
<ftp server="ftp.oursite.net"
userid="ourUserId"
password="ourPassword"
remotedir="ourRemoteDirectory"
passive="yes"
action="send"
depends="no"
verbose="yes"
binary="yes">
<fileset dir="../docs/html/">
<include name="*.*"/>
<exclude name=".*"/>
</fileset>
</ftp>
</target>
On 2/14/02 4:49 PM, "Christopher Randall" <[EMAIL PROTECTED]> wrote:
> I am having a problem with the optional FTP task in Ant. There are
> certain tasks which execute, and certain ones which do not. Ant normally
> works like a charm, which all other functionality working perfectly.
>
> I have done the following:
>
> 1. Installed Ant (am using Ant 1.4.1 on RedHat 7.0 with Sun JDK
> 1.3.1_01)
> 2. Placed the optional.jar file in the Ant lib directory
> 3. Placed the NetComponents.jar file in the Ant lib directory
>
> When I try to execute an <ftp> task, I can only execute the following
> ftp tasks successfully:
>
> 1. mkdir
>
> All the other tasks seem to successfully login to the FTP server with
> the username and password I provide, but seem to skip the task I have
> requested. I have used the exact same syntax that is recommended in the
> Ant user manual on the <ftp> task.
>
> Is there any known issues with Ant not executing the FTP tasks
> successfully? If nobody has any immediate idea, I'd be glad to post my
> build.xml script if that would help.
>
> Thanks a bunch for your assistance!
> Chris
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>