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 15:25:00 UTC
[jira] [Created] (SLING-10688) Support creating relative resource
paths
Konrad Windszus created SLING-10688:
---------------------------------------
Summary: Support creating relative resource paths
Key: SLING-10688
URL: https://issues.apache.org/jira/browse/SLING-10688
Project: Sling
Issue Type: Improvement
Components: Maven Plugins and Archetypes
Affects Versions: Scripting Bundle Maven Plugin 0.3.0
Reporter: Konrad Windszus
The servlet resolver supports registering servlets to relative paths/resource types. Those are made absolute by prefixing it with the local property {{sling.servlet.prefix}} or if not set by the OSGi configuration property {{servletresolver.servletRoot}} of PID {{org.apache.sling.servlets.resolver.SlingServletResolver}}
(https://sling.apache.org/documentation/the-sling-engine/servlets.html)
The Sling Scripting Bundle Maven Plugin on the other hand always creates an absolute path for the Provide-Capability attribute {{sling.servlet.resourceTypes}}.
On the other hand it would be helpful to define Require-Capability with relative resource types (to allow overlays). Unfortunately OSGi will only match them if the attribute value of the provided and required capability are always the same!
--
This message was sent by Atlassian Jira
(v8.3.4#803005)