Disable Specific Filters - AIF - Technical Notes

Disable Filters and Pipes On-The-Fly

Product
AIF
AFS_Version
7.7
Category
Technical Notes
language
English
audience
public

It is also possible to disable one or several specific filters.

To do this, it is necessary to add to the desired filters the disable attribute in the paf.xml configuration file.

Example, to disable this afs_spellcheck_build filter:

<afs:filter uri="#generate_spellcheck" type="afs_spellcheck_build" comment="Generate spellcheck databases" disable="true">

It is also possible to use environment variable. This makes it possible to disable on-the-fly a specific filter, or several filters in a row.

Example, adding this to paf.xml configuration file:

<afs:filter uri="#sb" type="afs_spellcheck_build" disable="$DONT_DO_SPELLCHECK">
<afs:filter uri="#sb" type="afs_spellcheck_deploy" disable="$DONT_DO_SPELLCHECK">

And using the following variable:

export DONT_DO_SPELLCHECK=true

Will result in disabling both afs_spellcheck_build and afs_spellcheck_deploy filters for the current PaF execution.