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.

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 was not found.
        This looks like one of Ant’s optional components.
Action: Check that the appropriate optional JAR exists in
        -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
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.



Leave a Reply

%d bloggers like this: