Re: Ant build help



Hi

I'm not sure if I got your problem right, but there is the "failOnError"
attribute of the exec task. This should solve your problem...

Hope that helps
Dieter

rips schrieb:
Hi,

I am trying to write an ant build script that will result in a failed
build if there were failures during my test. I use QFTestJUI for my
testing. It is run as a java/jython program. This program returns an
exit code that indicates whether the tests fail or pass.

How do I use the exit code of program executed from a build script to
determine if the build passed or failed.

Thanks.

.



Relevant Pages

  • Re: Mutiple fork return status
    ... from a script you can obtain the exit code of any background process you spawned with the "wait" builtin, it will return the process' exit code as its own or 127 in case of errors try this sequence of commands, they are picked from memory but should be correct: ... # echo $? ... if you issue a "wait" while the process you are inquiring about is still running, the script will pause until the process in question exits by itself or is terminated. ... you can get more info about the "wait" builtin in the docs for the shell of your choice. ...
    (comp.os.linux.misc)
  • Re: Yast2 Runlevel editor. Waiting for children
    ... > |seems to wait for child processes from the init script to finish before ... > |it will return the parent's exit code. ... > Your daemon is not correctly written then. ...
    (alt.os.linux.suse)
  • Re: ssh in bash script
    ... >from shell prompt I can: ... >back at prompt in host1. ... >how to make it continue on in the script? ... >can I indeed just capture the exit code for a return value that I can ...
    (Fedora)
  • SUMMARY: rsh and exit codes
    ... is showing the results of the rsh command. ... it does have the ability to return the exit code. ... I have a small script, exit_code.sh that has a "exit 1" in it. ... If I run the command locally then do a echo $? ...
    (Tru64-UNIX-Managers)
  • Re: Executing vs. sourcing a script
    ... > I would like a script to return an exit code. ... echo sourcing sh2 ...
    (comp.unix.shell)