Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 80217 invoked from network); 17 Aug 2005 10:08:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Aug 2005 10:08:41 -0000 Received: (qmail 17247 invoked by uid 500); 17 Aug 2005 10:08:34 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 17202 invoked by uid 500); 17 Aug 2005 10:08:33 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 17189 invoked by uid 99); 17 Aug 2005 10:08:33 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Aug 2005 03:08:33 -0700 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=PLING_QUERY X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [192.6.10.17] (HELO gort.hpl.hp.com) (192.6.10.17) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Aug 2005 03:08:52 -0700 Received: from timmay.hpl.hp.com (timmay-hb.hpl.hp.com [15.144.59.39]) by gort.hpl.hp.com (8.12.10/8.12.10) with ESMTP id j7HA7s18005537 for ; Wed, 17 Aug 2005 11:07:55 +0100 (BST) Received: from [15.144.25.135] (chamonix.hpl.hp.com [15.144.25.135]) by timmay.hpl.hp.com (8.13.2/8.13.2) with ESMTP id j7HA7nwX002784 for ; Wed, 17 Aug 2005 11:07:50 +0100 (BST) Message-ID: <43030C75.6020402@apache.org> Date: Wed, 17 Aug 2005 11:07:49 +0100 From: Steve Loughran User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Users List Subject: Re: BuildFailed if ReturnCode 1 ?! References: <1397E81F23832842BDD7B2D758D4B0B52AAD12@VEX00120.lan.huk-coburg.de> In-Reply-To: <1397E81F23832842BDD7B2D758D4B0B52AAD12@VEX00120.lan.huk-coburg.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-HPLB-IMAP-MailScanner-Information: Please contact the Helpdesk for more information X-HPLB-IMAP-MailScanner: Found to be clean X-HPLB-IMAP-MailScanner-SpamCheck: not spam, SpamAssassin (score=0, required 5) X-HPL-MailScanner-Information: Please contact the Helpdesk for more information X-HPL-MailScanner: Found to be clean X-HPL-MailScanner-SpamCheck: not spam, SpamAssassin (score=-2.463, required 5, autolearn=not spam, ALL_TRUSTED -3.30, AWL 0.47, PLING_QUERY 0.37) X-MailScanner-From: stevel@apache.org X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Rebhan, Gilbert wrote: > Hi, > > i've written a java class that is called in my buildscript. > That class requieres 3 args. > > In the code of my class i've written : > > if (args.length < 3) { > System.out.println("***Error *** .... "); > System.exit(1); > > In a little testscript i've tried with = > > > > > > > > > > > > > > > > I expected to get a BuildFailed as args[1] and args[2] are missing, > but i got my ***Error*** ... message and a > > Build Successful combined with an > > [java] org.eclipse.ant.internal.ui.antsupport.AntSecurityException > ... > > How to ensure a BuildFailed if the required args[] for my class > are not properly set ?! set failonerror=true to have non-zero return codes mapped to build errors --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org