ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Lévy-Lambert <anto...@antbuild.com>
Subject AW: ftp del problem
Date Mon, 13 Oct 2003 19:55:36 GMT
Sairam,

you have found an actual bug, which is now fixed in CVS, and will be fixed
in the next ant1.6beta (if we make one) and in the ant1.6 releases,
as well as the next major releases of ant.

The bug was due to the fact that ant was trying to remove first the parent
subdirectories before the children, this of course does not work. Reversing
the order of the loop fixed the problem.

Thanks,

Antoine

-----Ursprüngliche Nachricht-----
Von: sairam manda [mailto:manda_sairam@hotmail.com]
Gesendet: Montag, 13. Oktober 2003 11:30
An: user@ant.apache.org
Betreff: ftp del problem





>From: "sairam manda" <manda_sairam@hotmail.com>
>Reply-To: "Ant Users List" <user@ant.apache.org>
>To: user@ant.apache.org
>Subject: Re: AW: ftp del problem
>Date: Fri, 10 Oct 2003 15:46:42 +0530
>
>
>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


Mime
View raw message