I've downloaded BSF and built it.
I've downloaded rhino15R1.zip from mozilla...
...and added bsf.jar and js.jar to lib directory..... than I entered the sample script(copy-paste)... and that was the result:
Buildfile: build.xml
script-setup:
BUILD FAILED
D:\popnet\test\build.xml:121: java.lang.RuntimeException: No Context
associated
with current Thread
java.lang.RuntimeException: No Context associated with current
Thread
at org.mozilla.javascript.Context.getContext(Context.java:1713)
at org.mozilla.javascript.ScriptRuntime.toObject(ScriptRuntime.java:492)
at org.mozilla.javascript.Context.toObject(Context.java:1129)
at com.ibm.bsf.engines.javascript.JavaScriptEngine.declareBean(JavaScriptEngine.java:134)
at com.ibm.bsf.engines.javascript.JavaScriptEngine.initialize(JavaScriptEngine.java:67)
at com.ibm.bsf.BSFManager.loadScriptingEngine(BSFManager.java:320)
at com.ibm.bsf.BSFManager.exec(BSFManager.java:481)
at org.apache.tools.ant.taskdefs.optional.Script.execute(Script.java:109)
at org.apache.tools.ant.Target.execute(Target.java:153)
at org.apache.tools.ant.Project.runTarget(Project.java:898)
at org.apache.tools.ant.Project.executeTarget(Project.java:536)
at org.apache.tools.ant.Project.executeTargets(Project.java:510)
at org.apache.tools.ant.Main.runBuild(Main.java:421)
at org.apache.tools.ant.Main.main(Main.java:149)
Total time: 2 seconds
I don't know what is the problem !?... Perhaps mozilla ?
Perhaps somebody could send a link to the JAR files which work.
Diane Holt schrieb:
--- marco struck <[EMAIL PROTECTED]> wrote:
> But I think flow control tasks are also very ugly. So we should use the
> Script task - but it doesn't really work, because IBM has update the
> Bean Scripting Framework (BSF) - I think - and it runs not longer with
> Ant :´-(What is it that's not working for you? Is it something that worked before?
I can use <script> without any errors.Diane
=====
([EMAIL PROTECTED])__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/
