Hi,
not sure if this is the right place for feature requests, I'll just try ;-) It would be nice if the Orbeon CLI version could return a non-zero exit status in case of an exception. I am using Orbeon in a Shell script to execute a pipeline, but currently there is no way for the script to know whether it went all well. So it just continues to work based on the assumption that Orbeon finished successfully. Kind regards, Ralf -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
unsubscribe
-----Original Message----- From: Ralf Jung [mailto:[hidden email]] Sent: Thursday, June 09, 2011 11:50 AM To: [hidden email] Subject: [ops-users] Orbeon CLI Hi, not sure if this is the right place for feature requests, I'll just try ;-) It would be nice if the Orbeon CLI version could return a non-zero exit status in case of an exception. I am using Orbeon in a Shell script to execute a pipeline, but currently there is no way for the script to know whether it went all well. So it just continues to work based on the assumption that Orbeon finished successfully. Kind regards, Ralf -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
In reply to this post by Ralf Jung
Ralf,
Sure that's the right place for RFEs. Yes that would make sense. The place to fix this would be here: https://github.com/orbeon/orbeon-forms/blob/master/src/java/org/orbeon/oxf/main/OPS.java It should just be a matter to return System.exit(1) if there is an exception caught. Do you want to give this a try and provide a patch? -Erik On Thu, Jun 9, 2011 at 8:49 AM, Ralf Jung <[hidden email]> wrote: > Hi, > > not sure if this is the right place for feature requests, I'll just try ;-) > It would be nice if the Orbeon CLI version could return a non-zero exit status > in case of an exception. I am using Orbeon in a Shell script to execute a > pipeline, but currently there is no way for the script to know whether it went > all well. So it just continues to work based on the assumption that Orbeon > finished successfully. > > Kind regards, > Ralf > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Hi Erik,
> Sure that's the right place for RFEs. > > Yes that would make sense. > > The place to fix this would be here: > > https://github.com/orbeon/orbeon-forms/blob/master/src/java/org/orbeon/oxf/ > main/OPS.java > > It should just be a matter to return System.exit(1) if there is an > exception caught. Do you want to give this a try and provide a patch? Kind regards, Ralf -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws 0001-set-exit-status-to-1-in-CLI-mode-when-there-is-an-er.patch (1K) Download Attachment |
Administrator
|
Ralf,
Cool, I committed this: https://github.com/orbeon/orbeon-forms/commit/64324735e95d5b3e19edd60def1740375c04e919 Thanks, -Erik On Fri, Jun 10, 2011 at 2:34 AM, Ralf Jung <[hidden email]> wrote: > Hi Erik, > >> Sure that's the right place for RFEs. >> >> Yes that would make sense. >> >> The place to fix this would be here: >> >> https://github.com/orbeon/orbeon-forms/blob/master/src/java/org/orbeon/oxf/ >> main/OPS.java >> >> It should just be a matter to return System.exit(1) if there is an >> exception caught. Do you want to give this a try and provide a patch? > Wow, this looks easier than I thought... attached aptch works fine for me (TM). > > Kind regards, > Ralf > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |