Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Build from Command Line with Post-build steps
Build from Command Line with Post-build steps [message #1850905] Mon, 21 March 2022 14:19 Go to next message
Eclipse UserFriend
I'm writing a script to build several projects that have Post-build steps from the command line and it doesn't look like the Post-build steps are being executed.
I'm using Eclipse Version 2019-03 (4.11.0).
The script I'm using is:
eclipse -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data ./{$projLoc} -build all
Is there some parameter I'm missing that will allow me to run the Post-build steps?
Re: Build from Command Line with Post-build steps [message #1850997 is a reply to message #1850905] Thu, 24 March 2022 06:14 Go to previous message
Eclipse UserFriend
We are using the headless build with the project name as argument. The postbuild step is called here.

echo Importing project %PROJ_NAME% ...
%ECLIPSEC% -nosplash --launcher.suppressErrors -no-indexer -data %TMP_WKSP% -application org.eclipse.cdt.managedbuilder.core.headlessbuild -import %PROJ_DIR%
if ERRORLEVEL 1 set BUILD_FAILED=yes

echo Performing clean build of project %PROJ_NAME% ...
%ECLIPSEC% -nosplash --launcher.suppressErrors -no-indexer -data %TMP_WKSP% -application org.eclipse.cdt.managedbuilder.core.headlessbuild -cleanBuild %PROJ_NAME%
if ERRORLEVEL 1 set BUILD_FAILED=yes

Maybe this helps.

-Harald
Previous Topic:[Problem] Can't use MinGW toolchain, even if MinGW is installed.
Next Topic:Console view not automatically activated when building
Goto Forum:
  


Current Time: Mon Jul 14 13:37:40 EDT 2025

Powered by FUDForum. Page generated in 0.03469 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top