invoke
abstract operator fun invoke(collection: String, projectPath: String, flatten: Boolean): String(source)
Handles the mapping of a Gradle project path of the form :some:project:path including the collection directory name and the Boolean indicating whether middle projects should be flattened or preserved (i.e. should :some and :project be created in creating :path)
projectMapper = { collection: String, projectPath: String, flatten: Boolean ->
// do something with `collection`, `projectPath`, and `flatten`
return projectPath
}Content copied to clipboard
Return
the string
Parameters
collection
the collection name/top-level directory
project Path
the project path
flatten