Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
Unknown
Description
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:
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
Attachments
Issue Links
- is related to
-
CAMEL-4627 Add support for loading script from file/classpath in the language component in camel-core
- Resolved