I think you want

<copy includeemptydirs="true" todir="target" overwrite="true"
failonerror="true">
        <fileset basedir="source">
                <include name="**\*.*" />
                <exclude name="**\*.cs" />
                <exclude name="**\*.vbs" />
        </fileset>
</copy>

I did not test this but just typed it on the fly.

The "**" notation is the recursive notation you are looking for.

Experiment with ** or **\* or **\*.* to see which one copies all the
empty subfolders as well.

>-----Original Message-----
>From: [EMAIL PROTECTED] 
>[mailto:[EMAIL PROTECTED] On Behalf Of 
>Jain, Manish (GE Consumer Finance, Contractor)
>Sent: Monday, January 31, 2005 7:19 PM
>To: nant-users@lists.sourceforge.net
>Subject: [Nant-users] Recursive copy task
>
>I would like to create a recursive copy task which would 
>exclude *.cs and *.vbs file types, It should also copy all subfolders
>
>I'm trying something like following which doesn't work, 
>
><copy includeemptydirs="true" todir="target" overwrite="true"
>failonerror="true">
>                       <fileset basedir="source">
>                               <include name="*.*"/>
>                               <exclude name="*.cs,*.vbs"/>
>                       </fileset>
>               </copy> 
>
>Any help would be appreciated, Thanks-Manish
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by: IntelliVIEW -- Interactive 
>Reporting Tool for open source databases. Create drag-&-drop 
>reports. Save time by over 75%! Publish reports on the web. 
>Export to DOC, XLS, RTF, etc.
>Download a FREE copy at http://www.intelliview.com/go/osdn_nl
>_______________________________________________
>Nant-users mailing list
>Nant-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/nant-users
>


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to