component-installation-plugin / com.intershop.gradle.component.installation.filter / FilterContainer / addTransformer

addTransformer

fun addTransformer(name: String, include: String, transformer: Transformer<String, String>): Unit

Adds a 'Transformer' to all installation tasks. This transformer class will change the file based on each line.

Parameters

name - the name of the filter configuration.

include - file filter for included files in ANT file filter style.

transformer - specifies the instance of a transformer class.

fun addTransformer(name: String, includes: Set<String>, transformer: Transformer<String, String>): Unit

Adds a 'Transformer' to all installation tasks. This transformer class will change the file based on each line.

Parameters

name - the name of the filter configuration.

includes - set of file filters for included files in ANT file filter style.

transformer - specifies the instance of a transformer class.

fun addTransformer(name: String, pattern: PatternFilterable, transformer: Transformer<String, String>): Unit

Adds a 'Transformer' to all installation tasks. This transformer class will change the file based on each line.

Parameters

name - the name of the filter configuration.

pattern - A PatternFilterable represents some file container which Ant-style include and exclude patterns or specs can be applied to.

transformer - specifies the instance of a transformer class.