Re: ant-contrib 1.0b3 broken?

2010-09-07 Thread Jacob Beard
wn to get it to work, >> >> -- >> Jonathan Rosenberg >> Founder & Executive Director >> Tabby's Place >> http://www.tabbysplace.org >> >> >> -Original Message- >> From: Jacob Beard [mailto:jbea...@cs.mcgill.ca] >>

ant-contrib 1.0b3 broken?

2010-09-07 Thread Jacob Beard
Hi, I'm trying to use ant-contrib 1.0b2 or 1.0b3, because that's what's available in the standard maven repos. In the past, I've used ant-contrib 0.6, which has worked fine, but I cannot seem to declare 1.0b2 or 1.0b3. For example, the following build file works as expected with ant-contrib 0.6, e

access plugin dependencies and trigger downloading of dependencies with maven ant tasks

2010-09-06 Thread Jacob Beard
Hi, I was wondering if there is a way to access plugin dependencies using maven ant tasks. So, if you have something like the following in pom.xml: maven-antrun-plugin 1.4 bsf bsf

Re: Rhino global.load() in script context

2010-08-23 Thread Jacob Beard
2010 14:03, "Jacob Beard" wrote: Hi Greg, I'll bring it up on the developer's list. I've created a macro that sets up the rhino environment, so right now this seems like a good enough solution for me: <classpath> <fileset dir="../../../

Re: Rhino global.load() in script context

2010-08-22 Thread Jacob Beard
uld bring this up on the dev list and see what they think. It might be that the Global stuff can be made available which will then make javascript and the tag much more powerful. Or they might suggest creating a new Ant task or something. Cheers Greg On Sat, Aug 21, 2010 at 11:44 PM, Jac

Re: Rhino global.load() in script context

2010-08-21 Thread Jacob Beard
;test"); help(); var scriptContents = readFile("test.js"); print(scriptContents); var ver = version(); print("version:"+ver); print(this); for(var prop in this){ print(prop); } } a(); On Sat, Aug 21, 2010 at 7:03 PM, Jacob Beard wrote: Hi Greg, Thanks for your re

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

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
che.org/logging/download_logging.cgi js.jar(rhino 1.7R2) http://www.mozilla.org/rhino/download.html Not the prettiest, but it works. I will try a bit more to see if I can get it to work with javax.script. On Sat, Aug 21, 2010 at 3:35 PM, Jacob Beard wrote: Hi, I just wanted to bump this, as I di

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://stackov

Re: convert ant path without assigning to immutable property

2010-08-20 Thread Jacob Beard
://ant.apache.org/manual/Tasks/local.html Peter On Fri, Aug 20, 2010 at 9:32 PM, Jacob Beard wrote: Hi, I have a situation where I have a path with a number of path segments, and, for each path segment, I need to transform that path segment (presumably using a mapper), and then pass the original

convert ant path without assigning to immutable property

2010-08-20 Thread Jacob Beard
Hi, I have a situation where I have a path with a number of path segments, and, for each path segment, I need to transform that path segment (presumably using a mapper), and then pass the original path segment AND the transformed path segment to a macro. The problem is that it's not clear to

Re: using recent Rhino in ant script

2010-08-19 Thread Jacob Beard
Hi, I've now also posted this question on Stack Overflow: http://stackoverflow.com/questions/3526960/using-recent-rhino-in-ant-script Jake On 10-08-19 03:26 PM, Jacob Beard wrote: Hi, I'm trying to use a recent version of Rhino in an ant tag, </tt><tt>but it seems t

using recent Rhino in ant script

2010-08-19 Thread Jacob Beard
Hi, I'm trying to use a recent version of Rhino in an ant tag, but it seems to be using the version of Rhino that comes bundled with the JVM instead. I've tried adjusting the classpath to specify the Rhino script jar. Currently, I've tried the following: