Hi All,

Apologies for the long post, I do have a few things to ask. In return for a
cure I'll try and put something back in by maybe clarifying some docs or
adding examples if either of those ends up being warranted. On top of that,
Buildbot at Apache may be able to offer something such as snapshots etc
(teamcity.jetbrains seems to no longer be available so your builds are not
available)

Here comes another one of those classpath jar type scenarios. Having
searched the archived this really does seem to be the most asked question.

First off, I've read all the kinds of advice given on where to put these
jars etc, and to not set an actual classpath. No matter what I do or where I
put things, it seems to make no difference. So I must be doing something
wrong. I've also read a little bit that by putting certain jars in place it
can make other things 'not' work, I'm certainly confused by that and could
be the cause of some of my troubles.

The main advice I've taken on board is this quote by Jan 

"... Ant doesnt require a CLASSPATH and you shouldnt have one set.
The ant.* launch script starts the ant-launcher.jar. This one collects all
JARs in \
/lib and /lib/optional and all JARs given with -lib option ..."

So hopefully I've followed that.

The main aim here is to build various Apache projects using Buildbot. The
main url is http://ci.apache.org - that's the official place. I am currently
testing many more projects at http://202.60.90.243:8020/waterfall before
moving them over so I'll point out some errors I'm getting from that.

Here is my current setup.

-------------------------------------------
 ANT PROPERTIES
-------------------------------------------
ant.version: Apache Ant version 1.7.0 compiled on August 29 2007
ant.java.version: 1.6
ant.core.lib: /usr/share/ant/lib/ant.jar
ant.home: /usr/share/ant

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

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.
        This looks like one of Ant's optional components.
Action: Check that the appropriate optional JAR exists in
        -/usr/share/ant/lib
        -/home/buildslave1/.ant/lib
        -a directory added on the command line with the -lib argument

Now, I have put the jars in ANT_HOME/lib, also tried $USER_HOME/.ant/lib and
also even tried specifying those two locations (one at a time) with the -lib
argument.

>From what I understand of the docs, ReplaceRegExp requires the Jakarta-oro.*
jar ? but I could be wrong on that.

Another project that fails :-

Apache pdfbox
-------------

(Details of failed build at
http://202.60.90.243:8020/builders/pdfbox-trunk/builds/0/steps/compile/logs/
stdio)

Error Message :-

Cause: the class org.apache.tools.ant.taskdefs.optional.PropertyFile was not
found.
        This looks like one of Ant's optional components.

I could not find which optional jar would be needed for that.

Ok, I think those two examples will do for now, and no doubt point out my
mistake.

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. For instance if you want a perl module, cpan is the
place to go, is there a similar place for all ants extra goodies? If not
could we benefit from having such a place ?

Onto buildbot. 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 know you use
Hudson for Ivy so I'm not suggesting a replacement for that).

Anyway, thanks for listening, assuming you got this far - well done!

Gav...



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

Reply via email to