protected void checkForConflictingCondition ( final IOptionsNode node , final ContentSpec contentSpec ) { if ( ! isNullOrEmpty ( node . getConditionStatement ( ) ) ) { final String publicanCfg ; if ( ! contentSpec . getDefaultPublicanCfg ( ) . equals ( CommonConstants . CS_PUBLICAN_CFG_TITLE ) ) { final String name = contentSpec . getDefaultPublicanCfg ( ) ; final Matcher matcher = CSConstants . CUSTOM_PUBLICAN_CFG_PATTERN . matcher ( name ) ; final String fixedName = matcher . find ( ) ? matcher . group ( 1 ) : name ; publicanCfg = contentSpec . getAdditionalPublicanCfg ( fixedName ) ; } else { publicanCfg = contentSpec . getPublicanCfg ( ) ; } // Make sure a publican.cfg is defined before doing any checks if ( ! isNullOrEmpty ( publicanCfg ) ) { if ( publicanCfg . contains ( "condition:" ) ) { log . warn ( String . format ( ProcessorConstants . WARN_CONDITION_IGNORED_MSG , node . getLineNumber ( ) , node . getText ( ) ) ) ; } } } }
Check if the condition on a node will conflict with a condition in the defined publican . cfg file .