Is there a way to add FileSet include patterns via script? I thought Action.FileSetObject might be the ticket, but there is no intellisense information about the properties/methods available for FileSetObject. I've searched the forum and couldn't find the answer.
I just had a look into this, not possible at the moment. In any event, I’m not sure adding the patterns via script would work as expected, since the patterns need to be available when the fileset is populated, which happens at runtime. We were discussing this yesterday, we are going to look at this when we get back from teched to see if there is something we can add to make it easier to add to filesets and make them a bit more dynamic at runtime.
I was hoping for something I could put in the OnBeforeAction event. In a previous action, I'm reading a list using the FileContents iterator. Inside the iterator, I wanted to use the FileSet's OnBeforeAction event to set the Include Filter based on the line I just read. (The line is a comma separated list of filenames, with wildcards supported.)
If a method was available, such as AddIncludeFilter, I don't see why this wouldn't work. I'd also need something like ClearIncludeFilters so I could start with a clean slate for each iteration. I don't want to edit existing filters. Each comma-delimited list can have a variable number of items.
I suppose I'll use a FileIterator and manually add the files found to a list. This is what I do in our older projects. But it isn't NEARLY as efficient (performance wise) as a FileSet.
Posted By Vincent Parrett on 08 Nov 2007 04:16 AM we are going to look at this when we get back from teched to see if there is something we can add to make it easier to add to filesets and make them a bit more dynamic at runtime.
Vincent,
Were any changes made to FileSets to make them more dynamic at run-time?