[Mono-list] Recursively copy files in XBuild

Mike Christensen mike at kitchenpc.com
Mon Dec 19 22:56:27 EST 2011

I have the following set of files with XBuild:

    <ScriptFiles Include="Server/scripts/**/*.js" />

I then copy all of it over to another directory:

    <Copy SourceFiles="@(ScriptFiles)"

However, what I want to do is copy `*.js`, and copy `/yui/*.*`.  What
I tried doing is:

    <ScriptFiles Include="Server/scripts/**/*.js;Server/scripts/yui/**/*" />

However, what this does is flatten the `/yui/` directory and put all
of yui's files directly into `/WWW/scripts`.

Is there a better way to do this?

PS: Also posted on
- but no answers.

More information about the Mono-list mailing list