PDA

View Full Version : CopyFiles


MikeD
03-30-2005, 01:43 PM
I'm in the process of converting our old old batch files into VBP 5.7 ..

I found a case where I'm doing a CopyFiles and I specify which files specifically I want to copied in the include list:

MFC71.DLL
MSVCR71.DLL

For whatever reason, these files were missing from the source folder, and yet, it did not fail the buld process.

Do I have something mis-checked or am I using this feature improperly?

Any suggestions?

Mike.

MikeD
03-30-2005, 01:53 PM
I think I found the problem..

In my "Include" list, a space appeared after the extension, ie:

MFC71.DLL<space>
MSVCRT.DLL<space>

kevina
03-30-2005, 02:08 PM
The include (and exclude) lists in the Copy Files action are used as masks, meaning they only define the patterns a file must match to be included or excluded (respectively). No logic is included to enforce the existence of actual files matching these mask values.

One way to enforce the existence of files in a build is with a simple Run Script step (attached is an example build demonstrating this technique).