Author: doogie
Date: Wed Nov 18 03:44:06 2009
New Revision: 881659
URL:
http://svn.apache.org/viewvc?rev=881659&view=revLog:
Use the location, instead of the url's file path, when parsing groovy
class files.
Modified:
ofbiz/trunk/framework/base/src/org/ofbiz/base/util/GroovyUtil.java
Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/GroovyUtil.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/GroovyUtil.java?rev=881659&r1=881658&r2=881659&view=diff==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/GroovyUtil.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/GroovyUtil.java Wed Nov 18 03:44:06 2009
@@ -126,7 +126,7 @@
throw new GeneralException("Script not found at location [" + location + "]");
}
- scriptClass = groovyClassLoader.parseClass(scriptUrl.openStream(), scriptUrl.getFile());
+ scriptClass = groovyClassLoader.parseClass(scriptUrl.openStream(), location);
if (Debug.verboseOn()) Debug.logVerbose("Caching Groovy script at: " + location, module);
parsedScripts.put(location, scriptClass);
}