Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 74669 invoked from network); 26 Dec 2000 20:11:06 -0000 Received: from femail3.sdc1.sfba.home.com (24.0.95.83) by h29.sny.collab.net with SMTP; 26 Dec 2000 20:11:06 -0000 Received: from alsatian ([24.18.23.12]) by femail3.sdc1.sfba.home.com (InterMail vM.4.01.03.00 201-229-121) with SMTP id <20001226200928.OTBF1118.femail3.sdc1.sfba.home.com@alsatian>; Tue, 26 Dec 2000 12:09:28 -0800 Message-ID: <083e01c06f77$f7f23190$020a0a0a@alsatian> From: "Jason Rosenberg" To: , References: <20001226192045.7735.qmail@web117.yahoomail.com> <082601c06f76$28e5d970$020a0a0a@alsatian> Subject: Re: Fw: Problem using script task Date: Tue, 26 Dec 2000 15:09:45 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: h29.sny.collab.net 1.6.2 0/1000/N Ok, now I have managed to rebuild the bsf.jar with javascript stuff included (js.jar was in the classpath, which I got from http://www.mozilla.org/rhino/download.html) Now, I get the exception below, when I try to run. I modified the ant.bat to print out the LOCALCLASSPATH before starting the build. You can see that bsf.jar and js.jar are there.... **************************************************** D:\NewWork\SourceRoot>ant -buildfile text2.xml "Using classpath="";"D:\Ant1.2\lib\ant.jar";"D:\Ant1.2\lib\bsf.jar";"D:\Ant1.2\lib\jaxp.jar";"D:\Ant1.2\lib\js.jar";"D:\Ant1.2\lib\optional . jar";"D:\Ant1.2\lib\parser.jar";"D:\jdk1.3\lib\tools.jar"" Buildfile: text2.xml setup: BUILD FAILED D:\NewWork\SourceRoot\text2.xml:5: 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:110) at org.apache.tools.ant.Target.execute(Target.java:142) at org.apache.tools.ant.Project.runTarget(Project.java:818) at org.apache.tools.ant.Project.executeTarget(Project.java:532) at org.apache.tools.ant.Project.executeTargets(Project.java:506) at org.apache.tools.ant.Main.runBuild(Main.java:420) at org.apache.tools.ant.Main.main(Main.java:149) Total time: 2 seconds D:\NewWork\SourceRoot> ----- Original Message ----- From: "Jason Rosenberg" To: ; Sent: Tuesday, December 26, 2000 2:56 PM Subject: Re: Fw: Problem using script task > Diane, > > Thanks for the help. I've found the javascript stuff > from mozilla.org..... > > I guess I just thought somehow that I already had javascript > installed, since my browser uses it on a regular basis, etc. > > The only reason I am going the javascript route is because > I have been disatisfied with the set of available flow control > features in the core ant stuff. > > So, probably, once I get to a point where I've got my preliminary > build installation working, I'll make an effort to start writing > some useful flow control tasks. I assume that wouldn't be > too difficult. > > Or, are there philosophical objections to doing so. Simple > things like loops and conditionals, etc. > > Jason > > ----- Original Message ----- > From: "Diane Holt" > To: > Sent: Tuesday, December 26, 2000 2:20 PM > Subject: Re: Fw: Problem using script task > > > > --- Jason Rosenberg wrote: > > > So, once I build the BSF stuff, do I then need to include something in > > > my classpath so that Ant will use it? > > > > If you put the jar-files in $ANT_HOME/lib, the 'ant' wrapper-script will > > include them in the classpath it runs Ant with. > > > > > Is this documented already somewhere? > > > > Probably not. What with Ant being an OpenSource project and all, it's not > > like there's a TechPubs department making sure everything's covered. On > > the other hand, it also means someone could volunteer to take that task > > on, if they wanted to. > > > > Diane > > > > > > ===== > > (holtdl@yahoo.com) > > > > > > > > __________________________________________________ > > Do You Yahoo!? > > Yahoo! Shopping - Thousands of Stores. Millions of Products. > > http://shopping.yahoo.com/ > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: ant-dev-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: ant-dev-help@jakarta.apache.org > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ant-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: ant-dev-help@jakarta.apache.org >