You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (Jira)" <ji...@apache.org> on 2021/07/29 18:58:00 UTC
[jira] [Updated] (SLING-10689) Extends file must not always
generate a Requires-Capability header
[ https://issues.apache.org/jira/browse/SLING-10689?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Konrad Windszus updated SLING-10689:
------------------------------------
Description: The {{extends}} file is necessary for bundled scripts as this generates the {{extends}} attribute of the {{sling.servlet}} capability (which is the only way to express inheritance). Currently the scriptingbundle-maven-plugin always also generates an according {{Require-Capability}} header (https://sling.apache.org/components/scriptingbundle-maven-plugin/). The latter can only be resolved in case the script it extends from is provided as bundled script as well, but not if it is a regular resource script. Therefore there must be an option in the extends file to not generate the Require-Capability header. (was: The {{extends}} file is necessary for bundled scripts as this generates the {{extends}} attribute of the {{sling.servlet}} capability. Currently the scriptingbundle-maven-plugin always also generates an according {{Require-Capability}} header (https://sling.apache.org/components/scriptingbundle-maven-plugin/). The latter can only be resolved in case the script it extends from is provided as bundled script as well, but not if it is a regular resource script. Therefore there must be an option in the extends file to not generate the Require-Capability header.)
> Extends file must not always generate a Requires-Capability header
> ------------------------------------------------------------------
>
> Key: SLING-10689
> URL: https://issues.apache.org/jira/browse/SLING-10689
> Project: Sling
> Issue Type: Improvement
> Components: Maven Plugins and Archetypes
> Affects Versions: Scripting Bundle Maven Plugin 0.3.0
> Reporter: Konrad Windszus
> Priority: Major
>
> The {{extends}} file is necessary for bundled scripts as this generates the {{extends}} attribute of the {{sling.servlet}} capability (which is the only way to express inheritance). Currently the scriptingbundle-maven-plugin always also generates an according {{Require-Capability}} header (https://sling.apache.org/components/scriptingbundle-maven-plugin/). The latter can only be resolved in case the script it extends from is provided as bundled script as well, but not if it is a regular resource script. Therefore there must be an option in the extends file to not generate the Require-Capability header.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)