Class FindAndReplaceUpgradeOperation

java.lang.Object
org.craftercms.commons.upgrade.impl.operations.AbstractUpgradeOperation<String>
All Implemented Interfaces:
org.craftercms.commons.upgrade.UpgradeOperation<String>, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware

public class FindAndReplaceUpgradeOperation extends AbstractContentUpgradeOperation
Implementation of UpgradeOperation that replaces text in the content repository.

Supported YAML properties:

  • pattern: (required) the pattern to search in the files, can be a regular expression
  • replacement: (required) the expression to replace in the files, can use matched groups from the regular expression in the pattern
Author:
joseross