Author Login
Post Reply
-----Original Message-----
From: neo anderson [mailto:javadeveloper999@(protected)]
Sent: Thursday, March 20, 2008 12:24 PM
To: user@(protected)
Subject: Delete hidden files probelm
/*
I use the following task to delete hidden files.
<delete file=".hidden.txt"/>
However, there are many files needed to be removed. If I use
<delete file=".*.txt"/>
It won't delete hidden files ( but <delete file="*.txt"/> works for
removing
file ext with txt )
What is the correct syntax to remove hidden files using ant tasks?
*/
if you need to delete in root folder only =
<delete>
<fileset dir="Y:/test" includes=".* *.txt">
</fileset>
if you need recursive deletion =
<delete>
<fileset dir="Y:/test" includes="**/.* **/*.txt">
</fileset>
Regards, Gilbert
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)