Friday, November 26, 2010

Re: Clearcase CM Java API - How to find folder changes

Permlink Replies: 4 - Pages: 1 - Last Post: Nov 23, 2010 5:15 PM Last Post By: Mac.Fiennes Threads: [ Previous | Next ]
Posts: 3
Registered: Jul 27, 2010 01:06:03 PM Clearcase CM Java API - How to find folder changes
Posted: Jul 27, 2010 01:16:51 PM I am trying to use the API to find which files changed between different versions of a directory.
To do that I would need to find the bound children for either a CcDirectory or a CcDirectoryVersion and then compare the results.

However, the property CHILD_LIST comes back empty, and CHILD_MAP gives an "operation not supported" error.
I also tried the doReadMemberList(), but that also throws an UnsupportedOperationException.

Is there a way to accomplish this via the API? If the correct way is to use one of the above "unsupported" operations mentioned above, are there any plans to support these functions in an upcoming release?

It seems like this should be possible, since the CCRC Eclipse plugin has no trouble showing the differences between directory versions.

Thanks in advance!


Posts: 3
Registered: Jul 27, 2010 01:06:03 PM Re: Clearcase CM Java API - How to find folder changes
Posted: Aug 04, 2010 02:14:16 PM   in response to: jlevine in response to: jlevine's post Sorry to reply to my own post, but it may be that this question is not easily answerable. Does anyone know of a different forum or way to find an answer to the problem with the API devs?
Posts: 561
Registered: Nov 19, 2007 06:06:36 AM Re: Clearcase CM Java API - How to find folder changes
Posted: Aug 04, 2010 04:29:33 PM   in response to: jlevine in response to: jlevine's post You have a few options:
1. You can compare two directory versions by 'cleartool diff'
2. You can use 'cleartool desc' to get the files that have been changed (it's generated automatically by ClearCase when it catalogues directories)
3. We provide a plug-in that easily reports the differences, including directories. It currently works for UCM only.

Tamir Gefen, GoMidjets
http://www.gomidjets.com


Posts: 3
Registered: Jul 27, 2010 01:06:03 PM Re: Clearcase CM Java API - How to find folder changes
Posted: Aug 05, 2010 03:32:16 PM   in response to: Tgefen in response to: Tgefen's post Sorry, this needs to work in base Clearcase, and I need a solution using the new Java CM API, not using cleartool. Does anyone out there use this API?
Posts: 4
Registered: Sep 09, 2010 07:34:57 PM Re: Clearcase CM Java API - How to find folder changes
Posted: Nov 23, 2010 05:15:00 PM   in response to: jlevine in response to: jlevine's post Tgefen wrote:
You have a few options:
1. You can compare two directory versions by 'cleartool diff'
2. You can use 'cleartool desc' to get the files that have been changed (it's generated automatically by ClearCase when it catalogues directories)
3. We provide a plug-in that easily reports the differences, including directories. It currently works for UCM only.

Tamir Gefen, GoMidjets
http://www.gomidjets.com


Thanks for your analysis! Now I understand more about it, It helps me out of the problem, It's comprehensive.Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

Use the search field to find all types of content in My developerWorks with that tag. Use the slider bar to see more or fewer tags. Popular tags shows the top tags for this particular type of content or application that you're viewing. My tags shows your tags for this particular type of content or application that you're viewing.MoreLess 
Point your RSS reader here for a feed of the latest messages in all forums

View the original article here

No comments:

Post a Comment