jar:file:/C:/apache-ant-1.6.5/lib/clearantlib-1.1.1.jar!/net/sourceforge/clearan
tlib/antlib.xml:13: taskdef A class needed by class net.sourceforge.clearantlib.
CQBuildRecord cannot be found: com/ibm/rational/wvcm/stp/Repository
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
<attribute name="plevel" default="BUILT"/>
<attribute name="startloc" default="."/>
<sequential>
<!-- create a new label type -->
<ca:ccexec>
<arg value="mklbtype"/>
<arg value="@{label}"/>
</ca:ccexec>
<!-- apply the label -->
<ca:ccexec>
<arg value="mklabel"/>
<arg value="-recurse"/>
<arg value="@{label}"/>
<arg value="@{startloc}"/>
</ca:ccexec>
<!-- apply the promotion level to the label -->
<ca:ccexec>
<arg value="mkattr"/>
<arg value="PromotionLevel"/>
<arg value=""@{plevel}""/>
<arg value="lbtype:@{label}"/>
</ca:ccexec>
</sequential>
</macrodef>
using
<cc-apply-label label="${label}" plevel="BUILT"/>
in my build script and the script is being run by apache-ant-1.7.0 for setting up the cruise control on clearcase.
I have copied all the jar files under teamapi.7.0.1\apps folder to the lib file of the ant. but still getting the error:
!/net/sourceforge/clearantlib/antlib.xml:13: taskdef A class needed by class net.sourceforge.clearantlib.CQBuildRecord cannot be found: com/ibm/rational/wvcm/stp/Repository
Can anyone please help me if I am doing anything wrong :(...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to run ccexec task using ant. I am getting the following error:
Where can i get find com/ibm/rational/wvcm/stp/* classes.
<ca:ccexec>
<arg value="@{type}"/>
<arg line="-c '@{comment}' @{extra-args}"/>
<arg value="@{element}"/>
</ca:ccexec>
Error:
jar:file:/C:/apache-ant-1.6.5/lib/clearantlib-1.1.1.jar!/net/sourceforge/clearan
tlib/antlib.xml:13: taskdef A class needed by class net.sourceforge.clearantlib.
CQBuildRecord cannot be found: com/ibm/rational/wvcm/stp/Repository
The required libraries are part of Rational Java Team API. They are part of the 7.0 release. If you have not got access to the libraries then you can download them from here: http://clearantlib.svn.sourceforge.net/viewvc/clearantlib/trunk/lib/
I will update the documentation/installer accordingly.
Kevin
I am calling following macro:
<macrodef name="cc-apply-label">
<attribute name="label"/>
<attribute name="plevel" default="BUILT"/>
<attribute name="startloc" default="."/>
<sequential>
<!-- create a new label type -->
<ca:ccexec>
<arg value="mklbtype"/>
<arg value="@{label}"/>
</ca:ccexec>
<!-- apply the label -->
<ca:ccexec>
<arg value="mklabel"/>
<arg value="-recurse"/>
<arg value="@{label}"/>
<arg value="@{startloc}"/>
</ca:ccexec>
<!-- apply the promotion level to the label -->
<ca:ccexec>
<arg value="mkattr"/>
<arg value="PromotionLevel"/>
<arg value=""@{plevel}""/>
<arg value="lbtype:@{label}"/>
</ca:ccexec>
</sequential>
</macrodef>
using
<cc-apply-label label="${label}" plevel="BUILT"/>
in my build script and the script is being run by apache-ant-1.7.0 for setting up the cruise control on clearcase.
I have copied all the jar files under teamapi.7.0.1\apps folder to the lib file of the ant. but still getting the error:
!/net/sourceforge/clearantlib/antlib.xml:13: taskdef A class needed by class net.sourceforge.clearantlib.CQBuildRecord cannot be found: com/ibm/rational/wvcm/stp/Repository
Can anyone please help me if I am doing anything wrong :(...
This is the same as https://sourceforge.net/forum/message.php?msg_id=4004317, see the response there - you need the team API libraries