Nant and merge options
Moderator: SourceGear
-
- Posts: 22
- Joined: Fri Feb 20, 2004 10:35 am
Nant and merge options
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
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
<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