Bob, Brass, et. al.,

No luck so far.  I tried all permutations that both you and Bob suggested, plus 
a variety of others.  Bottom line is that I can't get <delete> to work on a 
<fileset><include> item that represents a directory--no way, no how.  I'm 
really baffled as to why this doesn't work.  Might be time to dig into the 
source code or write a custom task.

Unfortunately, using <exclude> instead of <include> is not an option as there 
are over 7000 files in these directories--no way to clearly indicated what 
should be included.

I'm trying to automate a process for surgically cleaning out our deployment 
directories based on an explicit list of files and sub-directories.

Any other clues or ideas would be greatly appreciated.

                <include name="**/Dashboard/**" />

Works, but leaves all directories.

                <include name="Dashboard/**" />

Does not work at all.

KP

-----Original Message-----
From: Brass Tilde [mailto:brassti...@gmail.com] 
Sent: Wednesday, April 22, 2009 3:00 PM
To: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] Delete not removing directories ...

>             <delete verbose="true" includeemptydirs="true" >
>                   <fileset basedir="${PurgeDeployDirectory_dir}" 
> defaultexcludes="false" >
>                         <include name="**/_vti_cnf" />
>                         <include name="**/XX*" />
>                         <include name="Dashboard" />
>                   </fileset>
>             </delete>
>
>       </target>

What happens if you use "**/_vti_cnf/" or "**/_vti_cnf/**" and
"Dashboard/" or "Dashboard/**" instead?

/bs
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to