On Wed, Feb 15, 2012 at 5:11 PM, Antoine DESSAIGNE <[email protected]> wrote: > Hi everyone, > > I'm rather new to Camel and so far I'm loving it. > > Right now I have to put my Groovy code within <groovy></groovy> tags. Is it > possible to use an external .groovy file instead ? >
We could possible improve the scripting language in Camel to support loading scripts from file/classpath, if the script text starts with a file: or classpath: that indicates its an external script file. So you can do <groovy>classpath:com/foo/myscript.groovy</groovy> I guess it would then be obvious that you refer to a external script, and not to a plain text with that value. If you want that then use the <constant> instead. Fell free to create a JIRA for this http://camel.apache.org/support > Thanks a lot, > > Antoine. -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
