ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jens Larsson" <jel...@handelsbanken.se>
Subject FTP-task refuses to delete files in different dirs
Date Wed, 16 Jan 2002 12:49:16 GMT
Hi,

I'm trying to delete a set of files, often residing in different directories via the ftp-task.
In the example below only the first target deletes the file.

What am I doing wrong? How can I accomplish this? I'm using Ant 1.4.1.

<target name="ftp_delete_file">
  <ftp action="del"
       server="${ftp.server}"
       remotedir="${remotedir}/subdir"
       userid="${ftp.user}"
       password="${ftp.pass}">
    <fileset>
      <include name="file"/>
    </fileset>
  </ftp>
</target>

<target name="ftp_delete_path">
  <ftp action="del"
       server="${ftp.server}"
       remotedir="${remotedir}"
       userid="${ftp.user}"
       password="${ftp.pass}">
    <fileset>
      <include name="subdir/file"/>
    </fileset>
  </ftp>
</target>


Regards,
Jens Larsson




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


Mime
View raw message