Thanks for your explaination! I hope I'm not requesting too much but I think it would be useful to add such description in the API documentation...
On 10/20/06, Mhall <[EMAIL PROTECTED]> wrote:
I think it's just a description you can use for logging or debugging, so you know where the script code originated. For example, if you are running ruby code pulled from the file test.rb, you might want to set source = "test.rb". Javadoc: http://www.jdocs.com/bsf/2.3.0/api/org/apache/bsf/BSFManager.html#exec(java.lang.String,%20java.lang.String,%20int,%20int,%20java.lang.Object) -----Original message----- From: "wolverine my" [EMAIL PROTECTED] Date: Thu, 19 Oct 2006 22:40:07 -0400 To: "Bean Scripting Framework users" bsf-user@jakarta.apache.org Subject: Source parameter in BSFManager.exec() > Hi! > > The example (http://jruby.sourceforge.net/docs/bsf.shtml) shows that > the "(java)" is passed to the "source" method's parameter: > > manager.exec("ruby", "(java)", 1, 1, "$frame.setTitle(\"A Frame\")"); > > May I know if this has a special meaning to BSFManager? > The exec() method seem to work even if "source" parameter is null. > > Can you please describe a bit more how this "source" parameter should > be used appropriately? > > Thank you very much! > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]