Eclipse CDT Headless build hangs after build completes

I am implementing a Continuous Integration Server for our embedded application built with the GNU-ARM toolchain with the GNU-ARM-ECLIPSE plugin. So I need to compile our CDT project from the command line on the server (I want to compile the Debug, Release and UnitTests assemblies and then run the tests).

I was planning on using Eclipse Headless builds ( see here ).

The problem I am getting is that after the build I do not get the prompt back (on Windows CMD or Powershell) and therefore I cannot run the tests. And also the CI server complains that the build was not successful, but everything builds fine. If I remove the command after it completes, I can run the tests, but there is no acceptable way to do this using a script or batch file if on the server.

Turns out this is a Windows-only problem, because on mac or linux I don't have this problem. Our server is a TFS server, so it should work on Windows.

Also, it might have something to do with the way the eclipse project is set up because I tried it with a basic Hello-World project and it works great. Any tips or help would be appreciated.

+1


source to share


1 answer


I had the same problem as yours and solved it by changing the order of the options (don't ask me why).

Cmd that has your problem:

eclipse --launcher.suppressErrors -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data {myWorkspace} -import {myProject} -build "project/target"

      



CMD that worked for me:

eclipse --launcher.suppressErrors -nosplash -data {myWorkspace} -application org.eclipse.cdt.managedbuilder.core.headlessbuild -import {myProject} -build "project/target"

      

0


source







All Articles