Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] cdt with ClearCase

Claus,

We have several projects using the CDT with ClearCase via Dynamic and
Snapshot views.  As we have found it, Managed Make is out of the question
because we used Linked Resources to make our source code available in the
project.  Instead we use a Standard Make project and "link" in the VOBs we
need to access:

My_Project  (stored in W:\my_view\my_project_vob\my_project)
    .cdtproject
    .project
    \build
    \my_project_src
    \common_src  (-> link to w:\my_view\common_vob\src)
    \common_inc  (-> link to w:\my_view\common_vob\inc)
    \common_lib   (-> link to w:\my_view\common_vob\lib)

As long as the project is under source control, the ClearCase integration
will function properly for those linked resources that are also under
source control.

The tricky part is developing a makefile that can accurately find all these
resources and compile them into the "build" folder.  We solved that problem
with our own, internal plug-in called "Collins Managed Make".  It is a
layer on top of the CDT that generates the makefile automatically for the
Standard Make CDT project.

We've had similar problems with "references" and "declaration" operations
refusing to work properly.  In most cases, it was because the declaration
or reference did not follow the strict ANSI-C standard.  There are other
posts on this I believe.  Other times they behave erratically due to linked
resources.

We've also been plagued by performance when using many linked resources to
dynamic views (or any view that references a large number of files).  The
CDT indexer seems to index every compatible file it comes across.  So, take
care to only link to what you really need, or the indexer may be recursing
through an entire VOB needlessly.  This is also true for refreshing the
project.  Some operations in the CDT cause the project to refresh.  If your
linked resources lead to thousands of files, this refresh operation could
take several minutes.

Note, the CDT is peppered with Linked resource incompatibilities.  I
haven't found any critical issues, but you can find a few in the bugzilla
database.  None have prevented us from developing software using the CDT
and ClearCase.

Just noticing John's response... another way to control the project in
ClearCase is to create the project normally, in your workspace, setup your
linked resources and properties accordingly, and then use the "Team" menu
to "Share" your project using the ClearCase SCM adapter.  This works
similar to the CVS share command.  It moves the project into a ClearCase
VOB.

Chad Barnes
Rockwell Collins, Inc.


                                                                           
             Groeting Claus                                                
             Com Bocholt                                                   
             <Claus.Groeting@s                                          To 
             iemens.com>               "'cdt-dev@xxxxxxxxxxx'"             
             Sent by:                  <cdt-dev@xxxxxxxxxxx>               
             cdt-dev-admin@ecl                                          cc 
             ipse.org                                                      
                                                                   Subject 
                                       [cdt-dev] cdt with ClearCase        
             01/12/2005 01:52                                              
             AM                                                            
                                                                           
                                                                           
             Please respond to                                             
             cdt-dev@eclipse.o                                             
                    rg                                                     
                                                                           
                                                                           




Hi folks !

I have a small question regarding cdt using in an ClearCase environment.
How
can I
create a c/c++ project with files from a clearcase view WITHOUT copying the
files into
a workspace ? Is it possible to use cdt in conjunction with a dynamic view
?

The second question refers to the functionality "go to reference/ go to
definition".
I have several problems with "bigger" project using this. Normally, this
function
is feasable after the indexer has completed (?). But in lot of cases, I can
see the
message "The opreration is unavailable in this selection" at the bottom of
the
c/c++ perspective. Do You have any hint for that or is there just a
configuration issue ?

Is there any workaround, that in big projects the indexer doesn't need to
rescan the whole
project at every startup of the appropriate project ? (This takes a long,
long time in my project)

Any hint would be great...

Thanks,
Claus
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/cdt-dev




Back to the top