mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
Merged DEV/TEMPORARY to HEAD
17667: Branch for SpringSurf integration - from HEAD r17665 17668: Fix to ensure included scripts files are not loaded from a cached classpath loader. 17670: Part 1 of SpringSurf integration - changes relating to spring-surf-core-1.0.0.CI-SNAPSHOT.jar 17674: Part 2 of SpringSurf integration - changes relating to spring-surf-core-configservice-1.0.0.CI-SNAPSHOT.jar git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@17788 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -305,15 +305,7 @@ public class RhinoScriptProcessor extends BaseProcessor implements ScriptProcess
|
||||
{
|
||||
// load from classpath
|
||||
String scriptClasspath = resource.substring(PATH_CLASSPATH.length());
|
||||
InputStream stream;
|
||||
if (logger.isDebugEnabled())
|
||||
{
|
||||
stream = getClass().getClassLoader().getResource(scriptClasspath).openStream();
|
||||
}
|
||||
else
|
||||
{
|
||||
stream = getClass().getClassLoader().getResourceAsStream(scriptClasspath);
|
||||
}
|
||||
InputStream stream = getClass().getClassLoader().getResource(scriptClasspath).openStream();
|
||||
if (stream == null)
|
||||
{
|
||||
throw new AlfrescoRuntimeException("Unable to load included script classpath resource: " + resource);
|
||||
|
Reference in New Issue
Block a user