Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 17975 invoked from network); 18 Mar 2002 22:00:02 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 18 Mar 2002 22:00:02 -0000 Received: (qmail 12742 invoked by uid 97); 18 Mar 2002 21:59:43 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 12726 invoked by uid 97); 18 Mar 2002 21:59:43 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 12715 invoked from network); 18 Mar 2002 21:59:42 -0000 Message-Id: <200203182159.QAA10891@interlock2.lexmark.com> X-Lotus-Fromdomain: LEXMARK@LEXMTA From: dhay@lexmark.com To: "Ant Users List" Date: Mon, 18 Mar 2002 16:59:07 -0500 Subject: Re: Return code from Ant Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Diane, *Sorry* to bring this up again, but I am not sure that that will stop my makefile running? Won't it just echo "bad bongos" and carry on to the next step? (please note, again, my knowledge of makefiles is very minimal!) Cheers, David Diane Holt on 03/15/2002 05:05:05 PM Please respond to "Ant Users List" To: Ant Users List cc: (bcc: David Hay/Lex/Lexmark) Subject: Re: Return code from Ant --- Erik Hatcher wrote: > I did this very thing myself and posted it not too long ago and someone > (Conor? Stefan?) replied and told me that it was not compatible with > some versions of DOS that we support. I believe?! I did a bit more noodling around and found out you don't actually need to capture it into a var, so there's no need to change the ant.bat script afterall -- you can just test on errorlevel itself. So, for the guy doing it from a Makefile, you just need to have a little batch file that has: @echo off ant && if errorlevel 1 echo bad bongos and his make target runs that batch file instead -- eg: runant : @runant.bat And people running 'ant' directly from a command prompt can do: C:\> ant && if errorlevel 1 echo bad bongos (Phew! -- are we all done with this now?? ... schlepping through DOSville isn't exactly what I'd call a party :) Diane ===== (holtdl@yahoo.com) __________________________________________________ Do You Yahoo!? Yahoo! Sports - live college hoops coverage http://sports.yahoo.com/ -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: