Package fi.evolver.script
Class TextUtils
java.lang.Object
fi.evolver.script.TextUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringaddShellBlock(String originalContent, String blockId, String blockContent) Adds or updates a script block, replacing existing block contents if found.
-
Constructor Details
-
TextUtils
public TextUtils()
-
-
Method Details
-
addShellBlock
Adds or updates a script block, replacing existing block contents if found. The block is delimited with comment strings using the blockId param.
E.g.#BLOCK-START this-is-a-block-id ##### export PATH="$PATH:/new-dir" #BLOCK-END this-is-a-block-id #####- Parameters:
blockId- the identifier used for the blockblockContent- content to write between block start and end markers
-