Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8124037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T06:20:58+00:00 2026-06-06T06:20:58+00:00

I have to reuse a major C++ project which is currently developed inside eclipse,

  • 0

I have to reuse a major C++ project which is currently developed inside eclipse, using CDT, mingw and cdt managed build feature (no external makefiles or build environment). The project itself is composed of many sub-projects.

I want to integrate that build into a continuous integration server (jenkins namely) and have thus to be able to automate the headless build.

So far, I managed to checkout the project (easy from jenkins) and have it build in a headless mode using eclipse, using the following command:

C:\prog\EclipseCdt\eclipse -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -import %WORKSPACE%\project1 -import %WORKSPACE%\project2 -import %WORKSPACE%\project3 -build all

It’s however not enough:

  • build is asynchronous : previous command returns (it forks actually) while I expect it to hold context until I have a result (like it would with make on linux or devenv on windows)
  • I was unable to extract the build logs (ideally have them in a file) : to integrate within my continuous information, I need to be able to parse my build logs to display interesting information (think about broken files)
  • Ideally, I’d like to get from Eclipse a direct status (return code) which indicates pass or fail.

Any idea how to have this behaviour ?

Note that:

  • using alternate (external) build system is currently not an option (I must keep the cdt managed build, it has a lot of complex history)
  • I’ve already looked on stack overflow and google and did not manage to find a way to do it, despite the apparent simplicity of my need
  • I’m currently on windows 7 / mingw 4.5.2 / Eclipse IDE for C/C++ Developers Version: Indigo Release Build id: 20110615-0604 but I think question is x-platform
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T06:21:00+00:00Added an answer on June 6, 2026 at 6:21 am

    it looks like if I start eclipse from a cmd interactively,it forks, if started from a bat script, it doesn’t. so putting the previous line in jenkins was enough to do the trick.

    Notes:

    • you need to add -data parameter to define location of your workbench (I clean build each time)
    • as usual, blame windows and put quotes….
    • --launcher.suppressErrors : in case something goes awoc, prevents eclipse from displaying a pop up (which is actually not displayed, thus blocks build)

    Final (working !) command:

    C:\prog\EclipseCdt\eclipse --launcher.suppressErrors -nosplash -data "%WORKSPACE%" -application org.eclipse.cdt.managedbuilder.core.headlessbuild -import "%WORKSPACE%\project1" -import "%WORKSPACE%\project2" -import "%WORKSPACE%\project3" -build all 
    

    EDIT

    • added –launcher.suppressErrors
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a whole bunch of projects which I want to reuse between the
I have modularised some simple classes into their own project for reuse elsewhere. These
I have multiple Java projects in Eclipse. I would like to reuse some classes
I have done automated UI testing before on a major WPF project and it
I would like to reuse safetype enum which I already have to specify argument
I have some shared code I want to reuse in my Xcode projects. The
I have a scenario in oracle where i need to be able to reuse
I want to use/reuse C++ object with Objective-C. I have a hello.h that has
We have a Library Project that we use for all our central reused code
I have a storyboard which contains views which simply refuse to change. If I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.