PathTransformSpec

API for modifying module names when inserting them into any generated diagrams. For example if your modules are within a heavily-nested "modules" directory in your project's root, you might want to call something like:

atlas {
pathTransforms {
remove("^:modules:")
replace(pattern = ":", replacement = " ")
}
}

then a path of ":modules:path:to:something" will be mapped to "path to something" for display in the charts. Remember the declarations inside pathTransforms are called in descending order.

It doesn't support Regex group replacement, just pattern identification.

Properties

Link copied to clipboard
abstract val replacements: SetProperty<Replacement>

Functions

Link copied to clipboard
abstract fun remove(@Language(value = "RegExp") pattern: String)
abstract fun remove(pattern: Regex)
Link copied to clipboard
abstract fun replace(@Language(value = "RegExp") pattern: String, replacement: String)
abstract fun replace(pattern: Regex, replacement: String)