Working with CruiseControl-1

While working with CruiseControl I faced the following issue. But I could not get help from Google. Hence I am listing the issue and its resolution.

Issue:
D:\CruiseControl\BuildServer\WorkArea\SampleCCProject\build-cc.xml:10: The following error occurred while executing this line:
D:\CruiseControl\BuildServer\WorkArea\SampleCCProject\build.xml:56: Problem: failed to create task or type junit
Cause: the class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask was not found.
        This looks like one of Ant’s optional components.
Action: Check that the appropriate optional JAR exists in
        -D:\CruiseControl\BuildServer\cruisecontrol-bin-2.7.3\lib
        -C:\Documents and Settings\chaita_matukumilli\.ant\lib
        -a directory added on the command line with the -lib argument
Do not panic, this is a common problem.
The commonest cause is a missing JAR.
This is not a bug; it is a configuration problem
Resolution:
Add ant-junit.jar in lib folder of CruiseControl.
While the resolution is self explanatory to some extent it is not complete. Though it tells some jar is missing and where it needs to be added, It will not tell what jar file to add.

Published by Chaitanya

I am a family man, perpetual learner, coffee drinker, dessert eater and Happiness Engineer at Automattic. I also read, write, move, and meditate.

Leave a comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: