Bug 48782 - ant -diagnostics returns with exit code 0
Summary: ant -diagnostics returns with exit code 0
Status: RESOLVED FIXED
Alias: None
Product: Ant
Classification: Unclassified
Component: Core (show other bugs)
Version: 1.8.0
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: 1.8.1
Assignee: Ant Notifications List
URL:
Keywords:
: 48915 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-02-20 10:25 UTC by Torsten Werner
Modified: 2010-03-18 20:23 UTC (History)
2 users (show)



Attachments
Fix NPE on getClassLocation() as getSourceLocation() can return null (820 bytes, patch)
2010-02-20 22:42 UTC, Ludovic Claude
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Torsten Werner 2010-02-20 10:25:08 UTC
$ ant -diagnostics
[... lotsa output]
$ echo $?
1

Version 1.7.1 did return with code 0. This is a regression. Please see <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=570588> for the original bug report in Debian.

Torsten
Comment 1 Ludovic Claude 2010-02-20 22:42:48 UTC
Created attachment 25030 [details]
Fix NPE on getClassLocation() as getSourceLocation() can return null

Fixes the problem reported on Debian
Comment 2 Antoine Levy-Lambert 2010-02-20 23:58:48 UTC
Patch committed, thanks Torsten and Ludovic.

Regards,
Antoine
Comment 3 Antoine Levy-Lambert 2010-02-21 00:34:30 UTC
adding that the bit of the diagnostics which was failing was this one :

-------------------------------------------
 XSLT Processor information
-------------------------------------------
XSLT Processor : com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl
XSLT Processor Location: unknown


The last lines of output before the change were :

-------------------------------------------
 XSLT Processor information
-------------------------------------------

this can help to create a unit test.
Comment 4 Vlastimil Babka (Caster) 2010-03-18 20:23:37 UTC
*** Bug 48915 has been marked as a duplicate of this bug. ***