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