svn commit: r790027 - /ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r790027 - /ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java

doogie-3
Author: doogie
Date: Wed Jul  1 02:54:01 2009
New Revision: 790027

URL: http://svn.apache.org/viewvc?rev=790027&view=rev
Log:
Set the line number on the wrapped operation instance.

Modified:
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java?rev=790027&r1=790026&r2=790027&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java Wed Jul  1 02:54:01 2009
@@ -221,7 +221,7 @@
         // read in the file
         Document document = null;
         try {
-            document = UtilXml.readXmlDocument(xmlURL, true);
+            document = UtilXml.readXmlDocument(xmlURL, true, true);
         } catch (java.io.IOException e) {
             throw new MiniLangException("Could not read XML file", e);
         } catch (org.xml.sax.SAXException e) {
@@ -277,7 +277,7 @@
 
         try {
             if (content != null) {
-                document = UtilXml.readXmlDocument(content, true);
+                document = UtilXml.readXmlDocument(content, true, true);
             }
         } catch (java.io.IOException e) {
             throw new MiniLangException("Could not read XML content", e);
@@ -857,6 +857,10 @@
                 if (UtilProperties.propertyValueEquals("webslinger-invoker.properties", "wrap-calls", "true")) {
                     Wrap<MethodOperation> wrap = new Wrap<MethodOperation>().fileName(simpleMethod.getLocationAndName()).wrappedClass(methodOp.getClass());
                     wrap.wrap(methodOperationExecMethod);
+                    Object startLine = curOperElem.getUserData("startLine");
+                    if (startLine != null) {
+                        wrap.lineNumber(((Integer) startLine).intValue());
+                    }
                     methodOp = wrap.newInstance(new Class<?>[] {Element.class, SimpleMethod.class}, new Object[] {curOperElem, simpleMethod});
                 }
                 methodOperations.add(methodOp);