> -----Original Message-----
> From: Stefan Bodewig [mailto:bode...@apache.org]
> Sent: Thursday, 9 April 2009 8:32 PM
> To: user@ant.apache.org
> Subject: Re: Optional Jars
> 
> On 2009-04-09, Gavin <ga...@16degrees.com.au> wrote:
> 
> >  ANT_HOME/lib jar listing
> > -------------------------------------------
> > ant.home: /usr/share/ant
> > ant-launcher.jar (11814 bytes)
> > ant-bootstrap.jar (16489 bytes)
> > bcel.jar (528673 bytes)
> > ant-junit.jar (92792 bytes)
> > ant-antlr.jar (5769 bytes)
> > jakarta-oro-2.0.8.jar (65261 bytes)
> > ant.jar (1327716 bytes)
> > junit.jar (70424 bytes)
> 
> This is pretty incomplete, a lot of the Ant's own jars are missing.

aha, a side effect of relying on apt-get, see below ...

> 
> > Here is the first project that fails :-
> 
> > Apache JMeter
> > -------------
> 
> > (Details of failed build at
> > http://202.60.90.243:8020/builders/jmeter-
> trunk/builds/9/steps/shell/logs/st
> > dio)
> 
> > The helpful error message I get is :-
> 
> > Cause: the class org.apache.tools.ant.taskdefs.optional.ReplaceRegExp
> was
> > not found.
> 
> requires either ant-nodeps.jar for using JDK 1.4+ regexp or
> ant-apache-oro.jar (given that you have ORO in ANT_HOME/lib).
> 
> > Cause: the class org.apache.tools.ant.taskdefs.optional.PropertyFile was
> not
> > found.
> >         This looks like one of Ant's optional components.
> 
> this is in ant-nodeps.jar which you don't have.
> 
> > Back to these 'optional jars' - is there a place where all of these
> optional
> > jars live, so folks can get them all from one place without having to
> scour
> > the earth for them.
> 
> The Ant distribution only contains Ant's own classes, they are not the
> dependencies required.  You may have thought ant-apache-oro.jar and
> jakarta-oro-2.0.8.jar were the same, but they aren't.
> ant-apache-oro.jar contains the classes that require ORO, you need
> both of them in ANT_HOME/lib to make things work.

Great, thanks. My main problem stemmed from the fact I did an 'apt-get
install ant' on the Ubuntu machines, thinking it would be a complete
installation. In fact doing it this way and I did not get *any* jars
whatsoever (in /usr/share/ant/lib), those you saw in my output above were a
result of me finding and adding them manually. Also you don't get the docs
or other directories.

I downloaded the source and extracted the libs from dist/libs/ and all is
now working fine. A step the perhaps apt-get should be told to do in the
future?

> 
> There is a build file called fetch.xml in Ant's svn repo[1] (it is
> also part of the source distribution, it could even be part of the
> binary dist, not sure) that will use the Maven Ant tasks to collect
> all available optional dependencies.

Good to know, as I had to download the source distro to get that, the
required jars were in dist/libs anyway so seemed easier to just copy them
over.

> 
> Ant does have some optional dependencies on proprietary third party
> jars that cannot be provided at all.  I wouldn't expect any of the
> projects you build in buildbot to make use of the related tasks,
> though.

So far so good, after installing the jars the above two projects are now
passing fine - along with another 3 so that's great, thanks for your help!

> 
> > If we can get all the above working great and I end up understanding
> > what I'm doing, could Ant project benefit from having build tests
> > and snapshot builds etc run on Buildbot at Apache?
> 
> I think so.  We used to have nightly builds on vmbuild, but I don't
> think they are available anymore.

Ok, I'll take a look at doing that these next couple of days.

Cheers

Gav...


> 
> Many thanks
> 
>      Stefan
> 
> [1] http://svn.apache.org/repos/asf/ant/core/trunk/fetch.xml
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
> For additional commands, e-mail: user-h...@ant.apache.org
> 
> 
> 
> --
> No virus found in this incoming message.
> Checked by AVG.
> Version: 7.5.557 / Virus Database: 270.11.47/2047 - Release Date: 4/8/2009
> 5:53 AM


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to