You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by david <da...@davidwbrown.name> on 2007/10/25 17:42:32 UTC

Ant build vs. CruiseControl

Hello Steve, dev, committers, gurus and users, a few weeks ago I read an email from Steve in the response to another user's email: Steve listed CruiseControl as one of the better OSS (free) softwares to manage a project under CVS and Ant. I have downloaded and built so-called CC and now it dutifully attempts to build my project. Problem: my project uses the Jera Ant Task jar to allow hidden input of a password. At the command-line the Ant build works as always. Under CC the build fails with the following exception:

[cc]Oct-25 09:58:16 ScriptRunner - xmls\taskdefs.xml:2: taskdef class com.jera.anttasks.Query cannot be found

The JeraAntTasks.jar is in the ANT_HOME/lib directory and elsewhere but Ant cannot find this jar regardless. I have included the Jera jar in the CLASSPATH and in the cruisecontrol.bat as a property but no change in the CC build exception reporting as stated above. All of the CC ML replies so far claim Ant as the culprit. The particulars follow. Thanks in advance and please advise, David.

OS: Windows XP
Ant: 1.7.0
CC: 2.7.1
JDK: 1.4

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


Re: Ant build vs. CruiseControl

Posted by Vijay Aravamudhan <av...@gmail.com>.
Also, make sure CC is using the ant install that you have dropped the 
jera jar in.
Typically, CC comes with its own version of ant - and to use a different 
install directory of ant, you have to pass in some parameters or set a 
system environment variable. (Cant remember what they are offhand).

hth,
Vijay

Loehr, Ruel wrote:
> Before declaring your taskdef echo the classpath you are using and post
> it.
>
> Google "ant print classpath" for instructions.
>
> -----Original Message-----
> From: david [mailto:david@davidwbrown.name] 
> Sent: Thursday, October 25, 2007 10:43 AM
> To: user@ant.apache.org
> Subject: Ant build vs. CruiseControl
>
> Hello Steve, dev, committers, gurus and users, a few weeks ago I read an
> email from Steve in the response to another user's email: Steve listed
> CruiseControl as one of the better OSS (free) softwares to manage a
> project under CVS and Ant. I have downloaded and built so-called CC and
> now it dutifully attempts to build my project. Problem: my project uses
> the Jera Ant Task jar to allow hidden input of a password. At the
> command-line the Ant build works as always. Under CC the build fails
> with the following exception:
>
> [cc]Oct-25 09:58:16 ScriptRunner - xmls\taskdefs.xml:2: taskdef class
> com.jera.anttasks.Query cannot be found
>
> The JeraAntTasks.jar is in the ANT_HOME/lib directory and elsewhere but
> Ant cannot find this jar regardless. I have included the Jera jar in the
> CLASSPATH and in the cruisecontrol.bat as a property but no change in
> the CC build exception reporting as stated above. All of the CC ML
> replies so far claim Ant as the culprit. The particulars follow. Thanks
> in advance and please advise, David.
>
> OS: Windows XP
> Ant: 1.7.0
> CC: 2.7.1
> JDK: 1.4
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
>   

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


RE: Ant build vs. CruiseControl

Posted by david <da...@davidwbrown.name>.
Hello Ruel, thanks for the reply. I have commented out the taskdef completely and of course the CC builds with Ant correctly. Please find the classpath as issued by a target using:

<echoproperties />

