Re: AntProgressLogger

Karl-Michael Schneider <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
James Ford <james.t.ford <at> gmail.com> writes:

> 
> I am experiencing difficulty with the AntProgressLogger. Below is a dump 
from
cruisecontrol. Any help or a point in the right direction would be greatly
appreciated.[cc]Jul-23 23:51:15 ScriptRunner  - Buildfile:
projects/connectfour/build.xml
> [cc]Jul-23 23:51:15 ScriptRunner  - Unable to instantiate specified logger
class net.sourceforge.cruisecontrol.builders.AntProgressLogger :
java.lang.ClassNotFoundException[cc]Jul-23 23:51:15 ScriptRunner  -
java.lang.RuntimeException
> [cc]Jul-23 23:51:15 ScriptRunner  -     at
org.apache.tools.ant.Main.createLogger(Main.java:782)[cc]Jul-23 23:51:15
ScriptRunner  -     at
org.apache.tools.ant.Main.addBuildListeners(Main.java:705)[cc]Jul-23 23:51:15
ScriptRunner  -     at org.apache.tools.ant.Main.runBuild(Main.java:597)
> [cc]Jul-23 23:51:15 ScriptRunner  -     at
org.apache.tools.ant.Main.startAnt(Main.java:187)[cc]Jul-23 23:51:15
ScriptRunner  -     at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)[cc]Jul-23 23:51:15
ScriptRunner  -     at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)Here are my path
variables/usr/java/jdk1.6.0_07/bin://sbin://bin:/usr/local/sbin:/usr/local
/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/binand
here is the java version[root <at> s15297812 cruisecontrol-bin-2.7.3]# java
-version
> java version "1.6.0_07"Java(TM) SE Runtime Environment (build
1.6.0_07-b06)Java HotSpot(TM) 64-Bit Server VM (build 10.0-b23, mixed mode)
[root
<at> s15297812 cruisecontrol-bin-2.7.3]#

I installed the binary distribution of CC 2.8.2 today on a Linux machine
and ran into the same problem (class not found:
net.sourceforge.cruisecontrol.builders.AntProgressLogger). The problem
appears to be that the anthome attribute from the config.xml file does
not get passed into the ANT_HOME environment variable, and then the ant
script tries to determine its home directory from various sources. If you
have ant installed on your machine elsewhere and /etc/ant.conf exists, ant
looks for libraries and jar files in some other ant home directory, e.g.
/usr/share/ant, rather than in CCDIR/apache-ant-1.7.0/lib.

To get this work, either copy the cruisecontrol-antprogresslogger.jar file
into your external ant lib directory, or edit CCDIR/apache-ant-1.7.0/bin/ant
and set no_config=true.

Maybe this is a bug and specifying anthome in config.xml should set the
ANT_HOME environment variable when the ant script is called.

Karl-Michael


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.