You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by sandeep singh <sa...@india.hp.com> on 2001/10/19 17:56:16 UTC

help needed (FTP)

hi
I am trying to use optional task FTP in ANT.
I am trying to ftp to a server and trying to
delete a file. The build file is saying
"build successful" when I am running it through ANT
but actually file is not deleted.

Can you tell me what is wrong with this code?



The code is:

<?xml version="1.0" encoding="UTF-8"?>
<project name="squares" default="main" basedir=".">
	<target name="FTP" >
		<!--taskdef name="ftp"
classname="org.apache.tools.ant.taskdefs.optional.net.FTP"/-->
		<ftp action="del" server="postbox" userid="sandeeps"
password="somepassword">

    <fileset >
      <include name="/home/sandeeps/test.sh"/>
    </fileset>
  		</ftp>
	</target>
	<target name="echoFTP" depends="FTP">
		<echo>
		Using
FTP.........................................................................
...
		</echo>
	</target>	<target name="main" depends="echoFTP"/>
</project>