Run action only if source file is newer than output file

Hello,

I would like to run a compiler on a set of source files, but only if the source file has changed more recently than the corresponding object file.

Basically I am thinking of iterating over a FileSet using a variable SourceFile, determine the filename of ObjectFile from SourceFile and perform an action only, if the modification date of SourceFile is more recent than that of ObjectFile. However, the If..Then-Action does not seem to provide an expression like "is newer than" or similar.

Thanks in advance and best regards, Lars

Hi Lars

The File Dependency Action in FB6 Professional Edition will do exactly what you need.

Thanks a lot, overlooked that one.

Lars