> Hi All,
> In case of org.apache.sling.scripting.java.impl. JavaScriptEngineFactory , 
> What should be the value for 'ResourceChangeListener.PATHS' property, as 
> current implementation doesn't specify any value for 
> 'SlingConstants.PROPERTY_PATH'. As per new 'ResourceChangeListener API', If 
> 'ResourceChangeListener.PATHS' property is missing or invalid, the listener 
> will be ignored.

The JavaScriptEngineFactory is listening to all events, the equivalant
for the PATHS property would be "/".
However, we should avoid this and reduce it. The first thing is that
this factory is only interested in changes to "*.java" files, so we
should use such a glob pattern.
As we only should support scripts within the search path, I suggest we
use "." as the only value for PATHS



Carsten Ziegeler
Adobe Research Switzerland

  • SLING-6003 Abdul Pathan
    • Re: SLING-6003 Carsten Ziegeler

Reply via email to