Class TokenValueMapFactory
java.lang.Object
com.google.code.maven_replacer_plugin.TokenValueMapFactory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidappendReplacement(List<Replacement> replacements, String fragment, boolean unescape, String encoding) private StringgetNoValueErrorMsgFor(String line) private booleanignoreFragment(String line, boolean commentsEnabled) private booleanisSeparatorAt(int i, String line) replacementsForFile(String tokenValueMapFile, boolean commentsEnabled, boolean unescape, String encoding) replacementsForVariable(String variable, boolean commentsEnabled, boolean unescape, String encoding)
-
Field Details
-
SEPARATOR_ESCAPER
private static final char SEPARATOR_ESCAPER- See Also:
-
SEPARATOR
private static final char SEPARATOR- See Also:
-
COMMENT_PREFIX
- See Also:
-
fileUtils
-
-
Constructor Details
-
TokenValueMapFactory
-
-
Method Details
-
replacementsForVariable
public List<Replacement> replacementsForVariable(String variable, boolean commentsEnabled, boolean unescape, String encoding) -
replacementsForFile
public List<Replacement> replacementsForFile(String tokenValueMapFile, boolean commentsEnabled, boolean unescape, String encoding) throws IOException - Throws:
IOException
-
appendReplacement
private void appendReplacement(List<Replacement> replacements, String fragment, boolean unescape, String encoding) -
isSeparatorAt
-
getNoValueErrorMsgFor
-
ignoreFragment
-