Navigation:  Samples >

SingleInstance.bld Sample

Previous pageReturn to chapter overviewNext page

This sample demonstrates a method of allowing only a single instance of a build at a time.  At the start of the build, it checks for the existence of a marker file, and aborts the build if the marker file is found (and is not more than 5 hours old).  Otherwise, it creates the marker file, performs the build, and deletes the marker file when the build completes.