ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sairam manda" <manda_sai...@hotmail.com>
Subject Re: AW: ftp del problem
Date Fri, 10 Oct 2003 10:16:42 GMT

Hello Sir,

As described in the manual  I am deleting the files first and then trying 
deleting to delete the directory  but I  get error stating that the 
directory is not empty
the code

<target name="clean"
          description="Clean generated files">
     <ftp   action="del"
     	    remotedir="/home/manda/temp"
            server="shark"
            userid="xyz"
            password="xyz"
            ignorenoncriticalerrors="true">
            <fileset >
	          <include name="**"/>
	    </fileset>
      </ftp>

</target>


<target name="removedir">
    <ftp action="rmdir"
           server="shark"
           userid="xyz"
           password="xyz"
           remotedir="/home/manda/temp" >
        <fileset>
          <include name="**"/>
            </fileset>
      </ftp>
</target

the first target clean works fine it deletes all  files from directory shark 
and its subdirectories.
but when I excute terget removedir it gives me  the following error

BUILD FAILED
C:\tar\build.xml:49: could not remove directory: 550 shark: Directory not 
empty.

the directory stucture is

/home/manda/temp/sahrk/example/subdir
/home/manda/temp/sahrk/example/subdir1.3

please  make me aware of the problem .
regards
sairam








>From: Antoine Lévy-Lambert <antoine@antbuild.com>
>Reply-To: "Ant Users List" <user@ant.apache.org>
>To: "Ant Users List" <user@ant.apache.org>
>Subject: AW: ftp del problem
>Date: Tue, 7 Oct 2003 15:06:23 +0200
>
>Hi Sairam,
>can you switch to ant1.6beta ?
>In ant1.6beta there is an action rmdir for the ftp task which deletes the
>directories in a fileset.
>
>In ant1.6beta, there are also <ssh/> and <scp/> which are more secure than
><ftp/> (but rely on the presence of a ssh server on the remote machine(s)).
>
>Cheers,
>
>Antoine
>
>-----Ursprüngliche Nachricht-----
>Von: sairam manda [mailto:manda_sairam@hotmail.com]
>Gesendet: Dienstag, 7. Oktober 2003 15:01
>An: user@ant.apache.org
>Betreff: ftp del problem
>
>
>Hello Sir,
>I using ftp del property to delete files in the server .
>I am only able  to delete files and not directories please help me with 
>this
>problem.
>
><target name="clean"  description="Clean generated files">
>        <ftp   action="del"
>             remotedir="/home/manda/shark"
>              server="shark"
>              userid="xyz"
>              password="xyz"
>              ignorenoncriticalerrors="true">
>              <fileset >
>	          <include name="**"/>
>              </fileset>
>      </ftp>
></target>
>regards
>sairam
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>

_________________________________________________________________
Talk to Karthikeyan. Watch his stunning feats. 
http://server1.msn.co.in/sp03/tataracing/index.asp Download images.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message