Project Source Control and Get Latest

Greetings,

I’m looking for a recommended solution to the following problem. I’m using FinalBuilder for manual builds (nothing scheduled, nothing command-line).

As part of each build I would like to delete all the source code from the build machine and “get latest” from SourceSafe (yes, we use SourceSafe via SourceOffSite). We, like most people I assume, store our FinalBuilder project in SourceSafe. The FinalBuilder project “lives” in a “Utilities” directory deep within the source tree.

How can I …

… make sure that each time I open the build project that it gets checked out?
… delete all files and directories of the source except the build project?

I’ve tried several options for the above problem(s). The obvious attempt to use the FinalBuilder source control integration for the build project failed for both SourceOffSite and for SourceSafe. SourceOffSite just freezes the FinalBuilder app. SourceSafe appears to work, but then gives the error “Could not add project: Could not query file status: No project is currently open”.

For the “delete all files” problem I’ve tried using FileSets with the build files excluded, but that does not delete the directories (annoying) only the files. Also, the FileSet option does not allow me to “delete read only” files . . . which they all are because of the source control. I could use an action to set the file attributes (clearing the read-only flag) but that feels like a hack.

If I use the “Delete Files” action then it fails (access denied) because the build project is in use and cannot be deleted.

Any help would be appreciated.

Thanks,
Matt

Hi Matt,

It looks like you’ve got a few related issues here. I’ll try and address each one separately:

1) SCC Integration in FinalBuilder.

I don’t know of anyone using SourceOffSite with FinalBuilder so far, but it definitely shouldn’t hang. Can you use the SourceOffSite SCC plugin with other tools, such as Visual Studio?

I also don’t know why you’re getting that error from the SourceSafe plugin, but it may have to do with SourceOffsite as well.

2) FileSet Delete Files cannot delete directories.

I’ll look into adding a “Delete Empty Directories” option to the action.

3) FileSet Delete Files cannot delete “read only” files.

I’ll look into adding an option for this as well.

Unfortunately, I can’t think of any clean (non-hack) way to achieve the delete options that you need until these options are added. I’ll let you know when they are available.

Regards,


Angus