Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automating Builds w/ Project Hooks
Message
From
31/01/2011 16:33:23
Joe Kaufman
Bell Laboratories Inc.
Wisconsin, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Project manager
Title:
Automating Builds w/ Project Hooks
Miscellaneous
Thread ID:
01498052
Message ID:
01498052
Views:
100
Hey all,

I am trying to use Project Hooks to fully automate build an executable from an open project, including getting all the latest source files from VSS.

So, my module does essentially the following steps:

1. If only one project is open, assume that is the one being built. If multiple projects are open, I prompt for which active project to build.
2. Hook to the resulting project from step 1, gathering information such as HomeDir, files collection, etc.
3. Using the Files collection, do a GetLatestVersion() on everything so the project has all the latest files (source control provider is Visual SourceSafe).
4. Build executable in the home directory, and display a message box with successful notification.

Step 3 is the problem. No matter how I have things set up, in the IDE defaults or the programming, the Get Latest Version dialog box for VSS displays, thereby defeating the whole purpose of enforcing the latest version automatically. Our main project has hundreds of files, so developers aren't going to click OK one hundred times to get the latest files. We are using VFP 8.0.

Hackers Guide from version 6.0 essentially says they couldn't figure out how to suppress VSS dialog boxes either when using the GetLatestVersion method. Has anyone figured out a way around this? Project Hooks are pretty much pointless if they barely offer anything better than good old PJX hacking already provided. Build automation is one of the most common goals of any organized dev team, so a way to make this work would be immensely appreciated.

Thanks,
JoeK
Next
Reply
Map
View

Click here to load this message in the networking platform