Discussion:
[NAnt-users] Copying sub directories within a folder
Ahmed, Shabana
2006-05-23 18:50:08 UTC
Permalink
Hi,

I am trying to get my NAnt build script to copy all the files in the directory as well as all the subdirectories based on the files specified in the include list. None of the files in the subfolders seem to be getting copied or non of the subdirectories are getting created. Here is how my script looks:
<copy todir="C:\Model Development Tree\Build\Web">

<fileset basedir="${project.source.web}">

<!--<include name="*.aspx"/>

<include name="*.ascx"/>-->

<include name="**/*.aspx/"/>

<include name="**/*.ascx/"/>

<exclude name="**/*.pdb" />

<exclude name="**/*.scc" />

<exclude name="**/*.suo" />

<exclude name="**/*.webinfo" />

<exclude name="**/*.vspscc" />

<exclude name="**/*.vssscc" />

<exclude name="**/*.vbproj" />

<exclude name="**/*.sln" />

<exclude name="**/*.vb" />

</fileset>

</copy>

Any help will greatly be appreciated. Thanks in advance.

-Shabana
Gert Driesen
2006-05-23 19:20:27 UTC
Permalink
-----Original Message-----
Ahmed, Shabana
Sent: dinsdag 23 mei 2006 20:50
Subject: [NAnt-users] Copying sub directories within a folder
Hi,
I am trying to get my NAnt build script to copy all the
files in the directory as well as all the subdirectories
based on the files specified in the include list. None of the
files in the subfolders seem to be getting copied or non of
<copy todir="C:\Model Development Tree\Build\Web">
<fileset basedir="${project.source.web}">
<!--<include name="*.aspx"/>
<include name="*.ascx"/>-->
<include name="**/*.aspx/"/>
Lose the trailing slash.

It should be this:

<include name="**/*.ascx" />
<include name="**/*.aspx" />

Gert

Loading...