Update the configuration for copy resource files.

Add supports:
1. Support specify the destination directory of copied files
2. Support patterns to include/exclude files.