TargetHelper
Contains infrastructure code and helper functions for FAKE's target feature.
Nested types and modules
Type | Description |
BuildError |
Represents build errors |
Target |
A Target can be run during the build |
Module | Description |
ExitCode |
Functions and values
Function or value | Description | ||
( <== ) x ys
Signature: x:string -> ys:string list -> unit
|
Backwards dependencies operator - x is dependent on ys. |
||
ActivateBuildFailureTarget(name)
Signature: name:string -> unit
|
Activates the BuildFailureTarget. |
||
ActivateFinalTarget(name)
Signature: name:string -> unit
|
Activates the FinalTarget. |
||
addExecutedTarget target time
Signature: target:string -> time:TimeSpan -> unit
|
|||
BuildFailureTarget name body
Signature: name:string -> body:(unit -> unit) -> unit
|
Registers a BuildFailureTarget (not activated). |
||
BuildFailureTargets
Signature: Dictionary<string,bool>
|
BuildFailureTargets - stores build failure targets and if they are activated. |
||
CurrentTarget
Signature: string
|
|||
CurrentTargetOrder
Signature: string list list
|
|||
dependencyString(target)
Signature: target:'?10600 TargetTemplate -> string
Type parameters: '?10600 |
Returns the DependencyString for the given target. |
||
determineBuildOrder target parallelJobs
Signature: target:string -> parallelJobs:int -> unit TargetTemplate [] list
|
Determines a parallel build order for the given set of targets |
||
doesTargetMeanListTargets(target)
Signature: target:string -> bool
|
|||
DoNothing()
Signature: unit -> unit
|
Do nothing - fun () -> () - Can be used to define empty targets. |
||
ExecutedTargets
Signature: HashSet<string>
|
The executed targets. |
||
FinalTarget name body
Signature: name:string -> body:(unit -> unit) -> unit
|
Registers a final target (not activated). |
||
FinalTargets
Signature: Dictionary<string,bool>
|
Final Targets - stores final targets and if they are activated. |
||
getAllTargetsNames()
Signature: unit -> string list
|
Returns a list with all target names. |
||
GetErrors()
Signature: unit -> BuildError list
|
Get Errors - Returns the errors that occured during execution |
||
getTarget(name)
Signature: name:string -> unit TargetTemplate
|
Gets a target with the given name from the target dictionary. |
||
listTargets()
Signature: unit -> unit
|
Prints all available targets. |
||
PrintDependencyGraph verbose target
Signature: verbose:bool -> target:string -> unit
|
Writes a dependency graph. |
||
PrintDotDependencyGraph()
Signature: unit -> unit
|
Writes a dependency graph of all targets in the DOT format. |
||
PrintRunningOrder()
Signature: unit -> unit
|
|||
PrintTargets()
Signature: unit -> unit
|
Prints all targets. |
||
run(targetName)
Signature: targetName:string -> unit
|
Runs a target and its dependencies. |
||
runSingleTarget(target)
Signature: target:unit TargetTemplate -> unit
|
Runs a single target without its dependencies |
||
runTargets(targets)
Signature: targets:unit TargetTemplate array -> unit
|
|||
runTargetsParallel count targets
Signature: count:int -> targets:Target [] -> unit
|
Runs the given array of targets in parallel using count tasks |
||
softDependencyString(target)
Signature: target:'?10602 TargetTemplate -> string
Type parameters: '?10602 |
Returns the soft DependencyString for the given target. |
||
Target name body
Signature: name:string -> body:(unit -> unit) -> unit
|
Creates a Target. |
||
TargetTemplate(body)
Signature: body:('?10624 -> unit) -> string -> '?10624 -> unit
Type parameters: '?10624 |
Creates a TargetTemplate. |
||
TargetTemplateWithDependecies(...)
Signature: dependencies:string list -> ('?10622 -> unit) -> string -> '?10622 -> unit
Type parameters: '?10622 Attributes: [<Obsolete("Use TargetTemplateWithDependencies")>] |
OBSOLETEUse TargetTemplateWithDependencies |
||
TargetTemplateWithDependencies(...)
Signature: dependencies:string list -> body:('?10620 -> unit) -> name:string -> parameters:'?10620 -> unit
Type parameters: '?10620 |
Creates a TargetTemplate with dependencies. SampleThe following sample creates 4 targets using TargetTemplateWithDependencies and hooks them into the build pipeline.
val createCompileTarget : name:'a -> strategy:'b -> obj
val name : 'a
val strategy : 'b
val createTestTarget : ('c -> 'd -> 'e -> 'f)
val name : 'c
val dependencies : 'd
val filePattern : 'e
|
||
WriteErrors()
Signature: unit -> unit
|
Writes a summary of errors reported during build. |
||
WriteTaskTimeSummary(total)
Signature: total:'?10651 -> unit
Type parameters: '?10651 |
Writes a build time report. |