commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Tombs" <mark.to...@gmail.com>
Subject Re: [Jelly] Exiting a jelly script w/wo exitcode
Date Tue, 19 Dec 2006 13:41:33 GMT
One way of doing something similar is to put a j:forEach around the whole
script, and then use j:break to jump out of the loop, but then you don't get
an exit code. The forEach should only loop once of course :)

/mark


On 12/19/06, Paul Libbrecht <paul@activemath.org> wrote:
>
> Anders,
>
> there's no tag for that, it would be easy to make, but you use
> invokeStatic tag for this in the meantime, or?
>
> paul
>
> Anders Kofoed wrote:
> > Hi Jelly users,
> >
> > I'm a newbie to Jelly script and are in the process of evaluating
> > Jelly script for future use in deployment of our systems.
> >
> > Question: How to I exit a jelly-script if want to - maybe with an exit
> > status (like exit(0);) ?
> >
> > A snippet of the my test script:
> >
> >  <j:catch var="exception">
> >    <h:get uri="http://test-server1/" var="web1"/>
> >  </j:catch>
> >  <j:if test="${exception != null}">
> >    Connect failed!
> >    //*exit(0);*
> >  </j:if>
> >
> > How do I exit if connection fails ?
> >
> > Kind rgds
> > Anders Kofoed
>
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message