Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 316212

Summary: How do we build CDT from a git repository
Product: [Tools] CDT Reporter: James Blackburn <jamesblackburn+eclipse>
Component: cdt-relengAssignee: cdt-releng-inbox <cdt-releng-inbox>
Status: RESOLVED DUPLICATE QA Contact: Vivian Kong <vivkong>
Severity: normal    
Priority: P3 CC: cdtdoug, pwebster
Version: 7.0   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 316208    

Description James Blackburn CLA 2010-06-08 17:05:23 EDT
CDT uses PDE basebuilder based builds which are currently built from CVS where each CDT plugin is checked out at plugin granularity from CVS.

I've built CDT releases from a local git clones (where each git repo is one CDT plugin) successfully using an simple but stupid git IFetchFactory (bug 289838). How would we do this if we had all of CDT in one git repository?


Doug says:
"thanks to tips from Andrew Niefer, I have figured out how to do PDE build from already checked out source. At the very least, I'll do that for the Hudson builds. But when we do decide to go to git, we should have no problems setting up the builds"

Could you document here / on the wiki how to do this?
Comment 1 Doug Schaefer CLA 2010-06-08 18:57:11 EDT
It's pretty easy but requires changes to the CDT build scripts.

PDE gives you a property to skip the fetch part of the build. You can then feed it a search path to find the plug-ins, etc, instead.

So the idea is to check out the CDT from git and create the tag first then invoke the build.xml.
Comment 2 James Blackburn CLA 2010-08-31 05:10:24 EDT
Just found Bug 128846 has some comment on using custom search paths for PDE build.
Comment 3 Doug Schaefer CLA 2010-08-31 11:26:26 EDT
Yes, that's the one I was talking about.
Comment 4 James Blackburn CLA 2010-10-13 05:00:13 EDT
The work for this has been done in bug 289838.  A git fetch factory which supports extracting plugins from a repository has been created.

*** This bug has been marked as a duplicate of bug 289838 ***