Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 80890 invoked from network); 6 Aug 2005 16:57:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Aug 2005 16:57:31 -0000 Received: (qmail 12620 invoked by uid 500); 6 Aug 2005 16:57:25 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 12575 invoked by uid 500); 6 Aug 2005 16:57:24 -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 12562 invoked by uid 99); 6 Aug 2005 16:57:24 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Aug 2005 09:57:24 -0700 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [207.69.195.72] (HELO pop-sarus.atl.sa.earthlink.net) (207.69.195.72) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Aug 2005 09:57:13 -0700 Received: from h-68-164-104-155.dnvtco56.dynamic.covad.net ([68.164.104.155] helo=dingo.edingo.net) by pop-sarus.atl.sa.earthlink.net with esmtp (Exim 3.36 #10) id 1E1Rz6-0001ig-00 for user@ant.apache.org; Sat, 06 Aug 2005 12:57:20 -0400 Message-Id: <6.2.3.4.2.20050806105649.029a1308@mail.edingo.net> X-Mailer: QUALCOMM Windows Eudora Version 6.2.3.4 Date: Sat, 06 Aug 2005 10:57:25 -0600 To: "Ant Users List" From: "David A. Bartmess" Subject: Re: Exec task does not fail inspite of non-zero error level In-Reply-To: <47595B04C59BDE4592F43A57C9ED8FAC084B94D4@mlvv9mle.ww005.si emens.net> References: <47595B04C59BDE4592F43A57C9ED8FAC084B94D4@mlvv9mle.ww005.siemens.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I may be entirely wrong, been a while, but I think you need to "return 50" or "exit 50" to get the error code returned to ant... At 12:03 PM 8/5/2005, you wrote: >Hi, > >I am using an ant script to trigger off my builds and unit tests but for >some reason I am unable to get the exec task to work properly. >My ant script contains the following code snippet: > > > > > >output="${output.dir}/build.txt"> > > > > > > > >All my BUILDLOCAL.CMD does is set ERRORLEVEL=50. > >This should cause my build task to fail however for some reason my build >executes successfully. > >Could you tell me what I am doing wrong. I was under the impression that >failonerror=true should cause a failure if errorlevel is non-zero. > > > >Thanks in advance, > >Shahyan. > > > > > >------------------------------------------------------------------------------- >This message and any included attachments are from Siemens Medical Solutions >USA, Inc. and are intended only for the addressee(s). >The information contained herein may include trade secrets or privileged or >otherwise confidential information. Unauthorized review, >forwarding, printing, >copying, distributing, or using such information is strictly >prohibited and may >be unlawful. If you received this message in error, or have reason >to believe >you are not authorized to receive it, please promptly delete this message and >notify the sender by e-mail with a copy to >Central.SecurityOffice@shs.siemens.com > >Thank you --------------------------- David A. Bartmess Software Configuration Manager http://edingo.net --- jSyncManager Open Source PDA Sync Program Developer http://jsyncmanager.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org