FileFunction

sbt.util.FileFunction$

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Types

type UpdateFunction = (ChangeReport[File], ChangeReport[File]) => Set[File]

Value members

Concrete methods

def cached(cacheBaseDirectory: File)(action: Set[File] => Set[File]): Set[File] => Set[File]

Generic change-detection helper used to help build / artifact generation / etc. steps detect whether or not they need to run. Returns a function whose input is a Set of input files, and subsequently executes the action function (which does the actual work: compiles, generates resources, etc.), returning a Set of output files that it generated.

Generic change-detection helper used to help build / artifact generation / etc. steps detect whether or not they need to run. Returns a function whose input is a Set of input files, and subsequently executes the action function (which does the actual work: compiles, generates resources, etc.), returning a Set of output files that it generated.

The input file and resulting output file state is cached in stores issued by storeFactory. On each invocation, the state of the input and output files from the previous run is compared against the cache, as is the set of input files. If a change in file state / input files set is detected, the action function is re-executed.

Attributes

action

The work function, which receives a list of input files and returns a list of output files

cacheBaseDirectory

The folder in which to store

def cached(cacheBaseDirectory: File, inStyle: Style)(action: Set[File] => Set[File]): Set[File] => Set[File]

Generic change-detection helper used to help build / artifact generation / etc. steps detect whether or not they need to run. Returns a function whose input is a Set of input files, and subsequently executes the action function (which does the actual work: compiles, generates resources, etc.), returning a Set of output files that it generated.

Generic change-detection helper used to help build / artifact generation / etc. steps detect whether or not they need to run. Returns a function whose input is a Set of input files, and subsequently executes the action function (which does the actual work: compiles, generates resources, etc.), returning a Set of output files that it generated.

The input file and resulting output file state is cached in stores issued by storeFactory. On each invocation, the state of the input and output files from the previous run is compared against the cache, as is the set of input files. If a change in file state / input files set is detected, the action function is re-executed.

Attributes

action

The work function, which receives a list of input files and returns a list of output files

cacheBaseDirectory

The folder in which to store

inStyle

The strategy by which to detect state change in the input files from the previous run

def cached(cacheBaseDirectory: File, inStyle: Style, outStyle: Style)(action: Set[File] => Set[File]): Set[File] => Set[File]

Generic change-detection helper used to help build / artifact generation / etc. steps detect whether or not they need to run. Returns a function whose input is a Set of input files, and subsequently executes the action function (which does the actual work: compiles, generates resources, etc.), returning a Set of output files that it generated.

Generic change-detection helper used to help build / artifact generation / etc. steps detect whether or not they need to run. Returns a function whose input is a Set of input files, and subsequently executes the action function (which does the actual work: compiles, generates resources, etc.), returning a Set of output files that it generated.

The input file and resulting output file state is cached in stores issued by storeFactory. On each invocation, the state of the input and output files from the previous run is compared against the cache, as is the set of input files. If a change in file state / input files set is detected, the action function is re-executed.

Attributes

action

The work function, which receives a list of input files and returns a list of output files

cacheBaseDirectory

The folder in which to store

inStyle

The strategy by which to detect state change in the input files from the previous run

outStyle

The strategy by which to detect state change in the output files from the previous run

def cached(storeFactory: CacheStoreFactory)(action: UpdateFunction): Set[File] => Set[File]

Generic change-detection helper used to help build / artifact generation / etc. steps detect whether or not they need to run. Returns a function whose input is a Set of input files, and subsequently executes the action function (which does the actual work: compiles, generates resources, etc.), returning a Set of output files that it generated.

Generic change-detection helper used to help build / artifact generation / etc. steps detect whether or not they need to run. Returns a function whose input is a Set of input files, and subsequently executes the action function (which does the actual work: compiles, generates resources, etc.), returning a Set of output files that it generated.

The input file and resulting output file state is cached in stores issued by storeFactory. On each invocation, the state of the input and output files from the previous run is compared against the cache, as is the set of input files. If a change in file state / input files set is detected, the action function is re-executed.

Attributes

action

The work function, which receives a list of input files and returns a list of output files

storeFactory

The factory to use to get stores for the input and output files.

def cached(storeFactory: CacheStoreFactory, inStyle: Style)(action: UpdateFunction): Set[File] => Set[File]

Generic change-detection helper used to help build / artifact generation / etc. steps detect whether or not they need to run. Returns a function whose input is a Set of input files, and subsequently executes the action function (which does the actual work: compiles, generates resources, etc.), returning a Set of output files that it generated.

Generic change-detection helper used to help build / artifact generation / etc. steps detect whether or not they need to run. Returns a function whose input is a Set of input files, and subsequently executes the action function (which does the actual work: compiles, generates resources, etc.), returning a Set of output files that it generated.

The input file and resulting output file state is cached in stores issued by storeFactory. On each invocation, the state of the input and output files from the previous run is compared against the cache, as is the set of input files. If a change in file state / input files set is detected, the action function is re-executed.

Attributes

action

The work function, which receives a list of input files and returns a list of output files

inStyle

The strategy by which to detect state change in the input files from the previous run

storeFactory

The factory to use to get stores for the input and output files.

def cached(storeFactory: CacheStoreFactory, inStyle: Style, outStyle: Style)(action: UpdateFunction): Set[File] => Set[File]

Generic change-detection helper used to help build / artifact generation / etc. steps detect whether or not they need to run. Returns a function whose input is a Set of input files, and subsequently executes the action function (which does the actual work: compiles, generates resources, etc.), returning a Set of output files that it generated.

Generic change-detection helper used to help build / artifact generation / etc. steps detect whether or not they need to run. Returns a function whose input is a Set of input files, and subsequently executes the action function (which does the actual work: compiles, generates resources, etc.), returning a Set of output files that it generated.

The input file and resulting output file state is cached in stores issued by storeFactory. On each invocation, the state of the input and output files from the previous run is compared against the cache, as is the set of input files. If a change in file state / input files set is detected, the action function is re-executed.

Attributes

action

The work function, which receives a list of input files and returns a list of output files

inStyle

The strategy by which to detect state change in the input files from the previous run

outStyle

The strategy by which to detect state change in the output files from the previous run

storeFactory

The factory to use to get stores for the input and output files.