ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <>
Subject RE: Delete hidden files probelm
Date Thu, 20 Mar 2008 11:48:21 GMT

-----Original Message-----
From: neo anderson [] 
Sent: Thursday, March 20, 2008 12:24 PM
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
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 =

  <fileset dir="Y:/test" includes=".* *.txt"> 

if you need recursive deletion =

  <fileset dir="Y:/test" includes="**/.* **/*.txt"> 

Regards, Gilbert

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message