Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
maven-filtering-3.0.0
-
None
-
None
Description
A few plugins contain the following code which belong into maven-filtering instead:
if ( delimiters != null && !delimiters.isEmpty() ) { LinkedHashSet<String> delims = new LinkedHashSet<String>(); if ( useDefaultDelimiters ) { delims.addAll( this.getDelimiters() ); } for ( String delim : delimiters ) { if ( delim == null ) { // FIXME: ${filter:*} could also trigger this condition. Need a better long-term solution. delims.add( "${*}" ); } else { delims.add( delim ); } } this.setDelimiters( delims );
Moving this code into maven-fitlering where it belongs. New method introduced:
setDelimiters( LinkedHashSet<String> delimiters, boolean useDefaultDelimiters )