[echoproperties] java.class.path=C\:\\Documents and Settings\\davidb\\My Documents\\dev\\apache-ant-1.7.0\\lib\\ant-launcher.jar;C\:\\Documents and Se
ttings\\davidb\\My Documents\\dev\\junit4.3.1\\junit4.3.1.jar;C\:\\Documents and Settings\\davidb\\My Documents\\dev\\junit4.3.1;C\:\\Documents and Se
ttings\\davidb\\My Documents\\dev\\axis2-1.2\\lib;C\:\\Documents and Settings\\davidb\\My Documents\\dev\\jboss-4.2.1.GA\\lib;C\:\\Documents and Setti
ngs\\davidb\\My Documents\\dev\\jboss-4.2.1.GA\\lib\\mysql-connector-java-3.1.8-bin-2005-04-14.jar;C\:\\Documents and Settings\\davidb\\My Documents\\
dev\\jeraanttasks\\JeraAntTasks.jar;C\:\\Documents and Settings\\davidb\\My Documents\\dev\\apache-ant-1.7.0\\lib\\ant-antlr.jar;C\:\\Documents and Se
ttings\\davidb\\My Documents\\dev\\apache-ant-1.7.0\\lib\\ant-apache-bcel.jar;C\:\\Documents and Settings\\davidb\\My Documents\\dev\\apache-ant-1.7.0
\\lib\\ant-apache-bsf.jar;C\:\\Documents and Settings\\davidb\\My Documents\\dev\\apache-ant-1.7.0\\lib\\ant-apache-log4j.jar;C\:\\Documents and Setti
ngs\\davidb\\My Documents\\dev\\apache-ant-1.7.0\\lib\\ant-apache-oro.jar;C\:\\Documents and Settings\\davidb\\My Documents\\dev\\apache-ant-1.7.0\\li
b\\ant-apache-regexp.jar;C\:\\Documents and Settings\\davidb\\My Documents\\dev\\apache-ant-1.7.0\\lib\\ant-apache-resolver.jar;C\:\\Documents and Set
tings\\davidb\\My Documents\\dev\\apache-ant-1.7.0\\lib\\ant-commons-logging.jar;C\:\\Documents and Settings\\davidb\\My Documents\\dev\\apache-ant-1.
7.0\\lib\\ant-commons-net.jar;C\:\\Documents and Settings\\davidb\\My Documents\\dev\\apache-ant-1.7.0\\lib\\ant-jai.jar;C\:\\Documents and Settings\\
davidb\\My Documents\\dev\\apache-ant-1.7.0\\lib\\ant-javamail.jar;C\:\\Documents and Settings\\davidb\\My Documents\\dev\\apache-ant-1.7.0\\lib\\ant-
jdepend.jar;C\:\\Documents and Settings\\davidb\\My Documents\\dev\\apache-ant-1.7.0\\lib\\ant-jmf.jar;C\:\\Documents and Settings\\davidb\\My Documen
ts\\dev\\apache-ant-1.7.0\\lib\\ant-jsch.jar;C\:\\Documents and Settings\\davidb\\My Documents\\dev\\apache-ant-1.7.0\\lib\\ant-junit.jar;C\:\\Documen
ts and Settings\\davidb\\My Documents\\dev\\apache-ant-1.7.0\\lib\\ant-launcher.jar;C\:\\Documents and Settings\\davidb\\My Documents\\dev\\apache-ant
-1.7.0\\lib\\ant-netrexx.jar;C\:\\Documents and Settings\\davidb\\My Documents\\dev\\apache-ant-1.7.0\\lib\\ant-nodeps.jar;C\:\\Documents and Settings
\\davidb\\My Documents\\dev\\apache-ant-1.7.0\\lib\\ant-starteam.jar;C\:\\Documents and Settings\\davidb\\My Documents\\dev\\apache-ant-1.7.0\\lib\\an
t-stylebook.jar;C\:\\Documents and Settings\\davidb\\My Documents\\dev\\apache-ant-1.7.0\\lib\\ant-swing.jar;C\:\\Documents and Settings\\davidb\\My D
ocuments\\dev\\apache-ant-1.7.0\\lib\\ant-testutil.jar;C\:\\Documents and Settings\\davidb\\My Documents\\dev\\apache-ant-1.7.0\\lib\\ant-trax.jar;C\:
\\Documents and Settings\\davidb\\My Documents\\dev\\apache-ant-1.7.0\\lib\\ant-weblogic.jar;C\:\\Documents and Settings\\davidb\\My Documents\\dev\\a
pache-ant-1.7.0\\lib\\ant.jar;C\:\\Documents and Settings\\davidb\\My Documents\\dev\\apache-ant-1.7.0\\lib\\JeraAntTasks.jar;C\:\\Documents and Setti
ngs\\davidb\\My Documents\\dev\\apache-ant-1.7.0\\lib\\jsch-0.1.33.jar;C\:\\Documents and Settings\\davidb\\My Documents\\dev\\apache-ant-1.7.0\\lib\\
xercesImpl.jar;C\:\\Documents and Settings\\davidb\\My Documents\\dev\\apache-ant-1.7.0\\lib\\xml-apis.jar;C\:\\Program Files\\Java\\jdk1.6.0_02\\lib\
\tools.jar

