ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sandeep singh" <sande...@india.hp.com>
Subject RE: Please help me!
Date Sat, 20 Oct 2001 17:44:49 GMT
Thanks a lot! Mark Ayad, it is working now...

sandeep

-----Original Message-----
From: Mark Ayad [mailto:mayad@ogilvy.net]
Sent: Saturday, October 20, 2001 10:44 PM
To: ant-user@jakarta.apache.org; sandeeps@india.hp.com
Subject: RE: Please help me!


<ftp server="ftp.apache.org"
       port="2121"
       remotedir="/pub/incoming"
       userid="coder"
       password="java1"
       depends="yes"
       binary="no"
  >
    <fileset dir="htdocs/manual">
      <include name="**/*.html"/>
    </fileset>
  </ftp>

-----Original Message-----
From: sandeep singh [mailto:sandeeps@india.hp.com]
Sent: Saturday, October 20, 2001 6:25 PM
To: ant-user@jakarta.apache.org
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>





Mime
View raw message