Hi.

I'm trying to construct a dynamic clean task.
The clean target looks like this:

  <target name="clean" depends="init">
    <foreach item="Folder" property="foldername">
      <in>
        <items>
          <includes name='**\bin'/>
          <includes name='**\obj'/>
        </items>
      </in>
      <do>
        <delete dir='${foldername}' failonerror="false" />
      </do>
    </foreach>
    <delete dir="${cvsmodule}\DeployFiles" failonerror="false"/>
    <delete dir="${cvsmodule}\DevelopFiles" failonerror="false"/>
    <delete>
      <fileset>
        <includes name='**\*.suo' />
        <includes name='**\*.user' />
        <includes name='**\*.incr' />
      </fileset>
    </delete>
  </target>

The top structure that it will be using consists of 2418 files
in 461 folders.
The init target only sets a few properties.

If there is nothing to delete (fastest case) this piece of code takes
72.8 seconds to run on a P4 2.4 GHz PC with the filesystem on local disk.

During that time all CPU is used up, memory allocations doesn't increase.
I can see virtually no disk activity at all.

The foreach and delete-fileset-includes parts appear to be taking about
half the time each.

/Nicke


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to