You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ra...@apache.org on 2020/04/01 15:32:38 UTC
[sling-scriptingbundle-maven-plugin] branch master updated:
SLING-9306 - Provide a path capability for scripts which are not part of a
resource type
This is an automated email from the ASF dual-hosted git repository.
radu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-scriptingbundle-maven-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new 08e734e SLING-9306 - Provide a path capability for scripts which are not part of a resource type
08e734e is described below
commit 08e734e799d04ca27855e5e51f7d54a6508ffe12
Author: Radu Cotescu <ra...@apache.org>
AuthorDate: Wed Apr 1 17:31:54 2020 +0200
SLING-9306 - Provide a path capability for scripts which are not part of a resource type
* corrected filter expression for unversioned requirements
---
.../org/apache/sling/scriptingbundle/maven/plugin/MetadataMojo.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/sling/scriptingbundle/maven/plugin/MetadataMojo.java b/src/main/java/org/apache/sling/scriptingbundle/maven/plugin/MetadataMojo.java
index 8352a0c..0dd3ba7 100644
--- a/src/main/java/org/apache/sling/scriptingbundle/maven/plugin/MetadataMojo.java
+++ b/src/main/java/org/apache/sling/scriptingbundle/maven/plugin/MetadataMojo.java
@@ -303,7 +303,7 @@ public class MetadataMojo extends AbstractMojo {
builder.append("(&").append(versionRange.toFilterString("version")).append("(").append(ServletResolverConstants.SLING_SERVLET_RESOURCE_TYPES).append(
"=").append(capability.getResourceType()).append("))");
} else {
- builder.append("(").append(CAPABILITY_NS).append("=").append(capability.getResourceType()).append(")");
+ builder.append("(").append(ServletResolverConstants.SLING_SERVLET_RESOURCE_TYPES).append("=").append(capability.getResourceType()).append(")");
}
builder.append(")\"");
if (pcIndex < pcNum - 1) {