Nant and merge options

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
tomcat2001
Posts: 22
Joined: Fri Feb 20, 2004 10:35 am

Nant and merge options

Post by tomcat2001 » Thu Apr 10, 2008 3:16 pm

By default when using the vault nant tasks created it runs into some problems with merge options. There is some kind of VaultGetOptions class in there but I can't figure out how to specify that information in xml. Is there any examples?
Lance Johnson

shannon

Post by shannon » Fri Apr 11, 2008 7:59 am

It should be specified like this:

<getoptions Merge="mergeString" />

Where mergeString is one of the following: "OverwriteWorkingCopy", "MergeLater", "AttemptAutomaticMerge", and "Unspecified".The default value is "AttemptAutomaticMerge".

The strings that various attributes can take (and the default values) can be found in the doc that comes with the nant tasks (a chm file).

Here is an example of a getoptions xml node used with vault get:

<vaultget>
<vaultfileset>
<include name="c:/your/working/folder/" />
</vaultfileset>
<getoptions Recursive="true" />
</vaultget>

Other nant examples are here: http://support.sourcegear.com/viewtopic.php?t=8019

--Shannon

Post Reply