notice-template.template.vm Maven / Gradle / Ivy
##Parses macros dependent on language set in project context
#set ($language = $projectContext.getLanguageMode())
#set ($component="notice-template/${language}/macros/component.vm")
#set ($summary="notice-template/${language}/macros/summary.vm")
#parse($component)
#parse($summary)
#insertGeneralNotice($noticeParameters $language)
#if ($context.componentSeparationRequired($noticeParameters))
## Report licenses on top level
#set ($type = "component")
#insertLicenseNoticeComponentSeparation($noticeParameters.component $type)
## Report licenses on subcomponent level
#set ($type = "subcomponent")
## Report named components
#set ($namedComponents = true)
#foreach($componentDefinition in $context.getSelectedComponents($noticeParameters.subcomponents, $namedComponents))
#insertLicenseNoticeComponentSeparation($componentDefinition $type)
#end
## Report unnamed components
#set ($namedComponents = false)
#if ($context.getSelectedComponents($noticeParameters.subcomponents, $namedComponents).size() > 0)
#insertLicenseNoticeUnnamed($noticeParameters $namedComponents)
#foreach($componentDefinition in $context.getSelectedComponents($noticeParameters.subcomponents, $namedComponents))
#insertLicenseNotice($componentDefinition)
#end
#end
#else
## Report licenses on top level
#insertLicenseNotice($noticeParameters.component)
## Report licenses on subcomponent level
#foreach($componentDefinition in $noticeParameters.subcomponents)
#insertLicenseNotice($componentDefinition)
#end
#end
## Report summary to indicate source, license file and notice file handling
#set($noticeSummary=$context.evaluateMeta($noticeParameters))
#if ($projectContext.isSourceModeNone() != true)
## Report summary indicating license file and notice file handling
#if($noticeSummary.isRequiresLicenseAndNoticeProvision() == true)
#requiresLicenseAndNoticeProvision($noticeSummary)
#end
##
## Report summary indicating source provisioning
#if($noticeSummary.isRequiresSourceCodeProvision() == true)
#requiresSourceCodeProvision()
#end
#end
© 2015 - 2025 Weber Informatics LLC | Privacy Policy