ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sandeep singh" <sande...@india.hp.com>
Subject Please help me!
Date Sat, 20 Oct 2001 16:25:07 GMT
I have sent this mail previously also.
but nobody replied, is nobody is having
answer to my problem? Please help me if
you can.


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>



Mime
View raw message