Loehr, Ruel wrote ..
> Before declaring your taskdef echo the classpath you are using and post
> it.
> 
> Google "ant print classpath" for instructions.
> 
> -----Original Message-----
> From: david [mailto:david@davidwbrown.name] 
> Sent: Thursday, October 25, 2007 10:43 AM
> To: user@ant.apache.org
> Subject: Ant build vs. CruiseControl
> 
> Hello Steve, dev, committers, gurus and users, a few weeks ago I read an
> email from Steve in the response to another user's email: Steve listed
> CruiseControl as one of the better OSS (free) softwares to manage a
> project under CVS and Ant. I have downloaded and built so-called CC and
> now it dutifully attempts to build my project. Problem: my project uses
> the Jera Ant Task jar to allow hidden input of a password. At the
> command-line the Ant build works as always. Under CC the build fails
> with the following exception:
> 
> [cc]Oct-25 09:58:16 ScriptRunner - xmls\taskdefs.xml:2: taskdef class
> com.jera.anttasks.Query cannot be found
> 
> The JeraAntTasks.jar is in the ANT_HOME/lib directory and elsewhere but
> Ant cannot find this jar regardless. I have included the Jera jar in the
> CLASSPATH and in the cruisecontrol.bat as a property but no change in
> the CC build exception reporting as stated above. All of the CC ML
> replies so far claim Ant as the culprit. The particulars follow. Thanks
> in advance and please advise, David.
> 
> OS: Windows XP
> Ant: 1.7.0
> CC: 2.7.1
> JDK: 1.4
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org

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


RE: Ant build vs. CruiseControl

Posted by "Loehr, Ruel" <rl...@pointserve.com>.
Before declaring your taskdef echo the classpath you are using and post
it.

Google "ant print classpath" for instructions.

-----Original Message-----
From: david [mailto:david@davidwbrown.name] 
Sent: Thursday, October 25, 2007 10:43 AM
To: user@ant.apache.org
Subject: Ant build vs. CruiseControl

Hello Steve, dev, committers, gurus and users, a few weeks ago I read an
email from Steve in the response to another user's email: Steve listed
CruiseControl as one of the better OSS (free) softwares to manage a
project under CVS and Ant. I have downloaded and built so-called CC and
now it dutifully attempts to build my project. Problem: my project uses
the Jera Ant Task jar to allow hidden input of a password. At the
command-line the Ant build works as always. Under CC the build fails
with the following exception:

[cc]Oct-25 09:58:16 ScriptRunner - xmls\taskdefs.xml:2: taskdef class
com.jera.anttasks.Query cannot be found

The JeraAntTasks.jar is in the ANT_HOME/lib directory and elsewhere but
Ant cannot find this jar regardless. I have included the Jera jar in the
CLASSPATH and in the cruisecontrol.bat as a property but no change in
the CC build exception reporting as stated above. All of the CC ML
replies so far claim Ant as the culprit. The particulars follow. Thanks
in advance and please advise, David.

OS: Windows XP
Ant: 1.7.0
CC: 2.7.1
JDK: 1.4

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


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