class FilterContainer : DefaultNamedDomainObjectList<FilterSpec>
This container is used for the definition of all filters. The name of the filter must be unique and the order of specified filters must be always the same.
FilterContainer(project: Project, instantiator: Instantiator)
creates an container for filter declarations. |
fun addClosure(name: String, include: String, closure: Closure<*>): Unitfun addClosure(name: String, includes: Set<String>, closure: Closure<*>): Unitfun addClosure(name: String, pattern: PatternFilterable, closure: Closure<*>): Unit
Adds a 'Closure' to all installation tasks. This closure class will change the file based on each line. |
|
fun addTransformer(name: String, include: String, transformer: Transformer<String, String>): Unitfun addTransformer(name: String, includes: Set<String>, transformer: Transformer<String, String>): Unitfun 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. |
|
fun fullContent(name: String, include: String, content: Closure<StringBuilder>): Unitfun fullContent(name: String, include: String, content: Action<StringBuilder>): Unitfun fullContent(name: String, includes: Set<String>, content: Action<StringBuilder>): Unitfun fullContent(name: String, pattern: PatternFilterable, content: Action<StringBuilder>): Unit
Adds the 'FullContent' filter to all installation tasks. The configuration is based on StringBuilder. fun fullContent(name: String, includes: Set<String>, content: Closure<StringBuilder>): Unitfun fullContent(name: String, pattern: PatternFilterable, content: Closure<StringBuilder>): Unit
Adds an 'FullContent' filter to all installation tasks. The configuration is based on StringBuilder. |
|
fun overrideProperties(name: String, include: String, properties: Closure<Properties>): Unitfun overrideProperties(name: String, includes: Set<String>, properties: Closure<Properties>): Unitfun overrideProperties(name: String, include: String, properties: Action<in Properties>): Unitfun overrideProperties(name: String, includes: Set<String>, properties: Action<in Properties>): Unitfun overrideProperties(name: String, pattern: PatternFilterable, properties: Closure<Properties>): Unitfun overrideProperties(name: String, pattern: PatternFilterable, properties: Action<in Properties>): Unit
Adds an 'OverrideProperties' filter to all installation tasks. The configuration is based on formatted properties. |
|
fun replacePlaceholders(name: String, replacePlaceHolder: Closure<PlaceholderReplacementFilter>): Unit
Adds the 'ReplacePlaceholder' filter to all installation tasks. The configuration is based on PlaceholderReplacementFilter. |
|
fun xmlContent(name: String, include: String, xml: Closure<XmlProvider>): Unitfun xmlContent(name: String, includes: Set<String>, xml: Closure<XmlProvider>): Unitfun xmlContent(name: String, include: String, xml: Action<in XmlProvider>): Unitfun xmlContent(name: String, includes: Set<String>, xml: Action<in XmlProvider>): Unitfun xmlContent(name: String, pattern: PatternFilterable, xml: Closure<XmlProvider>): Unitfun xmlContent(name: String, pattern: PatternFilterable, xml: Action<in XmlProvider>): Unit
Adds the 'XMLContent' filter to all installation tasks. The configuration is based on XmlProvider. |