Hi All,

This seems kind of similar to*
SLING-1672<https://issues.apache.org/jira/browse/SLING-1672>
* which has been marked as resolved.  However, with the latest trunk code, I
am still running into some difficulties when multiple bundles are providing
Sling-Bundle-Resources with the same path.  I would assume that the children
of all the providers at the same path should be merged together?  Currently,
it seems that the first parent resource found wins, and listing the children
only return the scripts in that bundle.  The scripts provided by the other
bundles are not visible.  Obviously, this makes it difficult to have modular
bundles if all the scripts need to be inside the same bundle to be found.
.
For example:

Bundle 1 contains these scripts:
/libs/sling/servlet/default/script1.html.esp
/libs/sling/servlet/default/script2.html.esp

And the resource is provided as:
<Sling-Bundle-Resources>
    /libs/sling/servlet/default
</Sling-Bundle-Resources>

Bundle 2 contains these scripts:
/libs/sling/servlet/default/script2.html.esp
/libs/sling/servlet/default/script3.html.esp

And the resource is provided as:
<Sling-Bundle-Resources>
    /libs/sling/servlet/default
</Sling-Bundle-Resources>


With both bundles installed, you either see the scripts from bundle1 or the
scripts from bundle2 but not both.

Thoughts?

Regards,
Eric

Reply via email to