
com.google.code.maven_replacer_plugin.ReplacerFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maven-replacer-plugin Show documentation
Show all versions of maven-replacer-plugin Show documentation
Maven plugin to replace tokens in a given file with a value
The newest version!
package com.google.code.maven_replacer_plugin;
import static org.apache.commons.lang.StringUtils.isNotEmpty;
public class ReplacerFactory {
public Replacer create(Replacement replacement) {
TokenReplacer tokenReplacer = new TokenReplacer();
if (isNotEmpty(replacement.getXpath())) {
return new XPathReplacer(tokenReplacer);
}
return tokenReplacer;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy