Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 58755 invoked from network); 26 May 2005 16:04:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 May 2005 16:04:36 -0000 Received: (qmail 31269 invoked by uid 500); 26 May 2005 16:04:24 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 31236 invoked by uid 500); 26 May 2005 16:04: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 31220 invoked by uid 99); 26 May 2005 16:04:23 -0000 X-ASF-Spam-Status: No, hits=3.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,FORGED_YAHOO_RCVD X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from web30911.mail.mud.yahoo.com (HELO web30911.mail.mud.yahoo.com) (68.142.201.64) by apache.org (qpsmtpd/0.28) with SMTP; Thu, 26 May 2005 09:04:20 -0700 Received: (qmail 66329 invoked by uid 60001); 26 May 2005 16:04:11 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=uNMu2LVZClVDlDc16LZ9/gq3iAaU7FY0vyHn+2QBUCDGrKNkpVWTmUi2HJ5sjZTFmHKhHRvp9M3M1hFIzL5odLNL8SDqE9xbkfu2qzCoWZIq1eaOFXQ7UbEOMJlt9Trxk3gl9WGuxZhisO3mlC2oUKFVXVrQ1sGACPfrAESarpg= ; Message-ID: <20050526160411.66327.qmail@web30911.mail.mud.yahoo.com> Received: from [65.247.233.5] by web30911.mail.mud.yahoo.com via HTTP; Thu, 26 May 2005 09:04:11 PDT Date: Thu, 26 May 2005 09:04:11 -0700 (PDT) From: Matt Benson Subject: Re: Capturing Error with Command To: Ant Users List In-Reply-To: 6667 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N You can use the resultproperty attribute to capture the return code of the process. The task should help you determine whether the executable can be found. -Matt --- Kapil Bajaj wrote: > Hi All > > I am trying to execute Command using Tag in > Ant 1.6 > > while executing command I am trying to redirect the > output to text File. > Here I want if my exec Command Fails or Executable I > am trying to execute > is not available then I should be able to Trap that > event or Error Message > or set some property > > failifexecutionfails="false" > failonerror="false" output="db2-logs.txt" > append="true"> > > > > Later Use that property to display some useful > Information for User. > Please let me know if we can have workaround for > this issue > > > Thanks and Regards > ------------------------------------------------------------------------------------------------------------------ > Kapil Bajaj > India Software Labs > IBM Software Group. > Email : kapilbajaj@in.ibm.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org