Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353201 - Releng support for EDC
Summary: Releng support for EDC
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-releng (show other bugs)
Version: 8.0   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 8.1.0   Edit
Assignee: Doug Schaefer CLA
QA Contact: Vivian Kong CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-27 08:00 EDT by James Blackburn CLA
Modified: 2012-05-22 20:33 EDT (History)
2 users (show)

See Also:
jamesblackburn+eclipse: review? (cdtdoug)


Attachments
patch1 (18.96 KB, patch)
2011-07-27 10:24 EDT, James Blackburn CLA
cdtdoug: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James Blackburn CLA 2011-07-27 08:00:32 EDT
We need to be able to headlessly build EDC, potentially as part of the top-level CDT build. 

I'm taking a look at Tycho-izing EDC, and seeing if I can link the top-level CDT pom to the EDC pom.  Any tips appreciated!
Comment 1 James Blackburn CLA 2011-07-27 10:24:08 EDT
Created attachment 200451 [details]
patch1

First cut adding Tycho to the EDC plugin.  I'm not sure what the best way of building EDC against SNAPSHOT TCF/CDT is.  Assuming that EDC is checked out next to CDT/TCF, I added an explicit path to the CDT/TCF p2 repos:
    <cdt-site>file://${basedir}/../../org.eclipse.cdt/releng/org.eclipse.cdt.repo/target/repository/</cdt-site>
    <tcf-site>file://${basedir}/../../org.eclipse.tm.tcf/features/org.eclipse.tm.tcf.repo/target/repository/</tcf-site>

Perhaps there's a better way of doing this...?
Comment 2 James Blackburn CLA 2011-07-28 08:01:32 EDT
I've pushed support for building EDC with Tycho.  There's still the issue of the best way to build against a HEAD CDT+TCF vs building against a p2 release...

My recipe looks like:
git clone git://git.eclipse.org/gitroot/cdt/org.eclipse.cdt.git
git clone git://git.eclipse.org/gitroot/cdt/org.eclipse.cdt.edc.git
svn co svn://dev.eclipse.org/svnroot/dsdp/org.eclipse.tm.tcf/trunk/ org.eclipse.tm.tcf

#Build CDT
pushd org.eclipse.cdt
mvn -Dmaven.test.skip clean install
popd
#Build TCF
pushd org.eclipse.tm.tcf
mvn -Dmaven.test.skip clean install
popd
#Build EDC
pushd org.eclipse.cdt.edc
mvn -Dmaven.test.skip clean install
popd
Comment 3 CDT Genie CLA 2011-07-28 08:18:19 EDT
*** cdt git genie on behalf of 353201 ***

    Bug 353201 Add org.eclipse.cdt.debug.edc.repo plugin to contain the generated p2 update site
commit 0132ff9e611a813ba06f12ae3a95f6e3eee34ea9
    Bug 353201 - Tycho releng support for EDC
    Generate pom.xmls using: mvn org.eclipse.tycho:tycho-pomgenerator-plugin:generate-poms -DgroupId=org.eclipse.cdt.edc
commit 13b735cc29a317f912216607143e712007175297
    Add */bin + */target directories to the .gitignore

[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=ff482551b0ebd59cb91d0fbd9cc42887c4616441
[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=0132ff9e611a813ba06f12ae3a95f6e3eee34ea9
[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=13b735cc29a317f912216607143e712007175297