Re: Rhino global.load() in script context

2010-08-21 Thread Jacob Beard
Hi Greg, Thanks a lot for this! This does exactly what I want. I had actually just about given up, as I realized that the load function I was attempting to define would have the shortcoming of essentially capturing any local variables eval'ed within it. This mean that while dojo worked becaus

Re: Rhino global.load() in script context

2010-08-21 Thread Greg Roodt
This might work for you:

Re: Rhino global.load() in script context

2010-08-21 Thread Jacob Beard
Hi Greg, Thanks for your response. Replies below: On 10-08-21 01:41 PM, Greg Roodt wrote: I believe load() is part of Rhino Shell. I think all that the task runs when using JavaScript is the interpreter. It would only have the pure Javascript standard language features (and a few bits and piece

Re: Rhino global.load() in script context

2010-08-21 Thread Greg Roodt
I believe load() is part of Rhino Shell. I think all that the task runs when using JavaScript is the interpreter. It would only have the pure Javascript standard language features (and a few bits and pieces to interact with Java and the execution context). It might be easier to run the shell for

Rhino global.load() in script context

2010-08-21 Thread Jacob Beard
Hi, My Ant script currently generates JavaScript modules, and I also have JavaScript modules for unit testing the generated JavaScript. What I'd like to do is use a Rhino script element to load the generated JavaScript and the unit test modules, and run one on the other. In order to do this,

Re: using recent Rhino in ant script

2010-08-21 Thread Jacob Beard
Hi Greg, Thanks for the response! That does indeed work. Jake On 10-08-21 11:32 AM, Greg Roodt wrote: I've got it working doing using the following Ant project:

Re: using recent Rhino in ant script

2010-08-21 Thread Greg Roodt
I've got it working doing using the following Ant project: echo = helloworld.createTask("echo");

Re: using recent Rhino in ant script

2010-08-21 Thread Jacob Beard
Hi, I just wanted to bump this, as I didn't get an answer before. Or would it be better to ask this on the developers mailing list? Please let me know. Thanks, Jake On 10-08-19 07:02 PM, Jacob Beard wrote: Hi, I've now also posted this question on Stack Overflow: http://stackoverflow.com/