Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Default ClearcaseByBaselineActivity

Hi,

I have changed the default template of ClearcaseByBaselineActivity by mistake. Can somebody send me the default template?

Thanks
Ankit

0 votes



5 answers

Permanent link
Hi,

I have changed the default template of ClearcaseByBaselineActivity by mistake. Can somebody send me the default template?

Thanks
Ankit


Hi Ankit,

Did you change the adaptor xml in the file system or just an adaptor that you created using the template type of ClearcaseByBaselineActivity? If the latter, then you could just act as if you're creating a new adaptor, set the template type to ClearcaseByBaselineActivity, and copy/paste/diff with your mistakenly modified adaptor.

Brent Ulbricht
RTC Build Lead

0 votes


Permanent link
Hi,

I have changed the default template of ClearcaseByBaselineActivity by mistake. Can somebody send me the default template?

Thanks
Ankit


Hi Ankit,

Did you change the adaptor xml in the file system or just an adaptor that you created using the template type of ClearcaseByBaselineActivity? If the latter, then you could just act as if you're creating a new adaptor, set the template type to ClearcaseByBaselineActivity, and copy/paste/diff with your mistakenly modified adaptor.

Brent Ulbricht
RTC Build Lead

I changed the default one.. :-(

0 votes


Permanent link
Hi,

I am not sure if I have changed the default one... But, I have doubts about the one which I can see. I might not have changed.

Here are the couple of things which I have noticed in ClearcaseByBaselineActivity. There is a section in the BOM fields, something similar to this:

<section name="changes">
<field order="1" name="file" title="File/Dir Name"/>
<field order="2" name="version" title="Version"/>
<field order="3" name="date" title="Date"/>
<field order="4" name="user" title="User"/>
<field order="5" name="comment" title="Comment"/>
</section>


But, the section, "changes", is never used in the Adaptor. While doing lsact on activities, we get all the file change information, and that information should be used to populate this field.

The section in the Adaptor template,

<match pattern="^\s+(.*?)\@\@(.*?\d)$">
<bom category="Source" section="changeset">
<field name="version" text="$1@@$2"/>
</bom>
<!-- add the information to our email template -->
<setenv name="Changes" value="$1\@\@$2" type="temp append\n"/>
<!-- and then run cc_diff to log the differences associated with this changed object -->
<run command="cc_diff" params="$VIEW $1 $2" server="$CCSERVER" dir="/" timeout="360"/>
</match>


calls cc_diff. This command only does the diff and populates the diff field. Also, the "match pattern="^\s+(.*?)\@\@(.*?\d)$" " is never executed.

I do not know why it is failing, but there is something wrong with this template.

Your help would be highly appreciated.

Thanks
Ankit

0 votes


Permanent link
Hi,

I am not sure if I have changed the default one... But, I have doubts about the one which I can see. I might not have changed.

Here are the couple of things which I have noticed in ClearcaseByBaselineActivity. There is a section in the BOM fields, something similar to this:

<section name="changes">
<field order="1" name="file" title="File/Dir Name"/>
<field order="2" name="version" title="Version"/>
<field order="3" name="date" title="Date"/>
<field order="4" name="user" title="User"/>
<field order="5" name="comment" title="Comment"/>
</section>


But, the section, "changes", is never used in the Adaptor. While doing lsact on activities, we get all the file change information, and that information should be used to populate this field.

The section in the Adaptor template,

<match pattern="^\s+(.*?)\@\@(.*?\d)$">
<bom category="Source" section="changeset">
<field name="version" text="$1@@$2"/>
</bom>
<!-- add the information to our email template -->
<setenv name="Changes" value="$1\@\@$2" type="temp append\n"/>
<!-- and then run cc_diff to log the differences associated with this changed object -->
<run command="cc_diff" params="$VIEW $1 $2" server="$CCSERVER" dir="/" timeout="360"/>
</match>


calls cc_diff. This command only does the diff and populates the diff field. Also, the "match pattern="^\s+(.*?)\@\@(.*?\d)$" " is never executed.

I do not know why it is failing, but there is something wrong with this template.

Your help would be highly appreciated.

Thanks
Ankit

Hi,

Those sections do not appear to have been modified from the original adaptor at install time. It could be that the output from the CC command is slightly different (possibly different release from which the adaptor was originally created) and the regular expression is not picking up the new format. If you were to run that CC command on the command line and look at the output, that might give an indication if the regular expression will match on the text.

Brent Ulbricht
RTC Build Lead

0 votes


Permanent link
Hi,

I am not sure if I have changed the default one... But, I have doubts about the one which I can see. I might not have changed.

Here are the couple of things which I have noticed in ClearcaseByBaselineActivity. There is a section in the BOM fields, something similar to this:

<section>
<field>
<field>
<field>
<field>
<field>
</section>


But, the section, "changes", is never used in the Adaptor. While doing lsact on activities, we get all the file change information, and that information should be used to populate this field.

The section in the Adaptor template,

<match>
<bom>
<field>
</bom>
<add>
<setenv>
<and>
<run>
</match>


calls cc_diff. This command only does the diff and populates the diff field. Also, the "match pattern="^\s+(.*?)\@\@(.*?\d)$" " is never executed.

I do not know why it is failing, but there is something wrong with this template.

Your help would be highly appreciated.

Thanks
Ankit

Hi,

Those sections do not appear to have been modified from the original adaptor at install time. It could be that the output from the CC command is slightly different (possibly different release from which the adaptor was originally created) and the regular expression is not picking up the new format. If you were to run that CC command on the command line and look at the output, that might give an indication if the regular expression will match on the text.

Brent Ulbricht
RTC Build Lead

Yes, it is not picking up the regular expression. But, even if it picks up, there is no where in the adaptor which fills the BOM Fields like File/Dir changes. These fields are declared in the adaptor, but are never used. But, if you ClearcaseByDate adaptor, it does get the file changes since the last run of the build.
So, I had to manually change the ClearcaseByBaslineActivity to get the file changes.

Thanks
Ankit

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jul 08 '11, 4:39 p.m.

Question was seen: 6,989 times

Last updated: Jul 08 '11, 4:39 p.m.

Confirmation Cancel Confirm