This is an automated email from the ASF dual-hosted git repository.

pauls pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-scripting-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 00c4d14  SLING-9406 - Add bundled script support to the servlets 
resolver
00c4d14 is described below

commit 00c4d147a7dcad3a7c28a592a04674e572919da3
Author: Karl Pauls <[email protected]>
AuthorDate: Mon May 25 02:07:07 2020 +0200

    SLING-9406 - Add bundled script support to the servlets resolver
    
    * Look for bundled scripts with selectors and methods in a subdir as well
---
 .../sling/scripting/core/impl/bundled/BundleRenderUnitFinderImpl.java    | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/src/main/java/org/apache/sling/scripting/core/impl/bundled/BundleRenderUnitFinderImpl.java
 
b/src/main/java/org/apache/sling/scripting/core/impl/bundled/BundleRenderUnitFinderImpl.java
index 0604341..900d47d 100644
--- 
a/src/main/java/org/apache/sling/scripting/core/impl/bundled/BundleRenderUnitFinderImpl.java
+++ 
b/src/main/java/org/apache/sling/scripting/core/impl/bundled/BundleRenderUnitFinderImpl.java
@@ -124,6 +124,7 @@ public class BundleRenderUnitFinderImpl implements 
BundledRenderUnitFinder {
                     }
                     if (StringUtils.isNotEmpty(method)) {
                         matches.add(base + DOT + method);
+                        matches.add(base + SLASH + method);
                     }
                     matches.add(base);
                 }

Reply via email to