Skip to content

@ui5/builder/tasks/replaceBuildtime ​

Methods ​

(static) default(options) → {module:@ui5/builder/tasks/runTask~TaskDescriptor}
​

Description: Task to replace the buildtime ${buildtime}.

A step-based task: the default export is a factory returning one map step with a key per matched resource, so a delta build re-processes only the resources whose content changed. The buildtime comes from the build run's shared timestamp via taskUtil.getBuildTime, which is not a tracked cache input: a cached step keeps its previous timestamp until its resource content changes. Without a TaskUtil (e.g. a direct invocation) the step falls back to the wall clock.

Source: builder/lib/tasks/replaceBuildtime.js, line 21

Parameters: ​
NameTypeDescription
optionsobjectOptions
Properties:
NameTypeDescription
patternstringPattern to locate the files to be processed
Returns: ​

The task descriptor with its build steps

Type: module:@ui5/builder/tasks/runTask~TaskDescriptor