yes, use
 
<fileset >
  <!-- note the include/includes name depending on your nant version -->
  <include name="**/*"/>
</>
 
Note-to-Self: We should add this pattern to the fileset docs... I think it may be in the <copy/> docs already.
----- Original Message -----
Sent: Friday, July 09, 2004 6:43 AM
Subject: [Nant-users] zip task

Hi all,

 

I want to use the ZIP task in my build process.

How can I create a simple ZIP task that zips everything in a directory? Including all subdirectories and files in all subdirectories?

 

I mean, a task like:

 

     <zip zipfile="d:\huurdev\build\assemblies\HC001.zip">

      <fileset basedir="D:\HuurDev\TestCodeFiles\">

          <includes name="*.*"/>

          <includes name="*\*.*"/>

          <includes name="*\*\*.*"/>

      </fileset>

    </zip>

 

will include subdirectories and files, two levels deep. But I don�t want to have to indicate the level of subdirectories. It should just include everything, regardless of the number of levels of subdirectories. Can that be done?

Reply via email to