Skip to content

Tasks | Inner functions

Oleg edited this page Mar 30, 2017 · 4 revisions

Internal functions

TBD

trace level template args

Prints the message to output log. The message is printed if output verbosity level includes message level.

  • Level parameter must take one of the following values: Level.Message, Level.Error, Level.Command, Level.Warning, Level.Info, Level.Debug, Level.Verbose, Level.Never
do! trace Level.Info "Using csc compiler version %s" "1.0"

need [targets]

need function is widely used internally and it is a key element for dependency tracking. Calling need ensures the requested files are built according to rules. The action is paused until all dependencies are resolved and built.

do! need ["bin/app.exe"; "bin/app.exe.config"]

getFiles fileset

Evalutes the fileset to a list of file names.

getCtxOptions

Gets action context.

getVar name

Gets the variable value (and records dependency!).

getEnv name

Gets environment variable (and records dependency!).

alwaysRerun

Instructs Xake to rebuild the target even if dependencies are not changed. this is expecially important for phony actions which do not produce a file.

Clone this wiki locally