Is it possible to apply patches for sync project with SynchronizationEditor.CLI.exe?
We have 7.1.3
Is it possible to apply patches for sync project with SynchronizationEditor.CLI.exe?
We have 7.1.3
There is no option in 7.1.3.
Starting with 8.0 you have the option to patch sync projects using the parameter --PatchShell.
Synchronization Editor Command Line Interface V8.0.2017.1104
Usage:
SynchronizationEditor.CLI.exe <Command> {<Options>} {<Parameter>}
SynchronizationEditor.CLI.exe (--CreateShell) {-(V|?|H)} [/Workspace=<Definition.xml>] {/SetParam <Name=Wert>}
Examples:
SynchronizationEditor.CLI.exe --CreateShell -S /Workspace ActiveDirectory.sews
SynchronizationEditor.CLI.exe --CreateShell -S /Workspace ActiveDirectory.sews /SetParam Password=<password>
Commands: (case sensitive)
--CreateShell Creates a new synchronization project (shell) based on the definition provided by parameter /Workspace.
--CS Short for --CreateShell.
--PatchShell Applies patches on a synchronization project (shell).
--PS Short for --PatchShell.
Options:
-?|H Displays this help.
-Q Quite mode. Do not ask for confirmation of irreversible actions.
-V Verbose mode.
-S Save results to database.
Parameters: (case sensitive)
/Workspace Full qualified or relative path to the sews-file which contains the definition of the workspace to use.
/SetParam Defines the value of a workspace defined parameter. An existing value will be overwritten. Format: Name=Value
Done.
To apply a number of patches, your workspace files needs to contain a ShellPatchEditor. The following XML snippet demonstrates this.
A sample command-line would look like
SynchronizationEditor.CLI.exe --PatchShell /Workspace D:\ShellPatchVariable.sews
A sample workspace file that would ask you for the patches to apply looks like