Can you delete the file from a manual session?
-----Original Message-----
From: sandeep singh
To: ant-user@jakarta.apache.org
Sent: 10/20/2001 9:25 AM
Subject: Please help me!
Importance: High
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>
|