PDA

View Full Version : vbld_FileOutOfDate


AndyChamp
04-30-2007, 11:53 AM
Hi,

I want to add a conditional build for some steps. I've got a file which I process through about three levels to get an output file. If the output file is newer than the input file, it's not worth the trouble.

I've added a group into my script with a condition on it:

[vbld_FileOutOfDate("%TARGETSCHEMEPATH%", "%PROCFILES_FULLPATH%")]

I've obviously messed somehting up, because it always says

Building project step 'Build only if newer'...
Error expanding macros or script in property condexpr: <Error in System (VBScript) script code at Line 258, Column 3 (Variable is undefined: 'FileOutOfDate')>

Could you give me an example please?

Thanks

Andy

kinook
04-30-2007, 12:25 PM
Actually, there is a bug in the VBScript vbld_FileOutOfDate system script function (the error you described will occur if the target file doesn't exist). Building the attached file and restarting VBP will fix it.

AndyChamp
05-01-2007, 04:37 AM
Thanks for that.

It seems to me this is a case for an FAQ entry, to stop someone else having the same problem.

Andy