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.

Comments

Leave a Reply

Discover more from Chai's Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading