if (facesContext.isProjectStage(ProjectStage.Development) ||
!renderedJSFJS.equals(ResourceUtils.JSF_MYFACES_JSFJS_NORMAL))
{
_resourceLoaders = new ResourceLoader[] {
new TempDirFileCacheResourceLoader(new ExternalContextResourceLoader("/"+directory)),
new TempDirFileCacheResourceLoader(new FacesFlowClassLoaderResourceLoader()),
new TempDirFileCacheResourceLoader(
new InternalClassLoaderResourceLoader(META_INF_INTERNAL_RESOURCES)),
new TempDirFileCacheResourceLoader(new ClassLoaderResourceLoader(META_INF_RESOURCES))
};
}
else
{
_resourceLoaders = new ResourceLoader[] {
new TempDirFileCacheResourceLoader(new ExternalContextResourceLoader("/"+directory)),
new TempDirFileCacheResourceLoader(new FacesFlowClassLoaderResourceLoader()),
new TempDirFileCacheResourceLoader(new ClassLoaderResourceLoader(META_INF_RESOURCES))
};
}
}
else
{