use of org.codehaus.plexus.interpolation.fixed.PropertiesBasedValueSource in project maven-plugins by apache.
the class AssemblyFormatUtils method finalNameInterpolator.
@Nonnull
public static FixedStringSearchInterpolator finalNameInterpolator(String finalName) {
final Properties specialExpressionOverrides = new Properties();
if (finalName != null) {
specialExpressionOverrides.setProperty("finalName", finalName);
specialExpressionOverrides.setProperty("build.finalName", finalName);
} else {
return FixedStringSearchInterpolator.empty();
}
return FixedStringSearchInterpolator.create(new PropertiesBasedValueSource(specialExpressionOverrides));
}
Aggregations