Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 40174 invoked from network); 28 Sep 2006 18:13:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Sep 2006 18:13:28 -0000 Received: (qmail 51985 invoked by uid 500); 28 Sep 2006 18:13:23 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 51960 invoked by uid 500); 28 Sep 2006 18:13:23 -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 51949 invoked by uid 99); 28 Sep 2006 18:13:23 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Sep 2006 11:13:23 -0700 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,NO_REAL_NAME Received: from [69.25.242.15] ([69.25.242.15:15253] helo=securemail.onebox.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id A4/79-17533-9B01C154 for ; Thu, 28 Sep 2006 11:13:18 -0700 Received: from outgoing.onebox.com (unverified [172.21.6.72]) by securemail.onebox.com (Rockliffe SMTPRA 7.0.3) with SMTP id for ; Thu, 28 Sep 2006 14:13:09 -0400 Message-ID: From: cknell@onebox.com To: user@ant.apache.org Subject: re :How to get debug info on java task failure] Date: Thu, 28 Sep 2006 14:13:07 -0400 Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I found a typo was causing my error. Thanks. -- Charles Knell cknell@onebox.com - email -----Original Message----- From: cknell@onebox.com Sent: Thu, 28 Sep 2006 13:31:16 -0400 To: user@ant.apache.org Subject: RE: Re: How to get debug info on java task failure The %ERRORLEVEL% value is 0, so I'm really no closer to understanding why the execution of the class works at the command line and fails in Ant. Is there a way to get more information from Ant? -- Charles Knell cknell@onebox.com - email -----Original Message----- From: Peter Reilly Sent: Thu, 28 Sep 2006 18:17:13 +0100 To: "Ant Users List" Subject: Re: How to get debug info on java task failure "Java returned: 1" means that the java program called System.exit(1) to finish its execution. This return code is not shown when you call from the command line, it is placed in the env variable %ERRORLEVEL% on dos, so after calling the java program call echo %ERRORLEVEL% Peter On 9/28/06, cknell@onebox.com wrote: > > I am executing a single task. I have the failonerror attribute set > to "true". It fails, but I don't have any information to work with. This is > the target. > > > outputproperty="sql.string" > failonerror="true" fork="true"> > > > > /> > > > > > SQL string is ${sql.string} > > > The output I get is: "BUILD FAILED H:\dev\java\buildj.xml:46: Java > returned: 1" > > When I execute what I believe to be the identical class from the command > line, I have no problem. Here is the command line, reformatted for clarity: > > java -cp mars.jar;C:\oracle\ora90JavaXDK\lib\xsu12.jar; > c:\oracle\ora90JavaXDK\lib\xmlparserv2.jar > com.surreylane.oracle.SQLQueryText QueryFileName=../queries.xml > QueryName=hiring-report > > How can I get more information from Ant on exactly what's gone wrong? > > Thanks. > -- > Charles Knell > cknell@onebox.com - email > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org