We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Identifier
1 parent dc76373 commit ab3a44aCopy full SHA for ab3a44a
plugins/reporters/freemarker/src/main/kotlin/FreemarkerTemplateProcessor.kt
@@ -397,6 +397,12 @@ class FreemarkerTemplateProcessor(
397
fun getPackage(id: Identifier): Package =
398
input.ortResult.getPackage(id)?.metadata
399
?: Package.EMPTY.also { logger.warn { "Could not resolve package '${id.toCoordinates()}'." } }
400
+
401
+ /**
402
+ * Return an [Identifier] constructed from the given [identifier] string.
403
+ */
404
+ @Suppress("UNUSED") // This function is used in the templates.
405
+ fun identifierFromString(identifier: String) = Identifier(identifier)
406
}
407
408
0 commit comments