append

open fun append(resourcePath: String, separator: String = AppendingTransformer.DEFAULT_SEPARATOR)

Append contents to a resource in the jar.

e.g. append("resources/application.yml", "\n---\n") for merging resources/application.yml files.

Warning: In most cases, this should be used with the correct getDuplicatesStrategy to ensure duplicate extension module files are handled properly. See more details in the Handling Duplicates Strategy section.

Parameters

resourcePath

The path to the resource in the jar.

separator

The separator to use between the original content and the appended content, defaults to AppendingTransformer.DEFAULT_SEPARATOR (\n).