Add support for loading script from file/classpath in the groovy/ognl/mvel etc components -----------------------------------------------------------------------------------------
Key: CAMEL-4629 URL: https://issues.apache.org/jira/browse/CAMEL-4629 Project: Camel Issue Type: Improvement Reporter: Claus Ibsen Priority: Minor Fix For: 2.10 This allows these language components to be more usable, and for people to have scripts in external resources in the classpath or the file system. The script can be loaded like this code: {code} if (ResourceHelper.hasScheme(script)) { InputStream is = loadResource(script); answer = getCamelContext().getTypeConverter().convertTo(String.class, is); IOHelper.close(is); } else { // already a script so no need to load {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira