extscript-core-root/extscript-core/src/main/java/org/apache/myfaces/extensions/scripting/jsf/resources/SourceResourceHandler.java [50:74]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        List<String> resourceRoots = WeavingContext.getInstance().getConfiguration().getResourceDirs();
        if (resourceRoots == null || resourceRoots.isEmpty())
        {
            return _wrapped.createResource(resourceName, libraryName);
        }

        for (String resourceRoot : resourceRoots)
        {
            File resourceFile = new File(buildStdResourceDir(resourceName, libraryName, resourceRoot));
            if (resourceFile.exists())
            {
                return new SourceResource(libraryName, resourceName, resourceFile);
            }
            resourceFile = new File(buildMetaInfResourceDir(resourceName, libraryName, resourceRoot));
            if (resourceFile.exists())
            {
                return new SourceResource(libraryName, resourceName, resourceFile);
            }
            resourceFile = new File(buildRootResourceDir(resourceName, libraryName, resourceRoot));
            if (resourceFile.exists())
            {
                return new SourceResource(libraryName, resourceName, resourceFile);
            }
        }
        return _wrapped.createResource(resourceName, libraryName);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



extscript-core-root/extscript-core/src/main/java/org/apache/myfaces/extensions/scripting/jsf/resources/SourceResourceHandler.java [79:104]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        List<String> resourceRoots = WeavingContext.getInstance().getConfiguration().getResourceDirs();
        if (resourceRoots == null || resourceRoots.isEmpty())
        {
            return _wrapped.createResource(resourceName, libraryName);
        }

        for (String resourceRoot : resourceRoots)
        {
            File resourceFile = new File(buildStdResourceDir(resourceName, libraryName, resourceRoot));
            if (resourceFile.exists())
            {
                return new SourceResource(libraryName, resourceName, resourceFile);
            }
            resourceFile = new File(buildMetaInfResourceDir(resourceName, libraryName, resourceRoot));
            if (resourceFile.exists())
            {
                return new SourceResource(libraryName, resourceName, resourceFile);
            }
            resourceFile = new File(buildRootResourceDir(resourceName, libraryName, resourceRoot));
            if (resourceFile.exists())
            {
                return new SourceResource(libraryName, resourceName, resourceFile);
            }

        }
        return _wrapped.createResource(resourceName, libraryName);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



