Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 9474 invoked from network); 19 Dec 2006 13:42:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Dec 2006 13:42:03 -0000 Received: (qmail 50076 invoked by uid 500); 19 Dec 2006 13:42:06 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 49787 invoked by uid 500); 19 Dec 2006 13:42:05 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 49776 invoked by uid 99); 19 Dec 2006 13:42:05 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Dec 2006 05:42:05 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of mark.tombs@gmail.com designates 66.249.92.173 as permitted sender) Received: from [66.249.92.173] (HELO ug-out-1314.google.com) (66.249.92.173) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Dec 2006 05:41:55 -0800 Received: by ug-out-1314.google.com with SMTP id 32so1571307ugm for ; Tue, 19 Dec 2006 05:41:33 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=cwipTYk0BCyhffEBdzNfaUX8r1vyzkC7rCz3QaLTbscixUEHm4cNd+qo2AqWGSCqaby1WeZUXLJUXNITkiDBCWpGcVeroApiiExQr7fN5PuXZcIuR6IDLsv86uzg0ZErP4IqT9Py2hQ1n3a3fLq63wBLYhOtT+x9O7p7ObjFfr4= Received: by 10.67.19.17 with SMTP id w17mr8607608ugi.1166535693611; Tue, 19 Dec 2006 05:41:33 -0800 (PST) Received: by 10.67.87.16 with HTTP; Tue, 19 Dec 2006 05:41:33 -0800 (PST) Message-ID: <17f84a330612190541y3f324706qb6bcd8974534cf73@mail.gmail.com> Date: Tue, 19 Dec 2006 14:41:33 +0100 From: "Mark Tombs" To: "Jakarta Commons Users List" , paul@activemath.org Subject: Re: [Jelly] Exiting a jelly script w/wo exitcode In-Reply-To: <4587E30A.9080005@activemath.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4969_1523288.1166535693514" References: <4587DBB7.9030003@avaleo.net> <4587E30A.9080005@activemath.org> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_4969_1523288.1166535693514 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 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: > > > > > > > > > > > > Connect failed! > > //*exit(0);* > > > > > > How do I exit if connection fails ? > > > > Kind rgds > > Anders Kofoed > > > > ------=_Part_4969_1523288.1166535693514--