Author Topic: batch build - logfile possible ?  (Read 2502 times)

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
batch build - logfile possible ?
« 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)

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5209
Re: batch build - logfile possible ?
« Reply #1 on: July 19, 2006, 05:14:26 pm »
I think redirection already does the job ??   >>

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: batch build - logfile possible ?
« Reply #2 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 !

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: batch build - logfile possible ?
« Reply #3 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 ...

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: batch build - logfile possible ?
« Reply #4 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