User forums > Using Code::Blocks
batch build - logfile possible ?
(1/1)
tiwag:
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)
killerbot:
I think redirection already does the job ?? >>
tiwag:
--- Quote from: killerbot on July 19, 2006, 05:14:26 pm ---I think redirection already does the job ?? >>
--- End quote ---
thanks ! it works so simple.
because of there is no output without redirection specification, i thought there is nothing to redirect !
tiwag:
the returned errorlevel setting seems always to be 0
regardless if there was an error or none ...
tiwag:
--- Quote from: 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 ...
--- End quote ---
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
Navigation
[0] Message Index
Go to full version