Applies to Collaborator 12.1, last modified on August 21, 2019

Description

Use the ccollab admin batch command to process multiple commands with one connection.

Command Line Syntax

ccollab [global-options] admin batch <commands-file>

Command Options

Option

Required?

Description

<commands-file>

Yes

File containing commands in XML format, or "-" to read from STDIN

Remarks

  • Running multiple commands in batch form ensures that the 'last' review and defect variables stay consistent, even if there are multiple concurrent invocations of the client. It is also easier to encode non-ASCII characters in XML.
  • Global Options specified in the XML override the current Global Options.
  • Command options should be given without the leading double-dash. Both option and argument values are given as text values inside elements. For option and argument elements that can accept multiple values, specify a new element for each value.
  • Run ccollab help batch-xml for the full XML Schema accepted by this command. See full XML Schema (CTRL + click, or CMD + click to open in new window).

Example XML file

<batch-commands>

    <global-options>

        <no-browser/>

        <non-interactive/>

    </global-options>

    <addchanges>

        <upload-comment>These are my latest changes!</upload-comment>

        <review>new</review>

        <file-spec>.</file-spec>

    </addchanges>

    <addfiles>

        <review>last</review>

        <file-path>checklist.txt</file-path>

        <file-path>foo/bar.java</file-path>

        <file-path>biz/buzz.java</file-path>

    </addfiles>

    <browse>

        <review>last</review>

    </browse>

</batch-commands>

See Also

ccollab

Highlight search results