Use FileSet with Touch?

I would like to use the “Touch” action to set all of the compiled versions of my application exe’s and installers to the same date/time for a particular build. Is it possible to use a FileSet as the File Spec in the Touch action (perhaps expanded into a variable)?


Thanks,
-Scott

Hi Scott,

Unfortunatly the Touch Action doesn’t have support for FileSets built in.

To use a FileSet, you would have to use a File Iterator action, configured to iterate the FileSet.

Regards,
Paul.

Paul,

Thanks. I want to set all of the files in the FIleSet to the current date/time automatically. If I use the File Iterator to do this, is there any way to set the date/time used by the Touch action dynamically when the script is executing? If I use the “Now” option, I assume it will change slightly each time an iteration is made, and I don’t want to have to edit the Touch action to set the date/time each time I run the script.

Thanks,

-Scott

Paul,

I figured out how to do it using the CDate() vbscript function to assign the desired build date to the Touch action’s DateTime property in the BeforeAction script.

-Scott

Hi Scott,

Thanks for sharing the solution.

I’ve added this to the features list (ie. add fileset support to touch files).

.t8