We have a set of about 100 simple files. A few of them change from times to time. It is not possible to predict which file will change and when. We would like to create a program that watch once a day for file change and check them in Vault automatically.
Is there any API or tool to allow a .NET program to interact with Vault server or client?
Vault API for checking in files via a program
Moderator: SourceGear
You could probably use the Vault command line client for this. Set up a different user, and make sure they use CVS style development, so that you don't have to checkout a file before checking in. Then, you could just set up something to checkin files from that folder everyday, and it should pick up the ones that have been modified.
Alternatively, you could checkout the whole folder, choosing not to overwrite the local files, then check them in, and set the option to undo the checkout for unchanged fiiles (which is on by default), and you would get the same behavior.
If this doesn't work for you, you'd need to dig into the Vault client API, starting with the CLC source, which is available from the Vault download page on our website.
Good Luck,
Alternatively, you could checkout the whole folder, choosing not to overwrite the local files, then check them in, and set the option to undo the checkout for unchanged fiiles (which is on by default), and you would get the same behavior.
If this doesn't work for you, you'd need to dig into the Vault client API, starting with the CLC source, which is available from the Vault download page on our website.
Good Luck,