Skip to content

Reference | Settings

Oleg edited this page Mar 30, 2017 · 1 revision

Script settings

Example of script with some options set.

    do xakeScript {
        dryrun
        filelog "errors.log" Verbosity.Chatty
        consolelog Verbosity.Quiet
        var "NETFX" "2.0"
        want ["build"]

        rules [
   ...

var

Defines a script variable value.

dryrun

The dryrun keyword in the script instructs xake to simulate execution of the script without running the rules itself. Xake tool displays the dependencies list and execution time estimates. Respective command-line option is --dryrun.

filelog

This option allows to specify the name of the log file and the detailization level.

consolelog

The only parameter specifies verbosity level for console output. If not specified Chatty will be used.

want

Defines a default list of targets in case it was not set in script parameters (e.g. XakeOptions.Wants).

wantOverride

The same as above but overrides the list of targets passed via parameters.

Clone this wiki locally