diff options
author | Katja Marttila <katja.marttila@qt.io> | 2020-11-19 07:25:01 +0200 |
---|---|---|
committer | Katja Marttila <katja.marttila@qt.io> | 2020-12-07 07:36:36 +0200 |
commit | e82ab45ed71d9b807dc23eae559c759f4584b79d (patch) | |
tree | 1ff8a7379a7c0fbd1908783404babd9b83e4d414 /doc/operations.qdoc | |
parent | b43ab89a64c6484a8af4be424ab695b956d7f7bc (diff) |
Add option to define operations in component.xml
Operations can from now on be declared also in component.xml. The
operations are performed, backuped and rollbacked the same way as they
would be when defined from scripting api.
Task-number: QTIFW-507
Change-Id: Ia509219b94737136c3de25db0cb0c72076b48380
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
Diffstat (limited to 'doc/operations.qdoc')
-rw-r--r-- | doc/operations.qdoc | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/doc/operations.qdoc b/doc/operations.qdoc index 1fc3c00b8..983985dc7 100644 --- a/doc/operations.qdoc +++ b/doc/operations.qdoc @@ -33,8 +33,8 @@ \title Operations - The operations are prepared by component and controller scripts and performed by the - installer. + The operations are prepared by component and controller scripts or component.xml + and performed by the installer. \note Operations are performed threaded. Internally, each operation has a \e DO step that contains instructions for @@ -43,7 +43,19 @@ \section1 Summary of Operations - The following table summarizes the available operations and their syntax. + The following table summarizes the available operations and their syntax in component + and controller scripts. Syntax for operations in component.xml is: + \code + <Operations> + <Operation name="operation"> + <Argument>argument1</Argument> + <Argument>argument2</Argument> + </Operation> + </Operations> + \endcode + \note The argument order in component.xml is the same as in scripting, except for + \c Extract operation where the argument \c archive is optional, and must be defined + as the last argument. \table \header @@ -163,6 +175,8 @@ \li Extract \li "Extract" \c archive \c targetdirectory \li Extracts \c archive to \c targetdirectory. + Extract operations are called before other operations. Note that in component.xml + argument \c archive is optional and thus must be defined as the last parameter. \row \li GlobalConfig |