ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>
Subject RE: Under a parent directory delete only 4 out of 6 child directories [non-empty]
Date Tue, 04 Nov 2008 08:30:15 GMT

-----Original Message-----
From: Rohit P [mailto:rohitmp.for@gmail.com]
Sent: Tuesday, November 04, 2008 5:42 AM
To: Ant Users List
Subject: Re: Under a parent directory delete only 4 out of 6 child directories [non-empty]

/*
Actually i would like to delete the child directories by using only once
parent directory. Something similar to deleting set of only .java files
under sub-directories.
Hence i considered task like <fileset>, instead of directly deleting the
child directories one after the other.
*/

use a pattern for the directories that should get deleted, something like =

<delete includeemptydirs="true" verbose="true">
 <fileset dir="/your/root/dir" defaultexcludes="false">
  <include name="**/yourpattern/**" />
 </fileset>
</delete>

Regards, Gilbert

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


Mime
View raw message