PDA

View Full Version : Calling external Java programs



kettle_anonymous
03-09-2006, 02:44 AM
Hello ,


First let me congratulate the team on the great piece of software. Good stuff!!



I would like to call some external java libraries, programs from Kettle. Ideally I might be calling these programs from the Java Script component. How do do this?

MattCasters
03-09-2006, 03:02 AM
The ideal way of calling external libs is by using a plugin.

It's not that hard to do. Please see the sample plugin in Documents/Development pacakges. (DummyPlugin.zip)



However, you can indeed also use Rhino Javascript.

Please see the documentation of JavaScript here:

http://www.mozilla.org/rhino/ScriptingJava.html





For example:


<code>
java

f = new java.io.File(FILENAME.getString())

...
</code>


HTH,

Matt