ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vittoria, Felice" <Felice_Vitto...@bmc.com>
Subject RE: File deletion based on omissions from fileset.
Date Tue, 04 Sep 2001 18:11:45 GMT
Mark,

Check out the delete task in the user manual.  I believe the following is
what you want:
	 <delete file="c:/localdir/file2.txt"/>.   

Felice

-----Original Message-----
From: Mark Gibson [mailto:gibgob_m@hotmail.com]
Sent: Tuesday, September 04, 2001 12:38 PM
To: ant-user@jakarta.apache.org
Subject: File deletion based on omissions from fileset.


All,

I want to delete files from a local directory that no longer exist in a 
previously mirrored directory. e.g.

c:/localdir
    file1.txt
    file2.txt
    file3.txt

c:/otherdir
    file1.txt
    file3.txt

In this case, I would want to delete file2.txt from c:/localdir.  Does 
anyone know if this is possible in Ant.

Thanks

Mark

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

Mime
View raw message