Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 24816 invoked from network); 28 Sep 2006 17:17:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Sep 2006 17:17:26 -0000 Received: (qmail 58916 invoked by uid 500); 28 Sep 2006 17:17:21 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 58867 invoked by uid 500); 28 Sep 2006 17:17:20 -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 58856 invoked by uid 99); 28 Sep 2006 17:17:20 -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 10:17:20 -0700 Authentication-Results: idunn.apache.osuosl.org header.from=peter.kitt.reilly@gmail.com; domainkeys=good X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 Received: from [64.233.182.189] ([64.233.182.189:35058] helo=nf-out-0910.google.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 65/E7-17533-C930C154 for ; Thu, 28 Sep 2006 10:17:18 -0700 Received: by nf-out-0910.google.com with SMTP id x29so624315nfb for ; Thu, 28 Sep 2006 10:17:14 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=kYllDRqoguYyysOfcz0iGRfXFmSc3xxugjzO6SbChDgMbigAk9w1H20q417O7m/WOzXq4o6h0ImB0OMF21z7QEO3F/uQAjFNZld3Cqfj/LydbwGAKMpS5mZx6SZtIzifAa8OKnOgxyO6VClCbH8ozzNY3deRfp8B+lVYDEuTW0k= Received: by 10.48.254.10 with SMTP id b10mr367851nfi; Thu, 28 Sep 2006 10:17:13 -0700 (PDT) Received: by 10.49.92.4 with HTTP; Thu, 28 Sep 2006 10:17:13 -0700 (PDT) Message-ID: Date: Thu, 28 Sep 2006 18:17:13 +0100 From: "Peter Reilly" To: "Ant Users List" Subject: Re: How to get debug info on java task failure In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_23772_4437098.1159463833686" References: X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_23772_4437098.1159463833686 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline "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 > > ------=_Part_23772_4437098.1159463833686--