[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)"
DestinationFiles="@(ScriptFiles->'$(BuildDir)/WWW/scripts/%(RecursiveDir)%(Filename)%(Extension)')"
/>
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
http://stackoverflow.com/questions/8569222/recursively-copy-all-files-with-msbuild
- but no answers.
More information about the Mono-list
mailing list