Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: tiwag on July 19, 2006, 05:09:49 pm

Title: batch build - logfile possible ?
Post by: tiwag on July 19, 2006, 05:09:49 pm
is it somehow possible to send the output of a batch-build which is showin in the batch-build notify window to a logfile instead ?

also it would be nice, to get some errorlevel results in order to test the result of the batch-build job ( error exit or normal exit ) in the batch-file,

is this already possible ? (maybe i did only not find the proper documentation about)
Title: Re: batch build - logfile possible ?
Post by: killerbot on July 19, 2006, 05:14:26 pm
I think redirection already does the job ??   >>
Title: Re: batch build - logfile possible ?
Post by: tiwag on July 19, 2006, 05:43:08 pm
I think redirection already does the job ??   >>

thanks !  it works so simple.

because of there is no output without redirection specification, i thought there is nothing to redirect !
Title: Re: batch build - logfile possible ?
Post by: tiwag on July 19, 2006, 06:32:16 pm
the returned errorlevel setting seems always to be 0
regardless if there was an error or none ...
Title: Re: batch build - logfile possible ?
Post by: tiwag on July 20, 2006, 03:16:37 pm
the returned errorlevel setting seems always to be 0
regardless if there was an error or none ...

Codeblocks.exe returns now the batch-build exit code (when a batch-build was active)

the build-success can now be checked in a batch-file
using the %ERRORLEVEL% environment variable
and checking if the result was 0 (zero)

committed to svn rev 2774