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.

> 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.

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.

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.

> 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.

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

Reply via email to