You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2013/01/11 09:49:46 UTC

svn commit: r1431939 - in /camel/branches/camel-2.10.x: ./ components/camel-script/src/main/java/org/apache/camel/builder/script/ScriptBuilder.java

Author: ningjiang
Date: Fri Jan 11 08:49:45 2013
New Revision: 1431939

URL: http://svn.apache.org/viewvc?rev=1431939&view=rev
Log:
CAMEL-5954 removed the in varible which could cause some trouble on the script
Merged revisions 1431933 via svnmerge from 
https://svn.apache.org/repos/asf/camel/trunk

........
  r1431933 | ningjiang | 2013-01-11 16:27:53 +0800 (Fri, 11 Jan 2013) | 1 line
  
  CAMEL-5954 removed the in varible which could cause some trouble on the script
........

Modified:
    camel/branches/camel-2.10.x/   (props changed)
    camel/branches/camel-2.10.x/components/camel-script/src/main/java/org/apache/camel/builder/script/ScriptBuilder.java

Propchange: camel/branches/camel-2.10.x/
------------------------------------------------------------------------------
  Merged /camel/trunk:r1431933

Propchange: camel/branches/camel-2.10.x/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: camel/branches/camel-2.10.x/components/camel-script/src/main/java/org/apache/camel/builder/script/ScriptBuilder.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.10.x/components/camel-script/src/main/java/org/apache/camel/builder/script/ScriptBuilder.java?rev=1431939&r1=1431938&r2=1431939&view=diff
==============================================================================
--- camel/branches/camel-2.10.x/components/camel-script/src/main/java/org/apache/camel/builder/script/ScriptBuilder.java (original)
+++ camel/branches/camel-2.10.x/components/camel-script/src/main/java/org/apache/camel/builder/script/ScriptBuilder.java Fri Jan 11 08:49:45 2013
@@ -373,9 +373,9 @@ public class ScriptBuilder implements Ex
         context.setAttribute("camelContext", exchange.getContext(), scope);
         context.setAttribute("exchange", exchange, scope);
         Message in = exchange.getIn();
-        context.setAttribute("in", in, scope);
         context.setAttribute("request", in, scope);
         context.setAttribute("headers", in.getHeaders(), scope);
+        context.setAttribute("body", in.getBody(), scope);
         if (exchange.hasOut()) {
             Message out = exchange.getOut();
             context.setAttribute("out", out , scope);