admin@glassfish.java.net

exit code of command

From: Anissa Lam <anissa.lam_at_oracle.com>
Date: Mon, 20 Jun 2011 18:09:21 -0700

I have a question regarding the exit code of the actionReport that we
get back from a command.
If there are sub-reports, and one of the sub-report has exit_code of
"WARNING", what should the exit_code of this command be ? Should
the exit_code of the report be "SUCCESS" since the command has
succeeded or it should be "WARNING" to indicate the command succeeded
with warning ?
And how about the case where one sub-report has "FAILURE" and another
sub-report has "WARNING" ?

thanks
Anissa.