C# Class Bari.Core.Build.Cache.CachedBuilder

Wraps a builder so it is only ran if its dependencies has been modified, or the cache has been corrupted.
Inheritance: IBuilder
Datei anzeigen Open project: vigoo/bari Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
AddPrerequisite ( IBuilder target ) : void
CachedBuilder ( IBuilder wrappedBuilder, IBuildCache cache, [ targetDir ) : System

Creates a cached builder

CanRun ( ) : bool

Verifies if the builder is able to run. Can be used to fallback to cached results without getting en error.

RemovePrerequisite ( IBuilder target ) : void
Run ( IBuildContext context ) : ISet

Runs this builder

ToString ( ) : string

Returns a string that represents the current object.

Method Details

AddPrerequisite() public method

public AddPrerequisite ( IBuilder target ) : void
target IBuilder
return void

CachedBuilder() public method

Creates a cached builder
public CachedBuilder ( IBuilder wrappedBuilder, IBuildCache cache, [ targetDir ) : System
wrappedBuilder IBuilder The builder instance to be wrapped
cache IBuildCache The cache implementation to be used
targetDir [ The target directory's file system abstraction
return System

CanRun() public method

Verifies if the builder is able to run. Can be used to fallback to cached results without getting en error.
public CanRun ( ) : bool
return bool

RemovePrerequisite() public method

public RemovePrerequisite ( IBuilder target ) : void
target IBuilder
return void

Run() public method

Runs this builder
public Run ( IBuildContext context ) : ISet
context IBuildContext
return ISet

ToString() public method

Returns a string that represents the current object.
public ToString ( ) : string
return string