ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Rosenberg" <ja...@squaretrade.com>
Subject Re: Fw: Problem using script task
Date Wed, 27 Dec 2000 22:08:01 GMT
Yep,

This is the same error I get.

Diane, tell us whether you get it to work if you download and use
fresh versions of bsf and rhino....

I am using jdk1.3, too....

Jason
  ----- Original Message ----- 
  From: marco struck 
  To: ant-user@jakarta.apache.org 
  Sent: Wednesday, December 27, 2000 1:07 PM
  Subject: Re: Fw: Problem using script task


  Really ? I would like to use that the Script tag. 
  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 <m.struck@nexolution.de> 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 

    ===== 
    (holtdl@yahoo.com) 

    __________________________________________________ 
    Do You Yahoo!? 
    Yahoo! Shopping - Thousands of Stores. Millions of Products. 
    http://shopping.yahoo.com/


Mime
View raw message