I recall having some funky stuff like this happen to. Is there stuff you
don't want deleted?

 

You might need to use:

 

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

 

Or...

 

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

 

I can't recall right now which one worked. 

 

BOb

 

 

________________________________

From: Parrish, Ken [mailto:kparr...@gomez.com] 
Sent: Wednesday, April 22, 2009 2:15 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Delete not removing directories ...

 

I am trying to create a simple task that will purge 'garbage' out of a
directory tree as specified in a <fileset> element as follows:

 

 . . .

     <property name=" PurgeDeployDirectory_dir"
value="c:/Gomez/TestPurge/wwwroot/"/>



     <call target=" PurgeDeployDirectory"/>



 . . .

 

     <target name="PurgeDeployDirectory" >

         <echo message="PurgeDeployDirectory_dir =
${PurgeDeployDirectory_dir}" />

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

                 </fileset>
           </delete>

     </target>




 

 

In this case, files named 'XX*' ARE deleted.  However, directories name
'_vti_cnf' or 'Dashboard' ARE NOT deleted.

 

Any clue as to why the directories are not removed?

 

Ken Parrish

Gomez, Inc.

 

 

 

------------------------------------------------------------------------------
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