Skip to content

@ui5/builder/tasks/replaceCopyright

Methods

(static) default(parameters) → {Promise<undefined>}

Description: Task to to replace the copyright.

The following placeholders are replaced with corresponding values:

  • ${copyright}
  • @copyright@

If the copyright string contains the optional placeholder ${currentYear} it will be replaced with the current year. If no copyright string is given, no replacement is being done.

Source: builder/lib/tasks/replaceCopyright.js, line 8

Parameters:
NameTypeDescription
parametersobjectParameters
Properties:
NameTypeDescription
workspace@ui5/fs/DuplexCollectionDuplexCollection to read and write files
optionsobjectOptions
Properties
NameTypeDescription
copyrightstringReplacement copyright
patternstringPattern to locate the files to be processed
Returns:

Promise resolving with undefined once data has been written

Type: Promise<undefined>