public static FixedStringSearchInterpolator createInterpolator ( MojoParameters params , String filter ) { String [ ] delimiters = extractDelimiters ( filter ) ; if ( delimiters == null ) { // Don't interpolate anything return FixedStringSearchInterpolator . create ( ) ; } DockerAssemblyConfigurationSource configSource = new DockerAssemblyConfigurationSource ( params , null , null ) ; // Patterned after org.apache.maven.plugins.assembly.interpolation.AssemblyExpressionEvaluator return AssemblyInterpolator . fullInterpolator ( params . getProject ( ) , DefaultAssemblyReader . createProjectInterpolator ( params . getProject ( ) ) . withExpressionMarkers ( delimiters [ 0 ] , delimiters [ 1 ] ) , configSource ) . withExpressionMarkers ( delimiters [ 0 ] , delimiters [ 1 ] ) ; }
Create an interpolator for the given maven parameters and filter configuration .