Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
batchbuild
tiwag:
--- Quote from: mandrav on April 05, 2006, 12:12:51 pm ---
--- Quote from: tiwag ---but may i propose to close it only if no build error occured ?
--- End quote ---
Sure, go ahead and update it.
--- End quote ---
ok, done.
thanks again, works fine now with scripts ... :D
regarding the returnvalue issue ... i'll look if there is any solution possible
Jan van den Borst:
I'm also trying to use codeblock batch capability in scripting (using msbuild). However if there was a compile error the BatchBuildDialog doesn't close. This stops the msbuild script. Is it possible to go on with the msbuild script, closing the BatchBuildDialog (returning error code)?
I think it must be possible to instuct the batch building process to always exit (close windows) giving proper exit code.
tiwag:
--- Quote from: Jan van den Borst on August 29, 2006, 10:26:30 pm ---... if there was a compile error the BatchBuildDialog doesn't close. This stops the msbuild script.
Is it possible to go on with the msbuild script, closing the BatchBuildDialog (returning error code)?
--- End quote ---
implemented in svn rev 2936
* batchbuild log window auto-closes even when an error occurred during the build,
if the option --no-batch-window-close was not given.
- Info: a non-zero build-error-code is returned as exit-code when batchbuilding and
can be handled by the calling batch-script
tiwag:
attached is a sample project which shows the batch-build script and exit-code examination (build.cmd)
(edit the wx_console.cpp to look how it works with errors)
you need to edit the path to your CodeBlocks.exe
note: i use a special personality "batchbld" for batchbuilds, with deactivated plugins
if you want his too, start CB before with the option -p=batchbld and
set all settings (compiler directories, plugin deactivation, etc. ... )
[attachment deleted by admin]
Jan van den Borst:
Thankx
I will test it asap.
regards
Jan
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version