Ya, so I viewed the selenium-server.jar file and indeed it was bundled with it's own version of ANT. Weird. So instead of using that jar I used the selenium-server-coreless.jar, which didn't have a ANT bundled in it and that WORKED. Thanks Stefan pointing me in the right direction!
BTW -- I actually wasn't sticking this jar in my $ANT_HOME/lib directory I was just sticking it in a lib directory that my java application uses during the build. So really bizarre. On Jul 19, 2010, at 10:48 PM, Stefan Bodewig wrote: > On 2010-07-19, Ben Matz wrote: > >> I added a couple Selenium jars to my build lib and when I run ANT it >> reverts my ANT version to 1.6.5 (per calling ant -version) whereas it >> is actually 1.7.1? When I remove the jars the version goes back to >> 1.7.1?! Is that bizarre or what? > > I assume you've copied the jars to $ANT_HOME/lib, $HOME/.ant/lib or a > directory added via the -lib command line switch. Any such jar ends up > on the same classloader that is used to load Ant itself. > > One explanation would be that one of the jars you've added for Selenium > actually contains Ant 1.6.5 and this jar is lodaded prior to ant.jar. > Locate the offending jar (by looking into them, they are ZIP files after > all) and either try without that jar or stripping out Ant's classes from > that jar. > > Stefan > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org